Skip to content

Instantly share code, notes, and snippets.

@brentley
Forked from beauwest/always_on_switch.yaml
Last active October 25, 2022 20:46
Show Gist options
  • Save brentley/d5feb5fc393e31cd491dd00442992fd9 to your computer and use it in GitHub Desktop.
Save brentley/d5feb5fc393e31cd491dd00442992fd9 to your computer and use it in GitHub Desktop.
Home Assistant: Always On Light
blueprint:
name: Always On Light
description: Keep the selected light on, even when it is turned off. This should be used for lights you never want to be turned off.
domain: automation
input:
target_light:
name: Target Light
description: The light that will always be kept on.
selector:
entity:
domain: light
mode: single
max_exceeded: silent
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: !input target_light
to: "off"
action:
- service: light.turn_on
entity_id: !input target_light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment