mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -59,26 +59,26 @@ mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: !input home_occupied
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: room_occupied
|
||||
entity_id: !input binary_sensor
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: state
|
||||
id: 'not_occupied'
|
||||
id: "not_occupied"
|
||||
entity_id:
|
||||
- !input home_occupied
|
||||
- !input binary_sensor
|
||||
to: 'off'
|
||||
to: "off"
|
||||
for:
|
||||
seconds: !input delay_seconds
|
||||
|
||||
- platform: time_pattern
|
||||
id: 'time_pattern'
|
||||
id: "time_pattern"
|
||||
minutes: "/5"
|
||||
|
||||
condition:
|
||||
@@ -87,7 +87,7 @@ condition:
|
||||
- alias: "Home not occupied"
|
||||
condition: state
|
||||
entity_id: !input home_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
- alias: "Room just occupied"
|
||||
condition: trigger
|
||||
@@ -98,56 +98,56 @@ condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: !input room_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
- condition: state
|
||||
entity_id: !input binary_sensor
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- alias: "Home not occupied"
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: !input home_occupied
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
|
||||
- alias: "Room not occupied"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: not_occupied
|
||||
- condition: not
|
||||
- alias: "Home not occupied"
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: !input house_mode
|
||||
state: !input manual_option
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
- condition: state
|
||||
entity_id: !input home_occupied
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
|
||||
- alias: "Room occupied"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: room_occupied
|
||||
sequence:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: !input room_occupied
|
||||
- alias: "Room not occupied"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: not_occupied
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: !input house_mode
|
||||
state: !input manual_option
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
|
||||
- alias: "Time pattern"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: time_pattern
|
||||
- condition: state
|
||||
entity_id: !input room_occupied
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: !input binary_sensor
|
||||
state: 'off'
|
||||
for:
|
||||
seconds: !input delay_seconds
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
- alias: "Room occupied"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: room_occupied
|
||||
sequence:
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: !input room_occupied
|
||||
|
||||
- alias: "Time pattern"
|
||||
conditions:
|
||||
- condition: trigger
|
||||
id: time_pattern
|
||||
- condition: state
|
||||
entity_id: !input room_occupied
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: !input binary_sensor
|
||||
state: "off"
|
||||
for:
|
||||
seconds: !input delay_seconds
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: !input room_occupied
|
||||
|
||||
Reference in New Issue
Block a user