Skip to content

Instantly share code, notes, and snippets.

@DarkCoder28
Last active February 8, 2024 00:02
Show Gist options
  • Save DarkCoder28/16e12e25f8fe4d62fd9db1c55d7e4359 to your computer and use it in GitHub Desktop.
Save DarkCoder28/16e12e25f8fe4d62fd9db1c55d7e4359 to your computer and use it in GitHub Desktop.
blueprint:
name: Door Sensor
description:
"Turns on the entity specified below when a opening sensor is triggered on.\n\n Blueprint\
\ Version: 3"
domain: automation
input:
sensor:
name: Door Sensor
description: Pick an opening Sensor
selector:
entity:
domain: binary_sensor
light:
name: The light entity to control.
description: The light entity (Can be a light group) to control.
selector:
entity:
domain:
- light
- switch
source_url: https://gist.github.com/DarkCoder28/16e12e25f8fe4d62fd9db1c55d7e4359
mode: single
max_exceeded: silent
trigger:
- platform: state
entity_id: !input sensor
from: "off"
to: "on"
action:
- alias: "Light On"
continue_on_error: true
service: light.turn_on
data: {}
target:
entity_id: !input "light"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment