Skip to content

Instantly share code, notes, and snippets.

@StevenDTX
Forked from beauwest/always_on_switch.yaml
Last active January 24, 2023 14:30
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 StevenDTX/939cc83101ecda01cd712798cce07184 to your computer and use it in GitHub Desktop.
Save StevenDTX/939cc83101ecda01cd712798cce07184 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