Fix pc entity id change
This commit is contained in:
parent
eddbc3ed1d
commit
4a4af5fe93
@ -15,7 +15,7 @@
|
|||||||
- thu
|
- thu
|
||||||
- sun
|
- sun
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
@ -31,7 +31,7 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -41,7 +41,7 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -70,7 +70,7 @@
|
|||||||
- thu
|
- thu
|
||||||
- fri
|
- fri
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
@ -86,7 +86,7 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -96,7 +96,7 @@
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -125,7 +125,7 @@
|
|||||||
- thu
|
- thu
|
||||||
- fri
|
- fri
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 5
|
minutes: 5
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
to: 'on'
|
to: 'on'
|
||||||
from: 'off'
|
from: 'off'
|
||||||
action:
|
action:
|
||||||
|
@ -4,7 +4,7 @@ pc_sleep:
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.pc_caffeine
|
entity_id: input_boolean.pc_caffeine
|
||||||
@ -16,7 +16,7 @@ pc_sleep:
|
|||||||
entity_id: input_boolean.pc_sleeping
|
entity_id: input_boolean.pc_sleeping
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'off'
|
state: 'off'
|
||||||
sequence: [ ]
|
sequence: [ ]
|
||||||
default:
|
default:
|
||||||
@ -28,13 +28,13 @@ pc_safe_off:
|
|||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
state: 'on'
|
state: 'on'
|
||||||
sequence:
|
sequence:
|
||||||
- service: shell_command.pc_poweroff
|
- service: shell_command.pc_poweroff
|
||||||
- wait_for_trigger:
|
- wait_for_trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.desktop
|
entity_id: binary_sensor.hulk_ping
|
||||||
to: 'off'
|
to: 'off'
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
|
Loading…
Reference in New Issue
Block a user