mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
Cleanup fixes and some BS
This commit is contained in:
@@ -1,83 +0,0 @@
|
||||
alias: Respond to Chickadee
|
||||
id: automation_respond_to_chickadee
|
||||
mode: single
|
||||
description: ""
|
||||
trigger:
|
||||
# - platform: state
|
||||
# entity_id: input_boolean.chickadee_is_waiting
|
||||
# from: 'off'
|
||||
# to: 'on'
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.chickadee_unread
|
||||
above: 0
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: group.podeins_at_home
|
||||
state: "off"
|
||||
action:
|
||||
- repeat:
|
||||
while:
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.chickadee_unread
|
||||
above: 0
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.chickadee_is_waiting
|
||||
# state: 'on'
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.kids_at_home
|
||||
state: "off"
|
||||
- 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"
|
||||
|
||||
sequence:
|
||||
- service: script.make_clever_announcement
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/Sounds/tts/respond_to_chickadee.mp3
|
||||
|
||||
- service: notify.mobile_app_pixel_7
|
||||
data:
|
||||
message: >-
|
||||
Chickadee is waiting to hear back on {{states('sensor.chickadee_unread')}} message(s)!
|
||||
title: Tweet tweet
|
||||
|
||||
- service: notify.hass_agent_group
|
||||
data:
|
||||
message: >-
|
||||
Chickadee is waiting to hear back on {{states('sensor.chickadee_unread')}} message(s)!
|
||||
title: Tweet tweet
|
||||
|
||||
- service: persistent_notification.create
|
||||
data:
|
||||
message: >-
|
||||
Chickadee is waiting to hear back on {{states('sensor.chickadee_unread')}} message(s)!
|
||||
title: Tweet Tweet
|
||||
notification_id: 07111985
|
||||
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 2
|
||||
seconds: 0
|
||||
milliseconds: 0
|
||||
|
||||
- service: persistent_notification.dismiss
|
||||
data:
|
||||
notification_id: 07111985
|
||||
@@ -13,7 +13,7 @@ trigger:
|
||||
- input_boolean.home_occupied
|
||||
- binary_sensor.kitchen_occupied
|
||||
to: 'off'
|
||||
for: '00:05:00'
|
||||
for: '00:15:00'
|
||||
|
||||
# - platform: time_pattern
|
||||
# minutes: "/5"
|
||||
|
||||
Reference in New Issue
Block a user