Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Test Automation 6
- trigger:
- platform: state
- entity_id: sensor.octopus_energy
- action:
- service: "switch.turn_{{'on' if states('sensor.octopus_energy')|int(0)<200 else 'off'}}"
- entity_id: switch.kitchen_lamps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement