Turn on wife's desk lights if computer is turned on
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user