mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
More and more small fixes
This commit is contained in:
@@ -6,8 +6,6 @@ trigger:
|
||||
entity_id: device_tracker.pixel_7
|
||||
to: "WMU"
|
||||
action:
|
||||
- action: automation.turn_on
|
||||
entity_id: automation.clint_home_after_work
|
||||
- action: input_text.set_value
|
||||
data:
|
||||
entity_id: input_text.person_clint
|
||||
|
||||
@@ -1,42 +1,42 @@
|
||||
alias: Set Clint Next Alarm
|
||||
id: automation_set_clint_next_alarm
|
||||
#description:
|
||||
# alias: Set Clint Next Alarm
|
||||
# id: automation_set_clint_next_alarm
|
||||
# #description:
|
||||
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: "off"
|
||||
# trigger:
|
||||
# - platform: state
|
||||
# entity_id: binary_sensor.is_workday
|
||||
# to: "off"
|
||||
|
||||
- platform: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
to: "on"
|
||||
# - platform: state
|
||||
# entity_id: binary_sensor.is_workday
|
||||
# to: "on"
|
||||
|
||||
- platform: time
|
||||
at: "01:00:00"
|
||||
# - platform: time
|
||||
# at: "01:00:00"
|
||||
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
# - platform: homeassistant
|
||||
# event: start
|
||||
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "07:00:00"
|
||||
# action:
|
||||
# - choose:
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.is_workday
|
||||
# state: "off"
|
||||
# sequence:
|
||||
# - action: input_datetime.set_datetime
|
||||
# target:
|
||||
# entity_id: input_datetime.clint_next_alarm
|
||||
# data:
|
||||
# time: "07:00:00"
|
||||
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.is_workday
|
||||
state: "on"
|
||||
sequence:
|
||||
- action: input_datetime.set_datetime
|
||||
target:
|
||||
entity_id: input_datetime.clint_next_alarm
|
||||
data:
|
||||
time: "05:30:00"
|
||||
# - conditions:
|
||||
# - condition: state
|
||||
# entity_id: binary_sensor.is_workday
|
||||
# state: "on"
|
||||
# sequence:
|
||||
# - action: input_datetime.set_datetime
|
||||
# target:
|
||||
# entity_id: input_datetime.clint_next_alarm
|
||||
# data:
|
||||
# time: "05:45:00"
|
||||
|
||||
@@ -21,25 +21,21 @@ action:
|
||||
|
||||
- action: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
volume_level: 0.50
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: "off"
|
||||
sequence:
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Energize
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- action: input_select.select_option
|
||||
data:
|
||||
option: Energize
|
||||
target:
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
|
||||
- action: script.wake_up_the_master_bedroom
|
||||
- action: music_assistant.play_media
|
||||
target:
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
data:
|
||||
media_type: playlist
|
||||
media_id: library://playlist/32
|
||||
enqueue: replace
|
||||
|
||||
- action: script.wake_the_bedroom
|
||||
|
||||
@@ -24,13 +24,12 @@ action:
|
||||
- action: media_player.volume_set
|
||||
data_template:
|
||||
volume_level: 0.30
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
- action: tts.speak
|
||||
target:
|
||||
entity_id: tts.google_translate_en_com
|
||||
data:
|
||||
media_player_entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
media_player_entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
message: >-
|
||||
The following are open:
|
||||
{{ dict((states|selectattr('entity_id', 'in', state_attr('group.my_exterior_windows', 'entity_id') + state_attr('group.my_exterior_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
|
||||
|
||||
|
||||
@@ -153,6 +153,11 @@ action:
|
||||
- choose:
|
||||
- conditions: "{{is_state('input_boolean.bridget_home','on')}}"
|
||||
sequence:
|
||||
- action: input_boolean.turn_on
|
||||
data: {}
|
||||
target:
|
||||
entity_id: input_boolean.girls_room_asleep
|
||||
|
||||
- action: input_button.press
|
||||
data: {}
|
||||
target:
|
||||
|
||||
@@ -3,11 +3,11 @@ id: automation_continue_white_noise
|
||||
initial_state: "on"
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
to: "off"
|
||||
for: "00:00:02"
|
||||
- platform: state
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
to: "idle"
|
||||
for: "00:00:02"
|
||||
condition:
|
||||
|
||||
@@ -10,5 +10,4 @@ action:
|
||||
- action: media_player.turn_off
|
||||
data: {}
|
||||
target:
|
||||
entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
|
||||
entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
|
||||
@@ -32,11 +32,10 @@ action:
|
||||
# data:
|
||||
# shuffle: false
|
||||
# target:
|
||||
# entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
# entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
# - action: media_player.repeat_set
|
||||
# metadata: {}
|
||||
# data:
|
||||
# repeat: "all"
|
||||
# target:
|
||||
# entity_id: media_player.home_assistant_voice_097b44_media_player
|
||||
|
||||
# entity_id: media_player.ma_home_assistant_voice_097b44_media_player
|
||||
|
||||
@@ -47,9 +47,6 @@ action:
|
||||
entity_id: input_boolean.kids_bedtime
|
||||
state: "on"
|
||||
|
||||
- condition: state
|
||||
entity_id: media_player.ytube_music_player
|
||||
state: "playing"
|
||||
sequence:
|
||||
- alias: "Announce that the coffee is ready"
|
||||
action: script.make_clever_announcement
|
||||
|
||||
Reference in New Issue
Block a user