mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
26 lines
571 B
YAML
26 lines
571 B
YAML
alias: Blue Room Occupied
|
|
id: automation_blue_room_occupied
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.blue_room_occupied
|
|
to: 'on'
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.blue_room_occupied
|
|
state: 'off'
|
|
|
|
action:
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.blue_room_occupied
|
|
|
|
- service: logbook.log
|
|
data_template:
|
|
name: Blue Room Occupied
|
|
entity_id: automation.blue_room_occupied
|
|
message: >
|
|
{{ states("sensor.date_time_iso") }} Blue Room Occupied ran
|