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:
@@ -1,4 +1,4 @@
|
||||
alias: 'Ebin Away'
|
||||
alias: "Ebin Away"
|
||||
id: automation_ebin_away
|
||||
mode: restart
|
||||
|
||||
@@ -12,7 +12,7 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.ebin_home
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.ebin_home
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
alias: 'Ebin Home'
|
||||
alias: "Ebin Home"
|
||||
id: automation_ebin_home
|
||||
mode: restart
|
||||
|
||||
@@ -12,14 +12,14 @@ trigger:
|
||||
condition:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.have_custody
|
||||
state: 'off'
|
||||
- condition: state
|
||||
entity_id: person.kristy
|
||||
state: 'home'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.have_custody
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: person.kristy
|
||||
state: "home"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.ebin_travelling
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.ebin_home
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.ebin_home
|
||||
|
||||
@@ -37,5 +37,5 @@ condition:
|
||||
minutes: 5
|
||||
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
- action: homeassistant.turn_on
|
||||
entity_id: input_boolean.ebin_in_bed
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
alias: 'Ebin Location Update'
|
||||
alias: "Ebin Location Update"
|
||||
id: automation_ebin_location_update
|
||||
mode: restart
|
||||
|
||||
@@ -10,8 +10,8 @@ trigger:
|
||||
- input_boolean.ebin_home
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
|
||||
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
|
||||
|
||||
action:
|
||||
- service: script.turn_on
|
||||
- action: script.turn_on
|
||||
entity_id: script.ebin_travel_sensor
|
||||
|
||||
@@ -8,39 +8,39 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.ebin_home
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '21:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_in_bed
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "20:00:00"
|
||||
before: "21:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '21:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_in_bed
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_is_awake
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: "21:00:00"
|
||||
before: "06:00:00"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_in_bed
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.ebin_is_awake
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.ebin_is_awake
|
||||
default:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id:
|
||||
- input_boolean.ebin_in_bed
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.ebin_is_awake
|
||||
- input_boolean.ebin_is_awake
|
||||
|
||||
Reference in New Issue
Block a user