mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -8,7 +8,7 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
to: 'off'
|
||||
to: "off"
|
||||
|
||||
#- platform: time_pattern
|
||||
# minutes: "/5"
|
||||
@@ -16,44 +16,44 @@ trigger:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: light.utility_room_hue
|
||||
state: 'on'
|
||||
state: "on"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.lights_off_manually
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: 'Off'
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: 'on'
|
||||
- condition: or
|
||||
conditions:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: 'Off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
state: 'off'
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: 'Manual'
|
||||
sequence:
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.utility_room_vanity
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.laundry
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: light.turn_off
|
||||
data:
|
||||
entity_id:
|
||||
- light.utility_room_vanity
|
||||
- action: light.turn_off
|
||||
target:
|
||||
entity_id: light.laundry
|
||||
|
||||
@@ -35,22 +35,22 @@ condition:
|
||||
|
||||
action:
|
||||
- alias: "Make sure Z-Wave switch is turned on"
|
||||
service: homeassistant.turn_on
|
||||
action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: switch.utility_room_motion_switch
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: Auto
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.utility_room_hue_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.utility_room_mode
|
||||
state: Auto
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.utility_room_hue_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
|
||||
default:
|
||||
- service: scene.turn_on
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.utility_room_hue_{{states('input_select.utility_room_mode').lower().replace(' ','_')}}"
|
||||
|
||||
- delay: 1
|
||||
- delay: 1
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
alias: 'Utility Room Not Occupied'
|
||||
alias: "Utility Room Not Occupied"
|
||||
id: automation_utility_room_not_occupied
|
||||
mode: restart
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.utility_room_occupied
|
||||
to: 'off'
|
||||
for: '00:10:00'
|
||||
to: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
# - platform: time_pattern
|
||||
# minutes: "/5"
|
||||
@@ -22,38 +22,38 @@ condition:
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
state: 'on'
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.utility_room_occupied
|
||||
state: 'off'
|
||||
for: '00:10:00'
|
||||
state: "off"
|
||||
for: "00:10:00"
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Auto'
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Dad'
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: 'Bachelor'
|
||||
sequence:
|
||||
- service: homeassistant.turn_off
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
- conditions:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: "Auto"
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: "Dad"
|
||||
- condition: state
|
||||
entity_id: input_select.house
|
||||
state: "Bachelor"
|
||||
sequence:
|
||||
- action: homeassistant.turn_off
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
|
||||
@@ -6,18 +6,18 @@ trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- binary_sensor.utility_room_occupied
|
||||
to: 'on'
|
||||
to: "on"
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.utility_room_occupied
|
||||
|
||||
- service: logbook.log
|
||||
- action: logbook.log
|
||||
data_template:
|
||||
name: Utility Room Occupied
|
||||
entity_id: automation.utility_room_occupied
|
||||
|
||||
Reference in New Issue
Block a user