1
0

Fix pc entity id change

This commit is contained in:
Przemek Grondek 2022-05-06 00:50:00 +02:00
parent eddbc3ed1d
commit 4a4af5fe93
4 changed files with 13 additions and 13 deletions

View File

@ -15,7 +15,7 @@
- thu
- sun
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
action:
- service: light.turn_on
@ -31,7 +31,7 @@
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
@ -41,7 +41,7 @@
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
@ -70,7 +70,7 @@
- thu
- fri
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
action:
- service: light.turn_on
@ -86,7 +86,7 @@
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
@ -96,7 +96,7 @@
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
@ -125,7 +125,7 @@
- thu
- fri
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
action:
- service: light.turn_on

View File

@ -3,7 +3,7 @@
description: ''
trigger:
- platform: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
to: 'off'
for:
minutes: 5

View File

@ -3,7 +3,7 @@
mode: single
trigger:
- platform: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
to: 'on'
from: 'off'
action:

View File

@ -4,7 +4,7 @@ pc_sleep:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
- condition: state
entity_id: input_boolean.pc_caffeine
@ -16,7 +16,7 @@ pc_sleep:
entity_id: input_boolean.pc_sleeping
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'off'
sequence: [ ]
default:
@ -28,13 +28,13 @@ pc_safe_off:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
state: 'on'
sequence:
- service: shell_command.pc_poweroff
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.desktop
entity_id: binary_sensor.hulk_ping
to: 'off'
- service: switch.turn_off
target: