Created
December 31, 2021 11:53
-
-
Save jamesridgway/9e0d87abb8c687d589b24c299add75c1 to your computer and use it in GitHub Desktop.
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 Fan - On | |
description: "" | |
mode: single | |
trigger: | |
- platform: mqtt | |
topic: "shellies/shellyix3-FE9DE4D4101F/input/0" | |
condition: | |
- condition: time | |
after: "07:00:00" | |
before: "22:15:00" | |
- condition: template | |
value_template: "{{ trigger.payload == '1' }}" | |
- condition: state | |
entity_id: switch.ensuite_bathroom_fan_switch | |
state: "off" | |
action: | |
- service: switch.turn_on | |
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