mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 03:21:47 +00:00
80 lines
1.9 KiB
YAML
Executable File
80 lines
1.9 KiB
YAML
Executable File
# https://www.vcloudinfo.com/click-here
|
|
# Garage lighting automations below are associated with door sensors and lights in the garage entryway.
|
|
# The garage doors themselves are controlled by Garadget (see packages/garadget.yaml).
|
|
# For related device and hardware info, see README and config/packages/garadget.yaml.
|
|
|
|
|
|
|
|
##############################################################
|
|
- alias: Garage Light Hallway Helper OPEN
|
|
id: 5ea2a2b5-e3de-4acd-823c-dac3eeaa6118
|
|
|
|
trigger:
|
|
# - platform: state
|
|
# entity_id: binary_sensor.kitchen_door
|
|
# to: 'on'
|
|
- platform: state
|
|
entity_id: binary_sensor.mcu1_gpio12
|
|
to: 'on'
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: light.garage_hallway
|
|
state: 'off'
|
|
|
|
action:
|
|
- service: light.turn_on
|
|
entity_id:
|
|
- light.garage_hallway
|
|
|
|
##############################################################
|
|
- alias: Garage Light Hallway Helper Closed
|
|
id: f6060cd7-add7-487f-9b2b-f7849db3b36d
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.mcu1_gpio12
|
|
to: 'off'
|
|
for:
|
|
seconds: 15
|
|
# - platform: state
|
|
# entity_id: binary_sensor.kitchen_door
|
|
# to: 'off'
|
|
# for:
|
|
# seconds: 15
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: binary_sensor.mcu1_gpio12
|
|
state: 'off'
|
|
# - condition: state
|
|
# entity_id: binary_sensor.kitchen_door
|
|
# state: 'off'
|
|
- condition: state
|
|
entity_id: light.garage_hallway
|
|
state: 'on'
|
|
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id: light.garage_hallway
|
|
|
|
##############################################################
|
|
- alias: Shutdown Helper light
|
|
id: 124f95f6-78ca-4c22-9348-1f3a1da2d803
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: light.k4
|
|
to: 'on'
|
|
for: '00:20:00'
|
|
|
|
condition:
|
|
condition: state
|
|
entity_id: light.k1
|
|
state: 'off'
|
|
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id: light.k4
|