Closed 2rs closed 5 years ago
I am quite sure that this is not broken but your configuration dump is a lot to digest.
Can you cut your automations.yaml down to just two entries, verify that they do not fire and then post them here?
Try changing:
- data:
brightness_pct: 10
entity_id: light_toalett
service: light.turn_on
TO:
- service: light.turn_on
data:
brightness_pct: 10
entity_id: light_toalett
It might also help if you prefix your light entities with the light domain example: light.light_toalett
I am quite sure that this is not broken but your configuration dump is a lot to digest.
Can you cut your automations.yaml down to just two entries, verify that they do not fire and then post them here?
The two of them together, with brightness, does not fire. But if just one of them has brightness they do fire.
- id: '1548796401433'
alias: Lys spisestue on 7-23
trigger:
- entity_id: binary_sensor.pir_stueost
from: 'off'
platform: state
to: 'on'
condition:
- after: 07:00:00
before: '23:00:00'
condition: time
action:
- data:
brightness_pct: 100
entity_id: light.spisestue
service: light.turn_on
- id: '1548900953061'
alias: Lys spisestue 23-7
trigger:
- entity_id: binary_sensor.pir_stueost
from: 'off'
platform: state
to: 'on'
condition:
- after: '23:00:00'
before: 06:59:59
condition: time
action:
- data:
brightness_pct: 10
entity_id: light.spisestue
service: light.turn_on
I did minimal changes to that and it does work for me (turning on one light will turn on the other).
Do the automations work if you trigger them by hand in the frontend UI?
automation issue20976:
- id: '1548796401433'
alias: Lys spisestue on 7-23
trigger:
- entity_id: light.krea
from: 'off'
platform: state
to: 'on'
condition:
- after: 07:00:00
before: '23:00:00'
condition: time
action:
- data:
brightness_pct: 100
entity_id: light.kontor
service: light.turn_on
- id: '1548900953061'
alias: Lys spisestue 23-7
trigger:
- entity_id: light.krea
from: 'off'
platform: state
to: 'on'
condition:
- after: '23:00:00'
before: 06:59:59
condition: time
action:
- data:
brightness_pct: 10
entity_id: light.kontor
service: light.turn_on
Try changing:
- data: brightness_pct: 10 entity_id: light_toalett service: light.turn_on TO: - service: light.turn_on data: brightness_pct: 10 entity_id: light_toalett
This did not change the behaviour.
Do the automations work if you trigger them by hand in the frontend UI?
This is somewhat strange. After having realoded the automations it does not work if I first trigger the 00-07 by hand in the frontend, but if I first trigger the 07-24, which do work, thereafter triggering the 00-07 does work. And I can keep on juggeling between the 07-24 and 00-07.
I tried to change my automations to trigger by the state of a light rather than by the binary_sensor of a z-wave PIR, like you did, but it does not work. And to add to the confusion, now it does not even work with brightness in just one of the automations. I verified that it does work without brightness on both.
So this does not turn on the light or what exactly does "does not work" mean?
action:
- data:
brightness_pct: 10
entity_id: light.spisestue
service: light.turn_on
So this does not turn on the light or what exactly does "does not work" mean?
action: - data: brightness_pct: 10 entity_id: light.spisestue service: light.turn_on
That does not turn on the light if triggered by an automation, and there is a second automation triggered by the same state also with a brightness value.
if triggered manually i discovered that if I tried to trigger the automation 00-07 first then it would not trigger, but if I triggered the 07-24 first then the 00-07would trigger,
if triggered manually i discovered that if I tried to trigger the automation 00-07 first then it would not trigger, but if I triggered the 07-24 first then the 00-07would trigger,
To keep it simpler, let's stick to this manual case.
Again, what does this mean exactly? Is the light off and it stays off? In both situations?
To simplify further: do you still see the issue if you move the action out of the automation
and into a script
?
if triggered manually i discovered that if I tried to trigger the automation 00-07 first then it would not trigger, but if I triggered the 07-24 first then the 00-07would trigger,
To keep it simpler, let's stick to this manual case.
Again, what does this mean exactly? Is the light off and it stays off? In both situations?
To simplify further: do you still see the issue if you move the action out of the
automation
and into ascript
?
It does not work when triggered by the PIR. The light stays off. I have changed the time settings so that i could check both withing a short timeframe, If the 00-07 is triggered manually, and it is the first that is triggered after a reload of automations it does not turn on light. But if the 7-24 has been triggered first manually, which does turn on light, then the 00-07 also turns on light and those two can be triggered manually in turns and does turn on the light at the correct brightness.
I have not tried this in a script. I want to keep things easy maintainable and only use the automations editor. Even though I have worked directly in the automations.yaml for testing and sorting out this issue.
Rather than a script
you can do light.turn_on
from the Services Developer Tool, with data:
{
"entity_id": "light.spisestue", "brightness_pct":10
}
This should be the same as triggering the automation but it is a much smaller test to debug.
Also try to enable debug logging and see what is logged when you trigger the automation and nothing happens, by adding this to configuration.yaml:
logger:
default: debug
Turning on light vith a brightness value in the SDT does work. On several different entities and with different values.
As I have tried to explain the problem appears when there are two automations on the same trigger, with different time conditions, and a brightness value.
I don't know how else to explain it. But my laymans approach would be that this has to do with how things in the automations file is being treated.
Also try to enable debug logging and see what is logged when you trigger the automation and nothing happens, by adding this to configuration.yaml:
I think these are the relevant log entries. Or at least within the period from when i triggered the PIR all entries with tradfri until a different zwave node appears in the log.
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.pir_gang, old_state=<state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=4, receivedDups=0, receivedUnsolicited=4, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:16:27:358 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, new_state=<state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pir_gang_alarm_type, old_state=<state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:16:26.977647+01:00>, new_state=<state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:19:08.247707+01:00>>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zwave.pir_gang', 'old_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=4, receivedDups=0, receivedUnsolicited=4, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:16:27:358 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, 'new_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 218762, tzinfo=<UTC>), 'context': {'id': '5ab17fa93a4142f08668255250802f61', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : end
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : new notification
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_alarm_type', 'old_state': <state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:16:26.977647+01:00>, 'new_state': <state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:19:08.247707+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 247887, tzinfo=<UTC>), 'context': {'id': '30d3b51998924e01ad841fe5fcc0792a', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : Notification type : 2, nodeId : 9
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : ValueID : 72057594194968609
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zwave.pir_gang', 'old_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=4, receivedDups=0, receivedUnsolicited=4, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:16:27:358 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, 'new_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 218762, tzinfo=<UTC>), 'context': {'id': '5ab17fa93a4142f08668255250802f61', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : GetCommandClassId : 113, GetType : 1
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 2, 'id': 72057594194968609, 'genre': 'User', 'type': 'Byte', 'value': 0, 'label': 'SourceNodeId', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_alarm_type', 'old_state': <state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:16:26.977647+01:00>, 'new_state': <state sensor.pir_gang_alarm_type=0; node_id=9, value_index=0, value_instance=1, value_id=72057594194968577, unit_of_measurement=, friendly_name=PIR gang Alarm Type, hidden=True @ 2019-02-17T20:19:08.247707+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 247887, tzinfo=<UTC>), 'context': {'id': '30d3b51998924e01ad841fe5fcc0792a', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : call callback context
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] zwcallback args=[{'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 2, 'id': 72057594194968609, 'genre': 'User', 'type': 'Byte', 'value': 0, 'label': 'SourceNodeId', 'units': '', 'readOnly': True}}]
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] Z-Wave Notification ValueChanged : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 2, 'id': 72057594194968609, 'genre': 'User', 'type': 'Byte', 'value': 0, 'label': 'SourceNodeId', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6dc877d0: Type.ACK 2.05 Content (ID 23017, token b'\x00\x00*\xc1') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 125 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange removed, message ID: 23017.
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6dc877d0: Type.ACK 2.05 Content (ID 23017, token b'\x00\x00*\xc1') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 125 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pir_gang_alarm_level, old_state=<state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:16:27.393009+01:00>, new_state=<state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:19:08.410039+01:00>>
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : end
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Toalett","9002":1515468655,"9003":183005,"5850":0,"5851":0,"9039":227453,"9108":0,"9018":{"15002":{"9003":[65541]}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : new notification
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183007]
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : Notification type : 2, nodeId : 9
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_alarm_level', 'old_state': <state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:16:27.393009+01:00>, 'new_state': <state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:19:08.410039+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 410237, tzinfo=<UTC>), 'context': {'id': '016feebb6bb34bfca97714b3093e87aa', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : ValueID : 72057594194968737
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : GetCommandClassId : 113, GetType : 1
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 10, 'id': 72057594194968737, 'genre': 'User', 'type': 'Byte', 'value': 8, 'label': 'Burglar', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_alarm_level', 'old_state': <state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:16:27.393009+01:00>, 'new_state': <state sensor.pir_gang_alarm_level=0; node_id=9, value_index=1, value_instance=1, value_id=72057594194968593, unit_of_measurement=, friendly_name=PIR gang Alarm Level, hidden=True @ 2019-02-17T20:19:08.410039+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 410237, tzinfo=<UTC>), 'context': {'id': '016feebb6bb34bfca97714b3093e87aa', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : call callback context
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] zwcallback args=[{'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 10, 'id': 72057594194968737, 'genre': 'User', 'type': 'Byte', 'value': 8, 'label': 'Burglar', 'units': '', 'readOnly': True}}]
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] Z-Wave Notification ValueChanged : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_ALARM', 'instance': 1, 'index': 10, 'id': 72057594194968737, 'genre': 'User', 'type': 'Byte', 'value': 8, 'label': 'Burglar', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ef59c50: Type.CON GET (ID 23018, token b'\x00\x00*\xc2') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange added, message ID: 23018.
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac2, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pir_gang_sourcenodeid, old_state=<state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:16:27.420321+01:00>, new_state=<state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:19:08.550047+01:00>>
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : end
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_sourcenodeid', 'old_state': <state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:16:27.420321+01:00>, 'new_state': <state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:19:08.550047+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 550244, tzinfo=<UTC>), 'context': {'id': '2ad886c484f241f4af7ba85ec1abde80', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : new notification
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : Notification type : 2, nodeId : 9
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_sourcenodeid', 'old_state': <state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:16:27.420321+01:00>, 'new_state': <state sensor.pir_gang_sourcenodeid=0; node_id=9, value_index=2, value_instance=1, value_id=72057594194968609, unit_of_measurement=, friendly_name=PIR gang SourceNodeId, hidden=True @ 2019-02-17T20:19:08.550047+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 550244, tzinfo=<UTC>), 'context': {'id': '2ad886c484f241f4af7ba85ec1abde80', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : ValueID : 72057594193903616
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : GetCommandClassId : 48, GetType : 0
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] addValueId : Notification : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_SENSOR_BINARY', 'instance': 1, 'index': 0, 'id': 72057594193903616, 'genre': 'User', 'type': 'Bool', 'value': True, 'label': 'Sensor', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : call callback context
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] zwcallback args=[{'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_SENSOR_BINARY', 'instance': 1, 'index': 0, 'id': 72057594193903616, 'genre': 'User', 'type': 'Bool', 'value': True, 'label': 'Sensor', 'units': '', 'readOnly': True}}]
2019-02-17 20:19:08 DEBUG (Dummy-6) [openzwave] Z-Wave Notification ValueChanged : {'notificationType': 'ValueChanged', 'homeId': 3762115821, 'nodeId': 9, 'valueId': {'homeId': 3762115821, 'nodeId': 9, 'commandClass': 'COMMAND_CLASS_SENSOR_BINARY', 'instance': 1, 'index': 0, 'id': 72057594193903616, 'genre': 'User', 'type': 'Bool', 'value': True, 'label': 'Sensor', 'units': '', 'readOnly': True}}
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f76d710: Type.ACK 2.05 Content (ID 23018, token b'\x00\x00*\xc2') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 121 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange removed, message ID: 23018.
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f76d710: Type.ACK 2.05 Content (ID 23018, token b'\x00\x00*\xc2') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 121 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pir_gang_burglar, old_state=<state sensor.pir_gang_burglar=0; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:16:27.434278+01:00>, new_state=<state sensor.pir_gang_burglar=8; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:19:08.687269+01:00>>
2019-02-17 20:19:08 DEBUG (Dummy-6) [libopenzwave] notif_callback : end
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Bua","9002":1517409080,"9003":183007,"5850":0,"5851":0,"9039":227461,"9108":0,"9018":{"15002":{"9003":[65569]}}}
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183008]
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_burglar', 'old_state': <state sensor.pir_gang_burglar=0; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:16:27.434278+01:00>, 'new_state': <state sensor.pir_gang_burglar=8; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:19:08.687269+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 687461, tzinfo=<UTC>), 'context': {'id': 'c27767ebe0df47c2b3757d8f2434d3cb', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.pir_gang_burglar', 'old_state': <state sensor.pir_gang_burglar=0; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:16:27.434278+01:00>, 'new_state': <state sensor.pir_gang_burglar=8; node_id=9, value_index=10, value_instance=1, value_id=72057594194968737, unit_of_measurement=, friendly_name=PIR gang Burglar, hidden=True @ 2019-02-17T20:19:08.687269+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 687461, tzinfo=<UTC>), 'context': {'id': 'c27767ebe0df47c2b3757d8f2434d3cb', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6f7e05f0: Type.CON GET (ID 23019, token b'\x00\x00*\xc3') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange added, message ID: 23019.
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac3, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=zwave.pir_gang, old_state=<state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, new_state=<state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=6, receivedDups=0, receivedUnsolicited=6, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:08:575 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.pir_gang, old_state=<state binary_sensor.pir_gang=off; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:16:28.015767+01:00>, new_state=<state binary_sensor.pir_gang=on; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:19:08.817908+01:00>>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f76d6d0: Type.ACK 2.05 Content (ID 23019, token b'\x00\x00*\xc3') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 127 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange removed, message ID: 23019.
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f76d6d0: Type.ACK 2.05 Content (ID 23019, token b'\x00\x00*\xc3') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 127 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zwave.pir_gang', 'old_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, 'new_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=6, receivedDups=0, receivedUnsolicited=6, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:08:575 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 803643, tzinfo=<UTC>), 'context': {'id': 'bb91830808874b66acce3037206ae0d1', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.pir_gang', 'old_state': <state binary_sensor.pir_gang=off; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:16:28.015767+01:00>, 'new_state': <state binary_sensor.pir_gang=on; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:19:08.817908+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 818099, tzinfo=<UTC>), 'context': {'id': 'f00660f2486b4b25a6032d9b8486fe8d', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zwave.pir_gang', 'old_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=5, receivedDups=0, receivedUnsolicited=5, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:07:998 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>, 'new_state': <state zwave.pir_gang=initializing; node_id=9, node_name=PIR gang, manufacturer_name=PIR, product_name=gang, 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', 'zwave_plus', 'routing'}, sentCnt=1, sentFailed=1, retries=0, receivedCnt=6, receivedDups=0, receivedUnsolicited=6, sentTS=2019-02-17 20:15:04:840 , receivedTS=2019-02-17 20:19:08:575 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, battery_level=83, wake_up_interval=43200, friendly_name=PIR gang (9) @ 2019-02-17T20:04:57.159499+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 803643, tzinfo=<UTC>), 'context': {'id': 'bb91830808874b66acce3037206ae0d1', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'binary_sensor.pir_gang', 'old_state': <state binary_sensor.pir_gang=off; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:16:28.015767+01:00>, 'new_state': <state binary_sensor.pir_gang=on; node_id=9, value_index=0, value_instance=1, value_id=72057594193903616, friendly_name=PIR gang Sensor @ 2019-02-17T20:19:08.817908+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 8, 818099, tzinfo=<UTC>), 'context': {'id': 'f00660f2486b4b25a6032d9b8486fe8d', 'user_id': None}}}
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event automation_triggered[L]: name=Lys gang on 07-24, entity_id=automation.lys_gang_on_07_24>
2019-02-17 20:19:08 INFO (MainThread) [homeassistant.components.automation] Executing Lys gang on 07-24
2019-02-17 20:19:08 INFO (MainThread) [homeassistant.helpers.script] Script Lys gang on 07-24: Running script
2019-02-17 20:19:08 INFO (MainThread) [homeassistant.helpers.script] Script Lys gang on 07-24: Executing step call service
2019-02-17 20:19:08 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=light, service=turn_on, service_data=brightness_pct=100, entity_id=light.gang>
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Plantelys","9002":1546892197,"9003":183008,"5850":1,"5851":0,"9039":227464,"9108":0,"9018":{"15002":{"9003":[65556]}}}
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 put ['15004', 183001]: {'5851': 254}
2019-02-17 20:19:08 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 180975]
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6f826110: Type.CON PUT (ID 23020, token b'\x00\x00*\xc4') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s), 13 byte(s) payload>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Exchange added, message ID: 23020.
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac4, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:08 DEBUG (MainThread) [coap] Message to <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470> put into backlog
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:08 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac5, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6ef683d0: Type.ACK 2.04 Changed (ID 23020, token b'\x00\x00*\xc4') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23020.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6f76d1b0: Type.CON GET (ID 23021, token b'\x00\x00*\xc5') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23021.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6ef683d0: Type.ACK 2.04 Changed (ID 23020, token b'\x00\x00*\xc4') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.04 Changed, Received:
2019-02-17 20:19:09 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=automation.lys_gang_on_07_24, old_state=<state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:15:56.684536+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>, new_state=<state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:19:09.025239+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x755b7570: Type.ACK 2.05 Content (ID 23021, token b'\x00\x00*\xc5') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 129 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23021.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x755b7570: Type.ACK 2.05 Content (ID 23021, token b'\x00\x00*\xc5') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 129 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1872301200] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.lys_gang_on_07_24', 'old_state': <state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:15:56.684536+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>, 'new_state': <state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:19:09.025239+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 9, 26270, tzinfo=<UTC>), 'context': {'id': 'f00660f2486b4b25a6032d9b8486fe8d', 'user_id': None}}}
2019-02-17 20:19:09 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1841852816] Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'automation.lys_gang_on_07_24', 'old_state': <state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:15:56.684536+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>, 'new_state': <state automation.lys_gang_on_07_24=on; last_triggered=2019-02-17T20:19:09.025239+01:00, id=1548899908163, friendly_name=Lys gang on 07-24 @ 2019-02-17T20:03:46.055430+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2019, 2, 17, 19, 19, 9, 26270, tzinfo=<UTC>), 'context': {'id': 'f00660f2486b4b25a6032d9b8486fe8d', 'user_id': None}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Entre","9002":1508789687,"9003":180975,"5850":0,"5851":0,"9039":202613,"9108":0,"9018":{"15002":{"9003":[65542,65543]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183002]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ef681d0: Type.CON GET (ID 23022, token b'\x00\x00*\xc6') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23022.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac6, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f76d250: Type.ACK 2.05 Content (ID 23022, token b'\x00\x00*\xc6') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 123 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23022.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f76d250: Type.ACK 2.05 Content (ID 23022, token b'\x00\x00*\xc6') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 123 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Sauna","9002":1514980308,"9003":183002,"5850":0,"5851":0,"9039":227443,"9108":0,"9018":{"15002":{"9003":[65566]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 152945]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6f7f12b0: Type.CON GET (ID 23023, token b'\x00\x00*\xc7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23023.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac7, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6ef5b0f0: Type.ACK 2.05 Content (ID 23023, token b'\x00\x00*\xc7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 149 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23023.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6ef5b0f0: Type.ACK 2.05 Content (ID 23023, token b'\x00\x00*\xc7') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 149 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Studio","9002":1497666393,"9003":152945,"5850":0,"5851":25,"9039":216460,"9108":0,"9018":{"15002":{"9003":[65536,65537,65540,65558,65557]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183004]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6f7e04d0: Type.CON GET (ID 23024, token b'\x00\x00*\xc8') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23024.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac8, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f75e530: Type.ACK 2.05 Content (ID 23024, token b'\x00\x00*\xc8') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 127 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23024.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f75e530: Type.ACK 2.05 Content (ID 23024, token b'\x00\x00*\xc8') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 127 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Kitchen","9002":1515291061,"9003":183004,"5850":1,"5851":254,"9039":227450,"9108":0,"9018":{"15002":{"9003":[65567]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183001]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ef68090: Type.CON GET (ID 23025, token b'\x00\x00*\xc9') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23025.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002ac9, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f75e610: Type.ACK 2.05 Content (ID 23025, token b'\x00\x00*\xc9') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 154 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23025.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f75e610: Type.ACK 2.05 Content (ID 23025, token b'\x00\x00*\xc9') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 154 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Gang","9002":1510447189,"9003":183001,"5850":0,"5851":254,"9039":227440,"9108":0,"9018":{"15002":{"9003":[65560,65553,65551,65552,65554,65555]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183003]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ed912f0: Type.CON GET (ID 23026, token b'\x00\x00*\xca') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23026.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002aca, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f75e770: Type.ACK 2.05 Content (ID 23026, token b'\x00\x00*\xca') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 128 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23026.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f75e770: Type.ACK 2.05 Content (ID 23026, token b'\x00\x00*\xca') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 128 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Dekor stue","9002":1515199912,"9003":183003,"5850":0,"5851":0,"9039":227447,"9108":0,"9018":{"15002":{"9003":[65565]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 131227]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ef68a70: Type.CON GET (ID 23027, token b'\x00\x00*\xcb') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23027.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002acb, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f75e970: Type.ACK 2.05 Content (ID 23027, token b'\x00\x00*\xcb') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 126 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23027.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f75e970: Type.ACK 2.05 Content (ID 23027, token b'\x00\x00*\xcb') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 126 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Terrasse","9002":1499028430,"9003":131227,"5850":0,"5851":0,"9039":221999,"9108":0,"9018":{"15002":{"9003":[65545]}}}
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Executing 192.168.1.16 get ['15004', 183006]
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Sending message <aiocoap.Message at 0x6ed835f0: Type.CON GET (ID 23028, token b'\x00\x00*\xcc') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 3 option(s)>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange added, message ID: 23028.
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Timeout is 93.0
2019-02-17 20:19:09 DEBUG (MainThread) [coap.requester] Sending request - Token: 00002acc, Remote: <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Incoming message <aiocoap.Message at 0x6f75e090: Type.ACK 2.05 Content (ID 23028, token b'\x00\x00*\xcc') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 121 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [coap] New unique message received
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Exchange removed, message ID: 23028.
2019-02-17 20:19:09 DEBUG (MainThread) [coap] Received Response: <aiocoap.Message at 0x6f75e090: Type.ACK 2.05 Content (ID 23028, token b'\x00\x00*\xcc') remote <aiocoap.transports.tinydtls.DTLSClientConnection object at 0x7346e470>, 2 option(s), 121 byte(s) payload>
2019-02-17 20:19:09 DEBUG (MainThread) [pytradfri.api.aiocoap_api] Status: 2.05 Content, Received: {"9001":"Bod","9002":1516813710,"9003":183006,"5850":0,"5851":0,"9039":227458,"9108":0,"9018":{"15002":{"9003":[65568]}}}
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 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Home Assistant release with the issue:
homeassistant: 0.86.4
Last working Home Assistant release (if known): Had this problem since i started with HA and Tradfri in 2017
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io raspberry pi Component/platform:
Description of problem:
I have for some time been trying to set up automations for my lights (tradfri) with different brightness based on time when triggered by a PIR in the automations editor. I have set up different automations with time conditionals for after 07:00:00 before 23:59:59 and after 00:00:00 before 07:59:59 but when I insert brightness_pct: (value) on a line above the entity_I’d in the service data field the automation stops working. Without brightness it works as it is supposed to.
It works just setting an automation without a time conditional and a light_on with a brightness_pct value. It also behaves like this with the regular brightnes (0-255) value. An And if I'm not wrong, it even works with just one automation with a time condtional and an action with brightness, but when there are two automations with the same trigger event, a time condition and brightness it just does not work.
I have experienced this problem for a long time and thought it might be solved in future releases, but since it is still unsolved it looks like I have to file this bug report.
I am only using the automation ui. No errors in homeassistant-log.txt
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Here is my automations.yaml. I am aware of the inconsistent apostrophe encapsulation on time values and have filed a separate repport on that. I have cleaned up this manualy but it did not change the behaviour on my automations.
Traceback (if applicable):
Additional information: I placed this by error in the home-assistant-polymer, but closed it and reposted here.