Triggering a rule with 'Central Scene' changes

Hi,

I am migrating from Openhab to HA and am still on a steep learning curve.
I’m trying to create a really simple rule, which is pushing a button on the Aeotec Wallmote, and Pause/Playing a Sonos speaker. It’s my first rule and I can’t get it to fire.

I have updated my zwcfg file to ensure it is properly recognised, per https://www.home-assistant.io/docs/z-wave/device-specific/#aeotec-wallmote

The Zwave log shows that it sees the scene change:

2019-10-05 11:46:43.949 Detail, Node008,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x08, 0x05, 0x5b, 0x03, 0x89, 0x00, 0x01, 0x2d
2019-10-05 11:46:43.949 Detail,
2019-10-05 11:46:43.949 Info, Node008, Received Central Scene set from node 8: scene id=1 in 0 seconds. Sending event notification.
2019-10-05 11:46:43.949 Warning, Node008, No ValueID created for Scene 1
2019-10-05 11:46:43.969 Detail, Node008,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x08, 0x07, 0x60, 0x0d, 0x01, 0x00, 0x20, 0x01, 0x00, 0xb4
2019-10-05 11:46:43.969 Detail,
2019-10-05 11:46:43.969 Info, Node008, Received a MultiChannelEncap from node 8, endpoint 1 for Command Class COMMAND_CLASS_BASIC
2019-10-05 11:46:43.969 Info, Node008, Received Basic set from node 8: level=0.  Sending event notification.
2019-10-05 11:46:43.969 Detail, Node008, Notification: NodeEvent
2019-10-05 11:46:43.988 Detail, Node008,   Received: 0x01, 0x0e, 0x00, 0x04, 0x00, 0x08, 0x08, 0x60, 0x0d, 0x01, 0x00, 0x26, 0x01, 0x00, 0xff, 0x41
2019-10-05 11:46:43.988 Detail,
2019-10-05 11:46:43.988 Info, Node008, Received a MultiChannelEncap from node 8, endpoint 1 for Command Class COMMAND_CLASS_SWITCH_MULTILEVEL

And my rule is simply:

- id: 'OfficeMusicToggle'
  alias: 'Office Music Pause-Play'
  trigger: 
    platform: event
    event_type: zwave.scene_activated
    event_data: 
      entity_id: switch.aeon_labs_zw129_wallmote_duo_switch
      scene_id: "1"
      scene_data: 0
  condition:
  action:
      service: notify.notify
      data_template:
        message: >
          Button pressed

Can anyone please suggest what I’m missing?

TIA.

Automation logic in openHAB is called a Rule. In Home Assistant it’s called an automation.

  1. Go to Developer Tools > Services
  2. Set the Service field to automation.trigger
  3. Set the Entity field to your automation
  4. Click the Call Service button

This will skip your automation’s trigger and condition sections and simply execute the action. You should receive a notification via whatever method you configured for notify.notify.

If you do not receive a notification, then there’s something wrong with the way you configured notify.notify.

If you do receive a notification, it suggests there may be something wrong with the trigger.

Thank you so much for the advice, @123. I have now sorted this out. Just in case anyone struggles with the same problem, here is my working automation.

- id: 'OfficeMusicToggle'
  alias: 'Office Music Pause-Play'
  trigger: 
    platform: event
    event_type: zwave.scene_activated
    event_data: 
      entity_id: zwave.aeon_labs_zw129_wallmote_duo
      scene_id: 1
      scene_data: 0
  condition:
  action: 
      service: media_player.media_play_pause
      entity_id: media_player.office