I’d like to trigger a notification that displays the friendly_name of the sensor that triggered the alarm. states.alarm_control_panel.house.attributes.changed_by gives me the sensor name.
Is there a way to retrieve the friendly_name of that sensor to display in a notification’s message?
After upgrading HASS to 0.41, I’m getting following error, anyone else getting this?
17-04-09 17:40:48 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up platform bwalarm
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 148, in _async_setup_platform
entity_platform.async_schedule_add_entities, discovery_info
TypeError: 'NoneType' object is not iterable
I dont believe anyone has since the newer versions of HASS. I guess I am just wondering if it is a minor coding change or a fundamental rewrite of his bwalarm.py
In other words is it even fixable? I took a stab at seeing where the issue was but was not able to solve with my limited knowledge of python.
Hmm i am still getting this error even after removing the custom panel:
2017-07-08 21:00:35 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up platform bwalarm
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 150, in _async_setup_platform
entity_platform.async_schedule_add_entities, discovery_info
File “/home/hass/.homeassistant/custom_components/alarm_control_panel/bwalarm.py”, line 60, in async_setup_platform
yield from async_add_devices([alarm])
TypeError: ‘NoneType’ object is not iterable