Zwave events

Sorry, I know these are stupid questions, but I’m new to HA. I’m converting my house from Vera to a hass.io instance. I’m only trying to tie in Zwave for right now. No other control platforms or devices. So far everything works wonderful as long as my events are triggered by time or sun. However, I have a zwave wall switch in the basement, when it turns on I want it to trigger an outlet switch on the other side of the basement which powers a light on that side. I have both devices in the HA Overview. I can turn them on or off. When I manually trigger the switches, I can see the status change from on/off off/on. My assumption is that I can build an automation event as such:
alias: Slave - Workbench light On
trigger:

  • entity_id: zwave.basement_light
    platform: state
    to: ‘on’
    condition: []
    action:
  • data:
    entity_id: switch.on_off_switch_2
    service: switch.turn_on

alias: Slave - Workbench light off
trigger:

  • entity_id: zwave.basement_light
    for: 00:00:30
    platform: state
    to: ‘off’
    condition: []
    action:
  • data:
    entity_id: switch.on_off_switch_2
    service: switch.turn_off

Neither event turns switch_2 on or off. I can look up/change the state of basement_light on/off in the DeveloperTools/State panel. If it trigger either event I can see switch_2 turn on/off. I think there is something fundamental I’m missing about triggering Zwave events based on state change.

First, please always properly format YAML code by using the instructions at the top of the page. Thx!

Generally you shouldn’t use zwave entities in your automations, you should use the corresponding switch, light, etc. entities instead. (I say “generally”, because there are times when you might need to use the zwave entities, but for most typical things you don’t.) So, basically, in your triggers, use light.basement_light instead of zwave.basement_light (or whatever the entity_id is for the light that corresponds to zwave.basement_light.)

That did it. Thank you very much!

Now I just need to figure out how to make my scene controller work.