Automation has stopped firing (Zwave Scene activated)

Hi,

I’ve been using an automation for about a year now that triggers off a scene that is sent from a Fibaro Dimmer 2. By double tapping S2 it send scene id=24. I’ve used this to turn off all lights, devices etc when leaving the apartment. However a few days ago it stopped working. It could be related to when I downgraded from 61.0 to 60.1 due to the HASS.IO menu problem. But I’m now running 61.1 and have the same problem.

This is the automation:

alias: "Går hemifrån"
trigger:
  - platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.hallen
      scene_id: 24
action:
    service: scene.turn_on
    entity_id: scene.borta

This has worked great for months.

The logs:

OZW.log:

Summary
> 2018-01-21 10:07:54.968 Info, Node002, Received Scene Activation set from node 2: scene id=24 now. Sending event notification.
> 2018-01-21 10:07:54.968 Detail, Node002, Notification: SceneEvent
> 2018-01-21 10:07:55.089 Detail, Node002,   Received: 0x01, 0x0a, 0x00, 0x04, 0x00, 0x02, 0x04, 0x2b, 0x01, 0x18, 0x00, 0xc5

home-assistant.log:

Summary
2018-01-21 10:07:55 DEBUG (Dummy-6) [libopenzwave] notif_callback : call callback context
2018-01-21 10:07:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.hallen_system, old_state=<state sensor.hallen_system=1; node_id=2, value_index=12, value_instance=1, value_id=72057594077528257, old_entity_id=sensor.hallen_system_2_12, new_entity_id=sensor.hallen_system, power_consumption=77.6, unit_of_measurement=, friendly_name=Hallen System @ 2018-01-21T10:07:54.904400+01:00>, new_state=<state sensor.hallen_system=1; node_id=2, value_index=12, value_instance=1, value_id=72057594077528257, old_entity_id=sensor.hallen_system_2_12, new_entity_id=sensor.hallen_system, power_consumption=77.6, unit_of_measurement=, friendly_name=Hallen System @ 2018-01-21T10:07:55.503184+01:00>>
2018-01-21 10:07:55 DEBUG (Dummy-6) [openzwave] zwcallback args=[{'notificationType': 'SceneEvent', 'homeId': 4164637587, 'nodeId': 2, 'sceneId': 24}]
2018-01-21 10:07:55 DEBUG (Dummy-6) [openzwave] Z-Wave Notification SceneEvent : {'notificationType': 'SceneEvent', 'homeId': 4164637587, 'nodeId': 2, 'sceneId': 24}
2018-01-21 10:07:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event zwave.scene_activated[L]: entity_id=zwave.hallen, node_id=2, scene_id=24>
2018-01-21 10:07:55 DEBUG (Dummy-6) [libopenzwave] notif_callback : end
2018-01-21 10:07:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event zwave.scene_activated[L]: entity_id=zwave.hallen, node_id=2, scene_id=24>
2018-01-21 10:07:55 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1903975920: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'zwave.hallen', 'old_state': <state zwave.hallen=initializing; node_id=2, node_name=Hallen, manufacturer_name=FIBARO System, product_name=FGD212 Dimmer 2, old_entity_id=zwave.hallen_2, new_entity_id=zwave.hallen, query_stage=CacheLoad, is_awake=True, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'listening', 'beaming'}, location=Hallen, sentCnt=0, sentFailed=0, retries=0, receivedCnt=13, receivedDups=9, receivedUnsolicited=13, sentTS=2018-01-21 10:05:22:027 , receivedTS=2018-01-21 10:07:53:776 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, friendly_name=Hallen @ 2018-01-21T10:05:32.851253+01:00>, 'new_state': <state zwave.hallen=initializing; node_id=2, node_name=Hallen, manufacturer_name=FIBARO System, product_name=FGD212 Dimmer 2, old_entity_id=zwave.hallen_2, new_entity_id=zwave.hallen, query_stage=CacheLoad, is_awake=True, is_ready=False, is_failed=False, is_info_received=True, max_baud_rate=40000, is_zwave_plus=True, capabilities={'routing', 'listening', 'beaming'}, location=Hallen, sentCnt=0, sentFailed=0, retries=0, receivedCnt=14, receivedDups=10, receivedUnsolicited=14, sentTS=2018-01-21 10:05:22:027 , receivedTS=2018-01-21 10:07:53:893 , lastRequestRTT=0, averageRequestRTT=0, lastResponseRTT=0, averageResponseRTT=0, friendly_name=Hallen @ 2018-01-21T10:05:32.851253+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 21, 9, 7, 54, 367085, tzinfo=<UTC>)}}
2018-01-21 10:07:55 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1903975920: Sending {'id': 2, 'type': 'event', 'event': {'event_type': 'state_changed', 'data': {'entity_id': 'sensor.hallen_power', 'old_state': <state sensor.hallen_power=77.6; node_id=2, value_index=4, value_instance=1, value_id=72057594076479554, old_entity_id=sensor.hallen_power_2_4, new_entity_id=sensor.hallen_power, power_consumption=77.6, unit_of_measurement=W, friendly_name=Taklampa hallen elförbrukning, icon=mdi:flash @ 2018-01-21T10:07:53.998802+01:00>, 'new_state': <state sensor.hallen_power=77.6; node_id=2, value_index=4, value_instance=1, value_id=72057594076479554, old_entity_id=sensor.hallen_power_2_4, new_entity_id=sensor.hallen_power, power_consumption=77.6, unit_of_measurement=W, friendly_name=Taklampa hallen elförbrukning, icon=mdi:flash @ 2018-01-21T10:07:54.479485+01:00>}, 'origin': 'LOCAL', 'time_fired': datetime.datetime(2018, 1, 21, 9, 7, 54, 479693, tzinfo=<UTC>)}}
2018-01-21 10:07:55 DEBUG (Dummy-6) [libopenzwave] notif_callback : new notification
2018-01-21 10:07:55 DEBUG (Dummy-6) [libopenzwave] notif_callback : Notification type : 26, nodeId : 2

From what I can see from the logs the scene is registered by HASS?
I can activate the automation manually from within HASS and it works perfectly.

Solved it by adding initial_state ‘on’ to the automation.

2 Likes

This fixed my problem as well! Thanks!