The below works for me. It didn’t work well until I set the polling mentioned here: Zwave: On vs Off vs Level
-
alias: Hallway Light on
trigger:- platform: state
entity_id: light.kitchen_lights_level
to: ‘on’
action:
service: switch.turn_on
entity_id: switch.hallway_light_switch
- platform: state
-
alias: Hallway Light Off
trigger:- platform: state
entity_id: light.kitchen_lights_level
to: ‘off’
action:
service: switch.turn_off
entity_id: switch.hallway_light_switch
- platform: state