Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created December 31, 2021 11:53
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/9e0d87abb8c687d589b24c299add75c1 to your computer and use it in GitHub Desktop.
Save jamesridgway/9e0d87abb8c687d589b24c299add75c1 to your computer and use it in GitHub Desktop.
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