Need to reboot Home Assistant a few times before it detects Konnected devices.

I've got two Konnected devices that are only sometimes detected by Home Assistant. I usually have to reboot Home Assistant 2 or 3 times before the devices are found, then they work perfectly for days until I have to reboot, when it may or may not need to be restarted 2 or 3 times again.

I'm running Home Assistant in a Docker container on my unRAID system. The same issue was present when running it in a Docker container on my old Ubuntu server.

I've tried leaving it over an hour to detect them, but it never does.

I'm suspecting the Home Assistant is to blame here, since the two different Konnected devices are both having the same issue at the same time. Home Assistant is 0.73.1, both Konnecteds are 2.2.1.

Here are the Home Assistant logs, first for a boot that did not detect them, then a successful one. They're less than a minute apart, but like I said, I've left it for quite a while and they are never detected.

 

2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=check_config>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=dismiss>
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.bootstrap] Home Assistant core initialized
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded history from homeassistant.components.history
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded http from homeassistant.components.http
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded api from homeassistant.components.api
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.loader] Loaded logger from homeassistant.components.logger
2018-07-13 16:43:15 INFO (MainThread) [homeassistant.setup] Setting up logger
2018-07-13 16:43:15 WARNING (MainThread) [homeassistant.components.http] You have been advised to set http.api_password.

2018-07-13 16:43:37 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Discovered a new Konnected device: {'host': '192.168.1.13', 'port': 13463, 'ssdp_description': 'http://192.168.1.13:13463/Device.xml', 'name': 'Konnected', 'model_name': 'Konnected', 'model_number': '2.2.1', 'serial': '5463192', 'manufacturer': 'konnected.io', 'udn': 'uuid:8f655392-a778-4fee-97b9-4825918535c98', 'upnp_device_type': 'urn:schemas-konnected-io:device:Security:1'}
2018-07-13 16:43:37 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Discovered a new Konnected device: {'host': '192.168.1.6', 'port': 9674, 'ssdp_description': 'http://192.168.1.6:9674/Device.xml', 'name': 'Konnected', 'model_name': 'Konnected', 'model_number': '2.2.0', 'serial': '1674609', 'manufacturer': 'konnected.io', 'udn': 'uuid:8f655392-a778-4fee-97b9-4825918198d71', 'upnp_device_type': 'urn:schemas-konnected-io:device:Security:1'}
2018-07-13 16:43:38 INFO (SyncWorker_7) [homeassistant.components.konnected] Initialized Konnected device 84f3eb535c98
2018-07-13 16:43:38 INFO (SyncWorker_8) [homeassistant.components.konnected] Initialized Konnected device dc4f22198d71
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Configuring Konnected device 84f3eb535c98
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Configuring Konnected device dc4f22198d71
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Set up sensor North Garage Door (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Front Door (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Set up sensor Side Door Lock (initial state: True)
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Back Door (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Set up sensor South Garage Door (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Garage Entry Door (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Set up actuator North Garage Door Relay (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Computer Room Windows (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] Storing data in hass.data[konnected]: {'client': <konnected.Client object at 0x1511e9cac128>, 'binary_sensors': {1: {'type': 'garage_door', 'name': 'North Garage Door', 'state': None}, 2: {'type': 'lock', 'name': 'Side Door Lock', 'state': True}, 6: {'type': 'garage_door', 'name': 'South Garage Door', 'state': None}}, 'switches': {5: {'name': 'North Garage Door Relay', 'state': None, 'activation': 'low'}}, 'host': '192.168.1.13', 'port': 13463}
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Kitchen Window (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: desired sensor config: [{'pin': 1}, {'pin': 2}, {'pin': 6}]
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Set up sensor Nook Window (initial state: None)
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: current sensor config: [{'pin': 1}, {'pin': 2}, {'pin': 6}]
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] Storing data in hass.data[konnected]: {'client': <konnected.Client object at 0x1511e8168e48>, 'binary_sensors': {1: {'type': 'door', 'name': 'Front Door', 'state': None}, 2: {'type': 'door', 'name': 'Back Door', 'state': None}, 5: {'type': 'door', 'name': 'Garage Entry Door', 'state': None}, 6: {'type': 'window', 'name': 'Computer Room Windows', 'state': None}, 7: {'type': 'window', 'name': 'Kitchen Window', 'state': None}, 9: {'type': 'window', 'name': 'Nook Window', 'state': None}}, 'switches': {}, 'host': '192.168.1.6', 'port': 9674}
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: desired actuator config: [{'pin': 5, 'trigger': 0}]
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: desired sensor config: [{'pin': 1}, {'pin': 2}, {'pin': 5}, {'pin': 6}, {'pin': 7}, {'pin': 9}]
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: current actuator config: [{'trigger': 0, 'pin': 5}]
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: current sensor config: [{'pin': 1}, {'pin': 2}, {'pin': 5}, {'pin': 6}, {'pin': 7}, {'pin': 9}]
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: desired api endpoint: http://192.168.1.21:8123/api/konnected
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: desired actuator config: []
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: current actuator config: []
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: desired api endpoint: http://192.168.1.21:8123/api/konnected
2018-07-13 16:43:38 DEBUG (SyncWorker_7) [homeassistant.components.konnected] 84f3eb535c98: current api endpoint: http://192.168.1.21:8123/api/konnected
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] dc4f22198d71: current api endpoint: None
2018-07-13 16:43:38 DEBUG (SyncWorker_8) [homeassistant.components.konnected] pushing settings to device dc4f22198d71
2018-07-13 16:43:48 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.

Any help appreciated.

  • Try adding "logger:" and when the system is rebooted look for "konnected" entries.

  • Recovery after a reboot is much improved in Home Assistant 0.77. Please try the beta and let me know if you continue to have any problems like this. 

    https://konnected.io/blogs/news/home-assistant-0-77-update

  • I just upgraded to 0.77.0b4.  After reboot I'm getting 


    image


    When I run check config I get this:


    Invalid config for [konnected]: value 18FBFA does not match regular expression [0-9a-f]{12} for dictionary value @ data['konnected']['devices'][0]['id']. Got '18FBFA'. (See /config/configuration.yaml, line 100). Please check the docs at https://home-assistant.io/components/konnected/


    Here is my yaml.  FYI Nothing has changed from working state before upgrading

     

    konnected:
      access_token: xxxxxxxxxxxx
      api_host: http://192.xxx.x.xx:xxxx
      devices:
        - id: 18FBFA
          binary_sensors:
            - zone: 1
              type: door
              name: 'Front Door'
            - zone: 2
              type: door
              name: 'Back Slider'
            - zone: 3
              type: door
              name: 'Balcony Door'
            - zone: 4
              type: door
              name: 'Garage Door'
            - zone: 5
              type: motion
              name: 'Downstairs Motion'
            - zone: 6
              type: motion
              name: 'Kitchen GBD'
          switches:
            - zone: out
              name: siren
        - id: FDFD05
          binary_sensors:
            - zone: 1
              type: motion
              name: 'Up Motion'
            - zone: 2
              type: window
              name: 'Juliet Window'
            - zone: 3
              type: window
              name: 'Up Hall Window'
            - zone: 4
              type: window
              name: 'Robert Windows'
    

     

  • Please read our release notes here: https://konnected.io/blogs/news/home-assistant-0-77-update

    You need to update the device IDs to the full 12-character MAC address in all lowercase letters and numbers starting in 0.77.

  • That was it.  Konnected it now getting discovered on reboot and no log errors.  Thanks

Login or Signup to post a comment