mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Changing all kinds of shit
This commit is contained in:
@@ -21,6 +21,12 @@ trigger:
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
|
||||
- platform: state
|
||||
id: car_home
|
||||
entity_id:
|
||||
- device_tracker.chevrolet_traverse_location
|
||||
to: 'home'
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ condition:
|
||||
entity_id: binary_sensor.morning
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.work_day
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
|
||||
@@ -4,11 +4,11 @@ id: automation_set_clint_next_alarm
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.work_day
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: 'off'
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.work_day
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: 'on'
|
||||
|
||||
- platform: time
|
||||
@@ -21,18 +21,18 @@ action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.work_day
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'off'
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "09:00:00"
|
||||
time: "07:00:00"
|
||||
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.work_day
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: 'on'
|
||||
sequence:
|
||||
- service: input_datetime.set_datetime
|
||||
|
||||
@@ -8,7 +8,7 @@ trigger:
|
||||
at: input_datetime.clint_next_alarm
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.work_day
|
||||
# entity_id: binary_sensor.is_workday
|
||||
# state: 'on'
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
|
||||
Reference in New Issue
Block a user