mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
stop hating myself
This commit is contained in:
@@ -1,102 +1,102 @@
|
||||
alias: Dishwasher Done
|
||||
id: dishwashwer_done
|
||||
description: "Dishwasher just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.empty_dishwasher
|
||||
from: "off"
|
||||
to: "on"
|
||||
# alias: Dishwasher Done
|
||||
# id: dishwashwer_done
|
||||
# description: "Dishwasher just finished"
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.empty_dishwasher
|
||||
# from: "off"
|
||||
# to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
# condition:
|
||||
# - alias: "The home is occupied"
|
||||
# condition: state
|
||||
# entity_id: input_boolean.home_occupied
|
||||
# state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
# - alias: "Its not bedtime"
|
||||
# condition: state
|
||||
# entity_id: input_boolean.bedtime
|
||||
# state: "off"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.empty_dishwasher','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
# action:
|
||||
# - repeat:
|
||||
# while: "{{ is_state('input_boolean.empty_dishwasher','on') }}"
|
||||
# sequence:
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.allow_announcements
|
||||
# state: "on"
|
||||
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
# - condition: not
|
||||
# conditions:
|
||||
# - condition: state
|
||||
# entity_id: sensor.pixel_7_audio_mode
|
||||
# state: in_communication
|
||||
# - condition: state
|
||||
# entity_id: sensor.pixel_7_audio_mode
|
||||
# state: in_call
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.kids_bedtime
|
||||
# state: "on"
|
||||
# # - condition: state
|
||||
# # entity_id: input_boolean.announcement_pending
|
||||
# # state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
# - input_boolean.announcement_pending
|
||||
# sequence:
|
||||
# - action: input_boolean.turn_off
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
# - action: input_boolean.turn_on
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
# # - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreambox
|
||||
data:
|
||||
message: The dishwasher is done
|
||||
# sequence:
|
||||
# - action: notify.dreambox
|
||||
# data:
|
||||
# message: The dishwasher is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The dishwasher is done
|
||||
# sequence:
|
||||
# - action: notify.dreamsurface
|
||||
# data:
|
||||
# message: The dishwasher is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.clint_home
|
||||
# state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The dishwasher is done
|
||||
data:
|
||||
tag: "dishwasher-complete"
|
||||
notification_icon: mdi:dishwasher-alert
|
||||
channel: Appliance
|
||||
# sequence:
|
||||
# - action: notify.mobile_app_pixel_7
|
||||
# data:
|
||||
# message: The dishwasher is done
|
||||
# data:
|
||||
# tag: "dishwasher-complete"
|
||||
# notification_icon: mdi:dishwasher-alert
|
||||
# channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 30
|
||||
# - delay:
|
||||
# minutes: 30
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dishwasher_done
|
||||
# - action: input_boolean.turn_off
|
||||
# data: {}
|
||||
# target:
|
||||
# entity_id:
|
||||
# - input_boolean.announce_dishwasher_done
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
alias: Tumble Dryer Done
|
||||
id: tumble_dryer_done
|
||||
description: "Dryer just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.fold_clothes
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.fold_clothes','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.utility_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
# - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{ is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreambox
|
||||
data:
|
||||
message: The dryer is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{ is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The dryer is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The dryer is done
|
||||
data:
|
||||
tag: "dryer-complete"
|
||||
notification_icon: mdi:tumble-dryer-alert
|
||||
channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 15
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_dryer_done
|
||||
@@ -1,111 +0,0 @@
|
||||
alias: Washing Machine Done
|
||||
id: washing_machine_done
|
||||
description: "Washing machine just finished"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: input_boolean.swap_laundry
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
|
||||
condition:
|
||||
- alias: "The home is occupied"
|
||||
condition: state
|
||||
entity_id: input_boolean.home_occupied
|
||||
state: "on"
|
||||
|
||||
- alias: "Its not bedtime"
|
||||
condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.allow_announcements
|
||||
state: "on"
|
||||
|
||||
action:
|
||||
- repeat:
|
||||
while: "{{ is_state('input_boolean.swap_laundry','on') }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.utility_room_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_communication
|
||||
- condition: state
|
||||
entity_id: sensor.pixel_7_audio_mode
|
||||
state: in_call
|
||||
- condition: state
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: input_boolean.bedtime
|
||||
state: "on"
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.announcement_pending
|
||||
# state: 'on'
|
||||
|
||||
sequence:
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
# - input_boolean.announcement_pending
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreambox_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreambox
|
||||
data:
|
||||
message: The washing machine is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- "{{is_state('binary_sensor.dreamsurface_recently_active','on') }}"
|
||||
|
||||
sequence:
|
||||
- action: notify.dreamsurface
|
||||
data:
|
||||
message: The washing machine is done
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.clint_home
|
||||
state: "off"
|
||||
|
||||
sequence:
|
||||
- action: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: The washing machine is done
|
||||
data:
|
||||
tag: "washing-machine-complete"
|
||||
notification_icon: mdi:washing-machine-alert
|
||||
channel: Appliance
|
||||
|
||||
- delay:
|
||||
minutes: 15
|
||||
|
||||
- action: input_boolean.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id:
|
||||
- input_boolean.announce_washing_machine_done
|
||||
Reference in New Issue
Block a user