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.