Created
July 30, 2021 16:06
-
-
Save beauwest/4cd028a5221af5ffae4e9b8895498a9c to your computer and use it in GitHub Desktop.
Home Assistant: Always On Switch
This file contains hidden or 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
blueprint: | |
name: Always On Switch | |
description: Keep the selected switch on, even when it is turned off. This should be used for switches you never want to be turned off. | |
domain: automation | |
input: | |
target_switch: | |
name: Target Switch | |
description: The switch that will always be kept on. | |
selector: | |
entity: | |
domain: switch | |
mode: single | |
max_exceeded: silent | |
trigger: | |
- platform: homeassistant | |
event: start | |
- platform: state | |
entity_id: !input target_switch | |
to: "off" | |
action: | |
- service: switch.turn_on | |
entity_id: !input target_switch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment