Turn on wife's desk lights if computer is turned on

This commit is contained in:
2023-03-19 15:41:45 -04:00
parent cc59d36401
commit e30c3d38a4

View File

@@ -507,6 +507,11 @@ automation:
from: 'off' from: 'off'
to: 'on' to: 'on'
id: lights-on id: lights-on
- platform: state
entity_id: binary_sensor.tina_desktop_on
from: 'off'
to: 'on'
id: computer-on
action: action:
- if: - if:
- condition: or - condition: or
@@ -515,6 +520,8 @@ automation:
id: toggle-on id: toggle-on
- condition: trigger - condition: trigger
id: reset id: reset
- condition: trigger
id: computer-on
then: then:
- if: - if:
- condition: state - condition: state