Sporadic exception when trying to turn on zigbee lights (and light doesn't turns on!)
Home Assistant release (hass --version):
0.52.1
Python release (python3 --version):
The one bundled into HassIO.
Component/platform: light.zha
Description of problem: Sometime my lights doesn't turn on. When it bugs, I get an exception (see bellow). I suspect this bug also occurs when trying to turn off but I didn't verified if this throw an exception.
Expected: I expect my lights to turn on when requested.
Problem-relevant configuration.yaml entries and steps to reproduce:
The problem is sporadic and I didn't find a way to reproduce. Here the configuration relative to the exception I just got, but this is not limited to this automation or this group of lights.
zha:
usb_path: /dev/ttyUSB2
database_path: /config/zigbee.db
automation:
- alias: Allume lumière chambre si mouvement
trigger:
platform: state
entity_id: binary_sensor.multisensor_chambre_sensor
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.automatisations
state: 'on'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
- condition: state
entity_id: input_boolean.luminosite_faible_chambre
state: 'on'
action:
- service: script.allume_lumiere_chambre
script:
allume_lumiere_chambre:
alias: Allume lumière chambre
sequence:
- service: light.turn_on
entity_id: group.lumieres_chambre
data:
brightness_pct: 100
Traceback (if applicable):
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.multisensor_chambre, old_state=<state zwave.multisensor_chambre=Sleeping (CacheLoad); node_id=5, node_name=Multisensor Chambre, manufacturer_name=Aeotec, product_name=ZW074 MultiSensor Gen5, old_entity_id=zwave.multisensor_chambre_5, new_entity_id=zwave.multisensor_chambre, query_stage=CacheLoad, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'beaming', 'routing'}, sentCnt=3, sentFailed=1, retries=0, receivedCnt=758, receivedDups=0, receivedUnsolicited=758, sentTS=2017-09-06 09:28:26:884 , receivedTS=2017-09-08 21:44:25:481 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=85, wake_up_interval=240, friendly_name=Multisensor Chambre @ 2017-09-05T20:59:49.297501-04:00>, new_state=<state zwave.multisensor_chambre=Sleeping (CacheLoad); node_id=5, node_name=Multisensor Chambre, manufacturer_name=Aeotec, product_name=ZW074 MultiSensor Gen5, old_entity_id=zwave.multisensor_chambre_5, new_entity_id=zwave.multisensor_chambre, query_stage=CacheLoad, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'beaming', 'routing'}, sentCnt=3, sentFailed=1, retries=0, receivedCnt=759, receivedDups=0, receivedUnsolicited=759, sentTS=2017-09-06 09:28:26:884 , receivedTS=2017-09-08 21:45:37:981 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=85, wake_up_interval=240, friendly_name=Multisensor Chambre @ 2017-09-05T20:59:49.297501-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.multisensor_chambre_sensor, old_state=<state binary_sensor.multisensor_chambre_sensor=off; node_id=5, value_index=0, value_instance=1, old_entity_id=binary_sensor.multisensor_chambre_sensor_5_0, new_entity_id=binary_sensor.multisensor_chambre_sensor, friendly_name=Mouvement chambre, icon=mdi:walk @ 2017-09-08T20:33:26.303050-04:00>, new_state=<state binary_sensor.multisensor_chambre_sensor=on; node_id=5, value_index=0, value_instance=1, old_entity_id=binary_sensor.multisensor_chambre_sensor_5_0, new_entity_id=binary_sensor.multisensor_chambre_sensor, friendly_name=Mouvement chambre, icon=mdi:walk @ 2017-09-08T21:45:38.112383-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.occupation_chambre, old_state=<state binary_sensor.occupation_chambre=off; friendly_name=Chambre occupée, icon=mdi:human @ 2017-09-08T20:33:26.357308-04:00>, new_state=<state binary_sensor.occupation_chambre=on; friendly_name=Chambre occupée, icon=mdi:human @ 2017-09-08T21:45:38.166936-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.components.automation] Executing Allume lumière chambre si mouvement
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event logbook_entry[L]: name=Allume lumière chambre si mouvement, message=has been triggered, domain=automation, entity_id=automation.allume_lumiere_chambre_si_mouvement>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.helpers.script] Script Allume lumière chambre si mouvement: Running script
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.helpers.script] Script Allume lumière chambre si mouvement: Executing step call service
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=script, service=allume_lumiere_chambre, service_data=, service_call_id=1960847504-637>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.helpers.script] Script Allume lumière chambre: Running script
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.helpers.script] Script Allume lumière chambre: Executing step call service
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=brightness_pct=100, entity_id=['group.lumieres_chambre'], service_call_id=1960847504-638>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=group.occupation_chambre, old_state=<state group.occupation_chambre=off; entity_id=('binary_sensor.occupation_chambre',), order=17, friendly_name=Occupation de la chambre, assumed_state=False @ 2017-09-08T20:33:26.373529-04:00>, new_state=<state group.occupation_chambre=on; entity_id=('binary_sensor.occupation_chambre',), order=17, friendly_name=Occupation de la chambre, assumed_state=False @ 2017-09-08T21:45:38.223472-04:00>>
2017-09-08 21:45:38 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step
result = coro.send(None)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/__init__.py", line 279, in async_handle_light_service
yield from light.async_turn_on(**params)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/zha.py", line 105, in async_turn_on
duration
File "/usr/lib/python3.6/site-packages/bellows/zigbee/application.py", line 248, in request
assert seq not in self._pending
AssertionError
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.multisensor_chambre, old_state=<state zwave.multisensor_chambre=Sleeping (CacheLoad); node_id=5, node_name=Multisensor Chambre, manufacturer_name=Aeotec, product_name=ZW074 MultiSensor Gen5, old_entity_id=zwave.multisensor_chambre_5, new_entity_id=zwave.multisensor_chambre, query_stage=CacheLoad, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'beaming', 'routing'}, sentCnt=3, sentFailed=1, retries=0, receivedCnt=759, receivedDups=0, receivedUnsolicited=759, sentTS=2017-09-06 09:28:26:884 , receivedTS=2017-09-08 21:45:37:981 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=85, wake_up_interval=240, friendly_name=Multisensor Chambre @ 2017-09-05T20:59:49.297501-04:00>, new_state=<state zwave.multisensor_chambre=Sleeping (CacheLoad); node_id=5, node_name=Multisensor Chambre, manufacturer_name=Aeotec, product_name=ZW074 MultiSensor Gen5, old_entity_id=zwave.multisensor_chambre_5, new_entity_id=zwave.multisensor_chambre, query_stage=CacheLoad, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'beaming', 'routing'}, sentCnt=3, sentFailed=1, retries=0, receivedCnt=760, receivedDups=0, receivedUnsolicited=760, sentTS=2017-09-06 09:28:26:884 , receivedTS=2017-09-08 21:45:38:246 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=85, wake_up_interval=240, friendly_name=Multisensor Chambre @ 2017-09-05T20:59:49.297501-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.multisensor_chambre_alarm_type, old_state=<state sensor.multisensor_chambre_alarm_type=0; node_id=5, value_index=0, value_instance=1, old_entity_id=sensor.multisensor_chambre_alarm_type_5_0, new_entity_id=sensor.multisensor_chambre_alarm_type, unit_of_measurement=, friendly_name=Multisensor Chambre Alarm Type, hidden=True @ 2017-09-08T20:33:26.588368-04:00>, new_state=<state sensor.multisensor_chambre_alarm_type=0; node_id=5, value_index=0, value_instance=1, old_entity_id=sensor.multisensor_chambre_alarm_type_5_0, new_entity_id=sensor.multisensor_chambre_alarm_type, unit_of_measurement=, friendly_name=Multisensor Chambre Alarm Type, hidden=True @ 2017-09-08T21:45:38.424395-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.multisensor_chambre_alarm_level, old_state=<state sensor.multisensor_chambre_alarm_level=0; node_id=5, value_index=1, value_instance=1, old_entity_id=sensor.multisensor_chambre_alarm_level_5_1, new_entity_id=sensor.multisensor_chambre_alarm_level, unit_of_measurement=, friendly_name=Multisensor Chambre Alarm Level, hidden=True @ 2017-09-08T20:33:26.648606-04:00>, new_state=<state sensor.multisensor_chambre_alarm_level=0; node_id=5, value_index=1, value_instance=1, old_entity_id=sensor.multisensor_chambre_alarm_level_5_1, new_entity_id=sensor.multisensor_chambre_alarm_level, unit_of_measurement=, friendly_name=Multisensor Chambre Alarm Level, hidden=True @ 2017-09-08T21:45:38.451249-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.multisensor_chambre_sourcenodeid, old_state=<state sensor.multisensor_chambre_sourcenodeid=0; node_id=5, value_index=2, value_instance=1, old_entity_id=sensor.multisensor_chambre_sourcenodeid_5_2, new_entity_id=sensor.multisensor_chambre_sourcenodeid, unit_of_measurement=, friendly_name=Multisensor Chambre SourceNodeId, hidden=True @ 2017-09-08T20:33:26.694928-04:00>, new_state=<state sensor.multisensor_chambre_sourcenodeid=0; node_id=5, value_index=2, value_instance=1, old_entity_id=sensor.multisensor_chambre_sourcenodeid_5_2, new_entity_id=sensor.multisensor_chambre_sourcenodeid, unit_of_measurement=, friendly_name=Multisensor Chambre SourceNodeId, hidden=True @ 2017-09-08T21:45:38.499958-04:00>>
2017-09-08 21:45:38 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.multisensor_chambre_burglar, old_state=<state sensor.multisensor_chambre_burglar=7; node_id=5, value_index=10, value_instance=1, old_entity_id=sensor.multisensor_chambre_burglar_5_10, new_entity_id=sensor.multisensor_chambre_burglar, unit_of_measurement=, friendly_name=Multisensor Chambre Burglar, hidden=True @ 2017-09-08T20:33:26.794899-04:00>, new_state=<state sensor.multisensor_chambre_burglar=7; node_id=5, value_index=10, value_instance=1, old_entity_id=sensor.multisensor_chambre_burglar_5_10, new_entity_id=sensor.multisensor_chambre_burglar, unit_of_measurement=, friendly_name=Multisensor Chambre Burglar, hidden=True @ 2017-09-08T21:45:38.508410-04:00>>
2017-09-08 21:45:48 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.allume_lumiere_chambre_si_mouvement, old_state=<state automation.allume_lumiere_chambre_si_mouvement=on; last_triggered=2017-09-08T20:27:53.152793-04:00, friendly_name=Allume lumière chambre si mouvement @ 2017-09-05T20:59:26.519275-04:00>, new_state=<state automation.allume_lumiere_chambre_si_mouvement=on; last_triggered=2017-09-08T21:45:48.189234-04:00, friendly_name=Allume lumière chambre si mouvement @ 2017-09-05T20:59:26.519275-04:00>>
2017-09-08 21:45:48 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1960847504-637>
2017-09-08 21:45:48 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=script.allume_lumiere_chambre, old_state=<state script.allume_lumiere_chambre=off; last_triggered=2017-09-08T20:27:43.160460-04:00, friendly_name=Allume lumière chambre @ 2017-09-05T20:58:48.955460-04:00>, new_state=<state script.allume_lumiere_chambre=off; last_triggered=2017-09-08T21:45:38.200911-04:00, friendly_name=Allume lumière chambre @ 2017-09-05T20:58:48.955460-04:00>>
Additional info: I use the HUSBZB-1 as zigbee controller. My lights are Ecosmart smart bulbs (RGB and white).
Other similar exceptions (now running 0.53.1)...
2017-09-24 11:31:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step
result = coro.send(None)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/__init__.py", line 279, in async_handle_light_service
yield from light.async_turn_on(**params)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/zha.py", line 81, in async_turn_on
temperature, duration)
File "/usr/lib/python3.6/site-packages/bellows/zigbee/application.py", line 263, in request
v = yield from asyncio.wait_for(reply_fut, timeout)
File "/usr/lib/python3.6/asyncio/tasks.py", line 356, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
2017-09-24 11:31:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step
result = coro.send(None)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/__init__.py", line 281, in async_handle_light_service
yield from light.async_turn_off(**params)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/zha.py", line 118, in async_turn_off
yield from self._endpoint.on_off.off()
File "/usr/lib/python3.6/site-packages/bellows/zigbee/application.py", line 263, in request
v = yield from asyncio.wait_for(reply_fut, timeout)
File "/usr/lib/python3.6/asyncio/tasks.py", line 356, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
I too am having this issue. I just started setting up Home Assistant with hass.io and a HUSBZB-1. Finally got the bulb to join and it worked for 2 on/off cycles and started throwing this error.
2017-10-28 15:51:22 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/tasks.py", line 181, in _step
result = coro.throw(exc)
File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1026, in _event_to_service_call
yield from service_handler.func(service_call)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/__init__.py", line 280, in async_handle_light_service
yield from light.async_turn_on(**params)
File "/usr/lib/python3.6/site-packages/homeassistant/components/light/zha.py", line 105, in async_turn_on
duration
File "/usr/lib/python3.6/site-packages/bellows/zigbee/application.py", line 284, in request
v = yield from send_fut
File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
bellows.zigbee.exceptions.DeliveryError: Message send failure: EmberStatus.DELIVERY_FAILED
I'm not sure what is faulty (the bulbs, the usb controller or the hass component). I returned my bulbs and purchased Philips Hue instead. I now use the hue bridge and the usb controller only act as a z-wave controller (I don't have any other zigbee devices).
I have the same problem. Please post the solution if anyone found
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍