Hi all,
I am not sure what to make of it and if this has anything to do with the latest version of HA or something else.
I lean towards a bug in HA for the reasons I will outline below, but it could be something else and I wanted to hear if anybody else is experiencing the same issue…
Description of the Issue:
After renaming the Philio sensor in Z-wave screen of the “Configuration” the sensor is renamed to “office_sensor” and showing with a new name in “nodes” list. It is also properly showing with new entity_id in logs such as:
old_entity_id=sensor.office_sensor_temperature_22_1, new_entity_id=sensor.office_sensor_temperature
But for some reason at the same time, the actual state change is happening on a default name:
Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_temperature, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_temperature=27.2; node_id=22,
so it seems that the sensor has two different names… I could not get it to work with the new renamed name, until I relialized that i need to use the default name before change to capture any triggers:
After renaming the sensor I was expecting THIS to work for template sensor:
office_motion:
friendly_name: 'Office Motion'
value_template: >-
{%- if is_state("sensor.office_sensor_burglar", "8") -%}
Burglar
{%- else -%}
Off
{%- endif -%}
But instead I had to to THIS to make it work:
office_motion:
friendly_name: 'Office Motion'
value_template: >-
{%- if is_state("sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar", "8") -%}
Burglar
{%- else -%}
Off
{%- endif -%}
Any ideas of what this could be related to? As you can see from below logs, my sensor is indeed renamed to “office_sensor” and showing up as such in the pull down list of “nodes” as well as in logs.
Why I think it is a bug:
-
I have 2 other exact same sensors in the house that I installed 6-8 month ago and they have NO problem and were renamed properly by earlier versions of HA. And they still work as they should with proper names.
-
I bought 2 new sensors this week and BOTH have the same issue. If I had a defective sensor, it would make sense of say ONE of the two have an issue. But two brand new sensors were not properly renamed. This is too much of a coincidence .
Additional Info:
Not sure if it is related, but I added 3 zwave devices in one go to my aeotec stick. Typically I add one at a time. This is the only difference in what I normally do when adding sensors. Could that be the cause of this problem?
My log:
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.alarm_type_2, old_state=<state sensor.alarm_type_2=0; node_id=22, value_index=0, value_instance=1, value_id=72057594413072385, old_entity_id=sensor.office_sensor_alarm_type_22_0, new_entity_id=sensor.office_sensor_alarm_type, unit_of_measurement=, friendly_name=office_sensor Alarm Type @ 2018-02-25T10:12:29.268118+08:00>, new_state=<state sensor.alarm_type_2=0; node_id=22, value_index=0, value_instance=1, value_id=72057594413072385, old_entity_id=sensor.office_sensor_alarm_type_22_0, new_entity_id=sensor.office_sensor_alarm_type, unit_of_measurement=, friendly_name=office_sensor Alarm Type @ 2018-02-25T10:13:23.274735+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.alarm_level_2, old_state=<state sensor.alarm_level_2=0; node_id=22, value_index=1, value_instance=1, value_id=72057594413072401, old_entity_id=sensor.office_sensor_alarm_level_22_1, new_entity_id=sensor.office_sensor_alarm_level, unit_of_measurement=, friendly_name=office_sensor Alarm Level @ 2018-02-25T10:12:29.373548+08:00>, new_state=<state sensor.alarm_level_2=0; node_id=22, value_index=1, value_instance=1, value_id=72057594413072401, old_entity_id=sensor.office_sensor_alarm_level_22_1, new_entity_id=sensor.office_sensor_alarm_level, unit_of_measurement=, friendly_name=office_sensor Alarm Level @ 2018-02-25T10:13:23.449382+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid=0; node_id=22, value_index=2, value_instance=1, value_id=72057594413072417, old_entity_id=sensor.office_sensor_sourcenodeid_22_2, new_entity_id=sensor.office_sensor_sourcenodeid, unit_of_measurement=, friendly_name=office_sensor SourceNodeId @ 2018-02-25T10:12:29.523035+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid=0; node_id=22, value_index=2, value_instance=1, value_id=72057594413072417, old_entity_id=sensor.office_sensor_sourcenodeid_22_2, new_entity_id=sensor.office_sensor_sourcenodeid, unit_of_measurement=, friendly_name=office_sensor SourceNodeId @ 2018-02-25T10:13:23.585821+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.office_sensor, old_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=484, receivedDups=6, receivedUnsolicited=475, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:23:089 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>, new_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=485, receivedDups=6, receivedUnsolicited=476, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:23:475 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar=254; node_id=22, value_index=10, value_instance=1, value_id=72057594413072545, old_entity_id=sensor.office_sensor_burglar_22_10, new_entity_id=sensor.office_sensor_burglar, unit_of_measurement=, friendly_name=office_sensor Burglar @ 2018-02-25T10:12:29.563835+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar=8; node_id=22, value_index=10, value_instance=1, value_id=72057594413072545, old_entity_id=sensor.office_sensor_burglar_22_10, new_entity_id=sensor.office_sensor_burglar, unit_of_measurement=, friendly_name=office_sensor Burglar @ 2018-02-25T10:13:23.732700+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.office_motion, old_state=<state sensor.office_motion=Off; friendly_name=Office Motion @ 2018-02-25T10:12:29.628497+08:00>, new_state=<state sensor.office_motion=Burglar; friendly_name=Office Motion @ 2018-02-25T10:13:23.804027+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_luminance, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_luminance=73.0; node_id=22, value_index=3, value_instance=1, value_id=72057594412023858, old_entity_id=sensor.office_sensor_luminance_22_3, new_entity_id=sensor.office_sensor_luminance, unit_of_measurement=%, friendly_name=office_sensor Luminance @ 2018-02-25T10:12:23.476876+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_luminance=86.0; node_id=22, value_index=3, value_instance=1, value_id=72057594412023858, old_entity_id=sensor.office_sensor_luminance_22_3, new_entity_id=sensor.office_sensor_luminance, unit_of_measurement=%, friendly_name=office_sensor Luminance @ 2018-02-25T10:13:23.845070+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.office_sensor, old_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=485, receivedDups=6, receivedUnsolicited=476, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:23:475 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>, new_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=486, receivedDups=6, receivedUnsolicited=477, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:23:585 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>>
2018-02-25 10:13:23 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_temperature, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_temperature=27.2; node_id=22, value_index=1, value_instance=1, value_id=72057594412023826, old_entity_id=sensor.office_sensor_temperature_22_1, new_entity_id=sensor.office_sensor_temperature, unit_of_measurement=°C, friendly_name=office_sensor Temperature @ 2018-02-25T10:12:23.662756+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_temperature=27.2; node_id=22, value_index=1, value_instance=1, value_id=72057594412023826, old_entity_id=sensor.office_sensor_temperature_22_1, new_entity_id=sensor.office_sensor_temperature, unit_of_measurement=°C, friendly_name=office_sensor Temperature @ 2018-02-25T10:13:23.936465+08:00>>
2018-02-25 10:13:26 INFO (MainThread) [homeassistant.components.http] Serving /api/12345678901234567890/lights to 192.168.11.83 (auth: False)
2018-02-25 10:13:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.office_sensor, old_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=486, receivedDups=6, receivedUnsolicited=477, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:23:585 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>, new_state=<state zwave.office_sensor=initializing; node_id=22, node_name=office_sensor, manufacturer_name=Philio Technology Corporation, product_name=PST02-A 4 in 1 Multi-Sensor, old_entity_id=zwave.office_sensor_22, new_entity_id=zwave.office_sensor, query_stage=Dynamic, is_awake=False, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'beaming'}, sentCnt=11, sentFailed=1, retries=0, receivedCnt=487, receivedDups=6, receivedUnsolicited=478, sentTS=2018-02-24 20:57:55:580 , receivedTS=2018-02-25 10:13:28:585 , lastRequestRTT=30, averageRequestRTT=49, lastResponseRTT=5204, averageResponseRTT=4928, battery_level=100, wake_up_interval=86400, friendly_name=office_sensor @ 2018-02-24T20:47:21.606420+08:00>>
2018-02-25 10:13:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.alarm_type_2, old_state=<state sensor.alarm_type_2=0; node_id=22, value_index=0, value_instance=1, value_id=72057594413072385, old_entity_id=sensor.office_sensor_alarm_type_22_0, new_entity_id=sensor.office_sensor_alarm_type, unit_of_measurement=, friendly_name=office_sensor Alarm Type @ 2018-02-25T10:13:23.274735+08:00>, new_state=<state sensor.alarm_type_2=0; node_id=22, value_index=0, value_instance=1, value_id=72057594413072385, old_entity_id=sensor.office_sensor_alarm_type_22_0, new_entity_id=sensor.office_sensor_alarm_type, unit_of_measurement=, friendly_name=office_sensor Alarm Type @ 2018-02-25T10:13:28.793095+08:00>>
2018-02-25 10:13:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.alarm_level_2, old_state=<state sensor.alarm_level_2=0; node_id=22, value_index=1, value_instance=1, value_id=72057594413072401, old_entity_id=sensor.office_sensor_alarm_level_22_1, new_entity_id=sensor.office_sensor_alarm_level, unit_of_measurement=, friendly_name=office_sensor Alarm Level @ 2018-02-25T10:13:23.449382+08:00>, new_state=<state sensor.alarm_level_2=0; node_id=22, value_index=1, value_instance=1, value_id=72057594413072401, old_entity_id=sensor.office_sensor_alarm_level_22_1, new_entity_id=sensor.office_sensor_alarm_level, unit_of_measurement=, friendly_name=office_sensor Alarm Level @ 2018-02-25T10:13:28.854341+08:00>>
2018-02-25 10:13:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid=0; node_id=22, value_index=2, value_instance=1, value_id=72057594413072417, old_entity_id=sensor.office_sensor_sourcenodeid_22_2, new_entity_id=sensor.office_sensor_sourcenodeid, unit_of_measurement=, friendly_name=office_sensor SourceNodeId @ 2018-02-25T10:13:23.585821+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_sourcenodeid=0; node_id=22, value_index=2, value_instance=1, value_id=72057594413072417, old_entity_id=sensor.office_sensor_sourcenodeid_22_2, new_entity_id=sensor.office_sensor_sourcenodeid, unit_of_measurement=, friendly_name=office_sensor SourceNodeId @ 2018-02-25T10:13:28.898086+08:00>>
2018-02-25 10:13:28 INFO (SyncWorker_14) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-02-25 10:13:28 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar, old_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar=8; node_id=22, value_index=10, value_instance=1, value_id=72057594413072545, old_entity_id=sensor.office_sensor_burglar_22_10, new_entity_id=sensor.office_sensor_burglar, unit_of_measurement=, friendly_name=office_sensor Burglar @ 2018-02-25T10:13:23.732700+08:00>, new_state=<state sensor.philio_technology_corporation_pst02a_4_in_1_multisensor_burglar=254; node_id=22, value_index=10, value_instance=1, value_id=72057594413072545, old_entity_id=sensor.office_sensor_burglar_22_10, new_entity_id=sensor.office_sensor_burglar, unit_of_measurement=, friendly_name=office_sensor Burglar @ 2018-02-25T10:13:28.999528+08:00>>
2018-02-25 10:13:29 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.office_motion, old_state=<state sensor.office_motion=Burglar; friendly_name=Office Motion @ 2018-02-25T10:13:23.804027+08:00>, new_state=<state sensor.office_motion=Off; friendly_name=Office Motion @ 2018-02-25T10:13:29.091958+08:00>>
2018-02-25 10:13:29 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pws_weather_1h, old_state=<state sensor.pws_weather_1h=Chance of a Thunderstorm; attribution=Data provided by the WUnderground weather service, temp_c=28, temp_f=83, dewpoint_c=24, dewpoint_f=76, precip_prop=40, sky=69, precip_mm=2, precip_in=0.08, humidity=79, wind_kph=18, wind_mph=11, pressure_mb=1012, pressure_inHg=29.88, date=11:00 AM +08 on February 25, 2018, friendly_name=Sun 11:00 AM, icon=mdi:gauge, entity_picture=https://icons.wxug.com/i/c/k/chancetstorms.gif @ 2018-02-25T09:01:29.875848+08:00>, new_state=<state sensor.pws_weather_1h=Chance of a Thunderstorm; attribution=Data provided by the WUnderground weather service, temp_c=29, temp_f=84, dewpoint_c=24, dewpoint_f=76, precip_prop=40, sky=67, precip_mm=2, precip_in=0.08, humidity=79, wind_kph=21, wind_mph=13, pressure_mb=1012, pressure_inHg=29.88, date=11:00 AM +08 on February 25, 2018, friendly_name=Sun 11:00 AM, icon=mdi:gauge, entity_picture=https://icons.wxug.com/i/c/k/chancetstorms.gif @ 2018-02-25T09:01:29.875848+08:00>>