Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created December 31, 2021 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesridgway/a8cb01396601ebb7388060270f59d18e to your computer and use it in GitHub Desktop.
Save jamesridgway/a8cb01396601ebb7388060270f59d18e to your computer and use it in GitHub Desktop.
alias: Ensuite Lights Off
description: ""
mode: single
trigger:
- platform: mqtt
topic: "shellies/shellyix3-FE9DE4D4101F/input/0"
condition:
- condition: template
value_template: "{{ trigger.payload == '0' }}"
- condition: device
type: is_on
device_id: ef6cf6ec2c2b11600fb6ff99671434f7
entity_id: light.ensuite_window
domain: light
action:
- service: light.turn_off
target:
entity_id:
- light.ensuite_window
- light.ensuite_shower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment