I am new to HA, and have recently set it up via HASS.io in docker on a local ubuntu server. My only ‘smart devices’ are a set of tradfri lights, which are configured via the discovery configurator.
In the last 3-4 days I note that the lights become “unresponsive” to HA after HA has been running for about a few hours. I use the quotes because if I issue a switch off command, it does occur (lights go off, switch in UI toggled to off position) but then the switch in the UI toggles back on. Vice versa for a switch on command. After this since the switch is in the wrong position (with respect to the light), I cannot issue the correct command to the lights. During this time the lights are still working fine via HomeKit. Other objects in HA work fine as well (dark sky sensor, device_tracker).
Below is the log output when this occurs. 192.168.0.12 is the IP for the gateway. Light.TV was the bulb in that instance.
2018-02-02 21:27:19 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 139668076590472: Received {'type': 'call_service', 'domain': 'homeassistant', 'service': 'turn_on', 'service_data': {'entity_id': 'light.tv'}, 'id': 11}
2018-02-02 21:27:19 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service=turn_on, service_data=entity_id=light.tv, service_call_id=139668149929352-29>
2018-02-02 21:27:19 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=entity_id=['light.tv'], service_call_id=139668149929352-30>
2018-02-02 21:27:19 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.0.12 put ['15001', 65548]: {'3311': [{'5850': 1}]}
2018-02-02 21:27:19 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x7f0702691080: Type.CON PUT (ID 14590, token b'\x00\x00|7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f07024fd588>, 3 option(s), 23 byte(s) payload>
2018-02-02 21:27:19 DEBUG (MainThread) [coap] Exchange added, message ID: 14590.
2018-02-02 21:27:19 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2018-02-02 21:27:19 DEBUG (MainThread) [coap.requester] Sending request - Token: 00007c37, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f07024fd588>
2018-02-02 21:27:19 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x7f0702882fd0: Type.ACK 2.04 Changed (ID 14590, token b'\x00\x00|7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f07024fd588>>
2018-02-02 21:27:19 DEBUG (MainThread) [coap] New unique message received
2018-02-02 21:27:19 DEBUG (MainThread) [coap] Exchange removed, message ID: 14590.
2018-02-02 21:27:19 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x7f0702882fd0: Type.ACK 2.04 Changed (ID 14590, token b'\x00\x00|7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7f07024fd588>>
2018-02-02 21:27:19 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.04 Changed, Received:
2018-02-02 21:27:19 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139668149929352-30>
2018-02-02 21:27:19 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=139668149929352-29>
2018-02-02 21:27:19 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 139668076590472: Sending {'id': 11, 'type': 'result', 'success': True, 'result': None}
2018-02-02 21:27:24 INFO (MainThread) [homeassistant.components.http] Serving /api/error/all to 192.168.0.1 (auth: True)
I wonder if anyone knows the cause of this?
The issue is completely resolved by restarting HA, and recurs after a few hours of this.
Home Assistant v0.62.1
Ubuntu Server 7.10
Docker 17.12.0-ce
Gateway 1.3.14