Created
December 31, 2021 11:53
-
-
Save jamesridgway/db7293b00be22e71e120ce845e1f094a to your computer and use it in GitHub Desktop.
Updated version of https://gist.github.com/jamesridgway/a8cb01396601ebb7388060270f59d18e which switches fan off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- service: switch.turn_off | |
target: | |
entity_id: switch.ensuite_bathroom_fan_switch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment