mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Rework: Dockerize. Upgrade to 107. Remove automation ids
This commit is contained in:
+69
-6
@@ -20,6 +20,52 @@ http:
|
|||||||
|
|
||||||
lovelace:
|
lovelace:
|
||||||
mode: yaml
|
mode: yaml
|
||||||
|
resources:
|
||||||
|
- type: js
|
||||||
|
url: /hacsfiles/travel-time-card/travel-time-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-gui-sandbox/gui-sandbox.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-card-mod/card-mod.js
|
||||||
|
- type: js
|
||||||
|
url: /hacsfiles/light-entity-card/light-entity-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/weather-card/weather-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/custom-header/custom-header.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/mini-media-player/mini-media-player-bundle.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/aftership-card/aftership-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/config-template-card/config-template-card.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-fold-entity-row/fold-entity-row.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-dummy-entity-row/dummy-entity-row.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-text-input-row/lovelace-text-input-row.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/text-element/text-element.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-battery-entity/battery-entity.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
|
||||||
|
- type: module
|
||||||
|
url: /hacsfiles/decluttering-card/decluttering-card.js
|
||||||
|
dashboards:
|
||||||
|
lovelace-yaml:
|
||||||
|
mode: yaml
|
||||||
|
title: YAML
|
||||||
|
icon: mdi:script
|
||||||
|
show_in_sidebar: true
|
||||||
|
filename: ui-lovelace.yaml
|
||||||
|
|
||||||
# https://www.home-assistant.io/components/logbook
|
# https://www.home-assistant.io/components/logbook
|
||||||
logbook:
|
logbook:
|
||||||
@@ -105,6 +151,11 @@ plex:
|
|||||||
use_episode_art: true
|
use_episode_art: true
|
||||||
ignore_new_shared_users: false
|
ignore_new_shared_users: false
|
||||||
|
|
||||||
|
# https://www.home-assistant.io/integrations/sonos
|
||||||
|
sonos:
|
||||||
|
media_player:
|
||||||
|
hosts: !secret sonos_hosts
|
||||||
|
|
||||||
# https://www.home-assistant.io/integrations/spotify
|
# https://www.home-assistant.io/integrations/spotify
|
||||||
spotify:
|
spotify:
|
||||||
client_id: !secret spotify_client_id
|
client_id: !secret spotify_client_id
|
||||||
@@ -127,12 +178,6 @@ tts:
|
|||||||
voice: Amy
|
voice: Amy
|
||||||
engine: neural
|
engine: neural
|
||||||
|
|
||||||
# https://www.home-assistant.io/integrations/tuya
|
|
||||||
tuya:
|
|
||||||
username: !secret tuya_username
|
|
||||||
password: !secret tuya_password
|
|
||||||
country_code: bg
|
|
||||||
|
|
||||||
# https://www.home-assistant.io/integrations/wake_on_lan
|
# https://www.home-assistant.io/integrations/wake_on_lan
|
||||||
wake_on_lan:
|
wake_on_lan:
|
||||||
|
|
||||||
@@ -159,6 +204,24 @@ yeelight:
|
|||||||
# https://www.home-assistant.io/integrations/zeroconf
|
# https://www.home-assistant.io/integrations/zeroconf
|
||||||
zeroconf:
|
zeroconf:
|
||||||
|
|
||||||
|
# https://www.home-assistant.io/components/zone
|
||||||
|
zone:
|
||||||
|
- name: Home
|
||||||
|
latitude: !secret home_latitude
|
||||||
|
longitude: !secret home_longitude
|
||||||
|
radius: 20
|
||||||
|
icon: mdi:home
|
||||||
|
- name: Work
|
||||||
|
latitude: !secret work_latitude
|
||||||
|
longitude: !secret work_longitude
|
||||||
|
radius: 60
|
||||||
|
icon: mdi:worker
|
||||||
|
|
||||||
|
# https://www.home-assistant.io/integrations/zha
|
||||||
|
zha:
|
||||||
|
usb_path: /dev/ttyUSB0
|
||||||
|
database_path: /config/zigbee.db
|
||||||
|
|
||||||
#
|
#
|
||||||
# ─── PLUGINS ────────────────────────────────────────────────────────────────────
|
# ─── PLUGINS ────────────────────────────────────────────────────────────────────
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ youtube_url = sys.argv[1]
|
|||||||
out_name = sys.argv[2] if len(sys.argv) > 2 else 'temp'
|
out_name = sys.argv[2] if len(sys.argv) > 2 else 'temp'
|
||||||
out_folder = sys.argv[3] if len(sys.argv) > 3 else ''
|
out_folder = sys.argv[3] if len(sys.argv) > 3 else ''
|
||||||
|
|
||||||
full_file_path = f"""~/.homeassistant/www/audio/youtube/{out_folder}{out_name}"""
|
full_file_path = f"""/config/www/audio/youtube/{out_folder}{out_name}"""
|
||||||
|
|
||||||
ydl = youtube_dl.YoutubeDL({'format': 'bestaudio', 'outtmpl': full_file_path})
|
ydl = youtube_dl.YoutubeDL({'format': 'bestaudio', 'outtmpl': full_file_path})
|
||||||
|
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ cards:
|
|||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sun.sun
|
- sun.sun
|
||||||
- sensor.carbon_battery_level_2
|
- sensor.carbon_battery_level
|
||||||
- sensor.carbon_steps_2
|
- sensor.carbon_steps
|
||||||
- binary_sensor.updater
|
- binary_sensor.updater
|
||||||
|
|
||||||
# Column 3: Misc
|
# Column 3: Misc
|
||||||
|
|||||||
+23
-22
@@ -18,9 +18,10 @@ cards:
|
|||||||
entities:
|
entities:
|
||||||
- input_boolean.routine_welcome_home
|
- input_boolean.routine_welcome_home
|
||||||
- automation.presence_arrival_detection
|
- automation.presence_arrival_detection
|
||||||
- automation.coming_home
|
- automation.presence_coming_home
|
||||||
- automation.leaving_work_to_home
|
- automation.presence_leaving_home
|
||||||
- automation.leaving_home
|
- automation.routine_coming_home_left_work
|
||||||
|
- automation.presence_leaving_work
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -30,12 +31,12 @@ cards:
|
|||||||
icon: mdi:lightbulb
|
icon: mdi:lightbulb
|
||||||
open: true
|
open: true
|
||||||
entities:
|
entities:
|
||||||
- automation.lighting_turn_on_after_sunset
|
- automation.lighting_turn_on_all_lights_after_sunset
|
||||||
- automation.lighting_turn_off_after_sunrise
|
- automation.lighting_turn_off_all_lights_after_sunrise
|
||||||
- automation.lighting_master_bedroom_bedside_light_on_bedside_switch_single_click
|
- automation.lighting_master_bedroom_toggle_bedside_light_on_bedisde_switch_single_click
|
||||||
- automation.lighting_living_room_turn_on_cube_flip_90
|
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
|
||||||
- automation.lighting_living_room_turn_off_cube_flip_180
|
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
|
||||||
- automation.lighting_sync_tasmota_state_on_startup
|
- automation.lighting_sync_tasmota_states_on_start_up
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -45,9 +46,9 @@ cards:
|
|||||||
icon: mdi:music-note
|
icon: mdi:music-note
|
||||||
open: true
|
open: true
|
||||||
entities:
|
entities:
|
||||||
- automation.music_pause_on_cube_knock
|
- automation.music_play_pause_on_magic_cube_knock
|
||||||
- automation.music_volume_down_on_cube_rotate_left
|
- automation.music_volume_down_on_magic_cube_rotate_left
|
||||||
- automation.music_volume_up_on_cube_rotate_right
|
- automation.music_volume_up_on_magic_cube_rotate_right
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -55,10 +56,10 @@ cards:
|
|||||||
entity: input_boolean.sleep_mode
|
entity: input_boolean.sleep_mode
|
||||||
open: true
|
open: true
|
||||||
entities:
|
entities:
|
||||||
- automation.bedtime_toggle_on_master_bedroom_bedside_switch_hold
|
- automation.routine_bedtime_toggle_on_bedside_switch_hold
|
||||||
- automation.enable_sleep_mode
|
- automation.sleep_mode_enable
|
||||||
- automation.disable_sleep_mode
|
- automation.sleep_mode_disable
|
||||||
- automation.sleep_toggle_on_switch_tap
|
- automation.sleep_mode_toggle_on_bedside_switch_double_click
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -66,10 +67,10 @@ cards:
|
|||||||
entity: input_boolean.guest_mode
|
entity: input_boolean.guest_mode
|
||||||
open: true
|
open: true
|
||||||
entities:
|
entities:
|
||||||
- automation.enable_guest_mode
|
- automation.guest_mode_enable
|
||||||
- automation.disable_guest_mode
|
- automation.guest_mode_disable
|
||||||
- automation.telegram_enable_guest_mode
|
- automation.guest_mode_enable_from_telegram
|
||||||
- automation.telegram_disable_guest_mode
|
- automation.guest_mode_disable_from_telegram
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
@@ -102,8 +103,8 @@ cards:
|
|||||||
open: true
|
open: true
|
||||||
entities:
|
entities:
|
||||||
- automation.system_announce_start
|
- automation.system_announce_start
|
||||||
- automation.system_telegram_status
|
- automation.system_telegram_announce_status
|
||||||
- automation.speech_telegram_do_nothing
|
- automation.speech_telegram_action_do_nothing
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Batteries
|
title: Batteries
|
||||||
|
|||||||
@@ -6,24 +6,23 @@ input_boolean:
|
|||||||
group:
|
group:
|
||||||
domestina_disabled_automations:
|
domestina_disabled_automations:
|
||||||
- automation.presence_arrival_detection
|
- automation.presence_arrival_detection
|
||||||
- automation.coming_home
|
- automation.presence_coming_home
|
||||||
- automation.leaving_work_to_home
|
- automation.routine_coming_home_left_work
|
||||||
- automation.leaving_home
|
- automation.presence_leaving_home
|
||||||
- automation.enable_sleep_mode
|
- automation.sleep_mode_enable
|
||||||
- automation.disable_sleep_mode
|
- automation.sleep_mode_disable
|
||||||
- automation.sleep_toggle_on_switch_tap
|
- automation.sleep_mode_toggle_on_bedside_switch_double_click
|
||||||
- automation.music_pause_on_cube_knock
|
- automation.music_play_pause_on_magic_cube_knock
|
||||||
- automation.music_volume_down_on_cube_rotate_left
|
- automation.music_volume_down_on_magic_cube_rotate_left
|
||||||
- automation.music_volume_up_on_cube_rotate_right
|
- automation.music_volume_up_on_magic_cube_rotate_right
|
||||||
- automation.lighting_turn_on_after_sunset
|
- automation.lighting_turn_on_all_lights_after_sunset
|
||||||
- automation.lighting_turn_off_after_sunrise
|
- automation.lighting_turn_off_all_lights_after_sunrise
|
||||||
- automation.lighting_living_room_turn_on_cube_flip_90
|
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
|
||||||
- automation.lighting_living_room_turn_off_cube_flip_180
|
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
|
||||||
- automation.bedtime_toggle_on_master_bedroom_bedside_switch_hold
|
- automation.routine_bedtime_toggle_on_bedside_switch_hold
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: domestina_automate_start
|
- alias: Domestina · Automate start
|
||||||
alias: Domestina · Automate start
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: "08:30:00"
|
at: "08:30:00"
|
||||||
@@ -34,8 +33,7 @@ automation:
|
|||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.domestina
|
entity_id: input_boolean.domestina
|
||||||
|
|
||||||
- id: domestina_start
|
- alias: Domestina · Start
|
||||||
alias: Domestina · Start
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.domestina
|
entity_id: input_boolean.domestina
|
||||||
@@ -47,8 +45,7 @@ automation:
|
|||||||
- service: automation.turn_off
|
- service: automation.turn_off
|
||||||
entity_id: group.domestina_disabled_automations
|
entity_id: group.domestina_disabled_automations
|
||||||
|
|
||||||
- id: domestina_automate_end
|
- alias: Domestina · Automate end
|
||||||
alias: Domestina · Automate end
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: "13:00:00"
|
at: "13:00:00"
|
||||||
@@ -59,8 +56,7 @@ automation:
|
|||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.domestina
|
entity_id: input_boolean.domestina
|
||||||
|
|
||||||
- id: domestina_end
|
- alias: Domestina · End
|
||||||
alias: Domestina · End
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.domestina
|
entity_id: input_boolean.domestina
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ input_boolean:
|
|||||||
icon: mdi:human-greeting
|
icon: mdi:human-greeting
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: enable_guest_mode
|
- alias: Guest mode · Enable
|
||||||
alias: Guest mode · Enable
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
@@ -15,13 +14,12 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: automation.turn_off
|
- service: automation.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- automation.leaving_home
|
- automation.presence_leaving_home
|
||||||
- automation.coming_home
|
- automation.presence_coming_home
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.speech_notifications
|
entity_id: input_boolean.speech_notifications
|
||||||
|
|
||||||
- id: disable_guest_mode
|
- alias: Guest mode · Disable
|
||||||
alias: Guest mode · Disable
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
@@ -30,13 +28,12 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: automation.turn_on
|
- service: automation.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- automation.leaving_home
|
- automation.presence_leaving_home
|
||||||
- automation.coming_home
|
- automation.presence_coming_home
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.speech_notifications
|
entity_id: input_boolean.speech_notifications
|
||||||
|
|
||||||
- id: telegram_enable_guest_mode
|
- alias: Guest mode · Enable · From Telegram
|
||||||
alias: Guest mode · Enable · From Telegram
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram_command
|
event_type: telegram_command
|
||||||
@@ -50,8 +47,7 @@ automation:
|
|||||||
title: "⚙️ *System Module*"
|
title: "⚙️ *System Module*"
|
||||||
message: "Okay, turning Guest mode on!"
|
message: "Okay, turning Guest mode on!"
|
||||||
|
|
||||||
- id: telegram_disable_guest_mode
|
- alias: Guest mode · Disable · From Telegram
|
||||||
alias: Guest mode · Disable · From Telegram
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram_command
|
event_type: telegram_command
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ input_boolean:
|
|||||||
icon: mdi:sleep
|
icon: mdi:sleep
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: enable_sleep_mode
|
- alias: Sleep mode · Enable
|
||||||
alias: Sleep mode · Enable
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.sleep_mode
|
entity_id: input_boolean.sleep_mode
|
||||||
@@ -15,8 +14,7 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: script.routine_good_night
|
- service: script.routine_good_night
|
||||||
|
|
||||||
- id: disable_sleep_mode
|
- alias: Sleep mode · Disable
|
||||||
alias: Sleep mode · Disable
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: input_boolean.sleep_mode
|
entity_id: input_boolean.sleep_mode
|
||||||
@@ -25,8 +23,7 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: script.routine_waking_up
|
- service: script.routine_waking_up
|
||||||
|
|
||||||
- id: sleep_toggle_on_switch_tap
|
- alias: Sleep mode · Toggle on bedside switch double click
|
||||||
alias: Sleep mode · Toggle on bedside switch double click
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
|
|||||||
@@ -241,8 +241,7 @@ switch:
|
|||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: lighting_turn_on_after_sunset
|
- alias: Lighting · Turn on all lights after sunset
|
||||||
alias: Lighting · Turn on all lights after sunset
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: sun
|
platform: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
@@ -255,8 +254,7 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.all_lights
|
entity_id: light.all_lights
|
||||||
|
|
||||||
- id: lighting_turn_off_after_sunrise
|
- alias: Lighting · Turn off all lights after sunrise
|
||||||
alias: Lighting · Turn off all lights after sunrise
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: sun
|
platform: sun
|
||||||
event: sunrise
|
event: sunrise
|
||||||
@@ -265,8 +263,7 @@ automation:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.all_lights
|
entity_id: light.all_lights
|
||||||
|
|
||||||
- id: lighting_master_bedroom_bedside_light_on_bedside_switch_single_click
|
- alias: Lighting · Master bedroom · Toggle bedside light on bedisde switch single click"
|
||||||
alias: Lighting · Master bedroom · Toggle bedside light on bedisde switch single click"
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@@ -277,8 +274,7 @@ automation:
|
|||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside_light
|
||||||
|
|
||||||
- id: lighting_living_room_turn_on_cube_flip_90
|
- alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90
|
||||||
alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@@ -291,8 +287,7 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room_all_lights
|
||||||
|
|
||||||
- id: lighting_living_room_turn_off_cube_flip_180
|
- alias: Lighting · Living room · Turn all lights off on Magic Cube flip 180
|
||||||
alias: Lighting · Living room · Turn all lights off on Magic Cube flip 180
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@@ -305,8 +300,7 @@ automation:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room_all_lights
|
||||||
|
|
||||||
- id: lighting_sync_tasmota_state_on_startup
|
- alias: Lighting · Sync Tasmota states on start-up
|
||||||
alias: Lighting · Sync Tasmota states on start-up
|
|
||||||
initial_state: true
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
platform: homeassistant
|
platform: homeassistant
|
||||||
|
|||||||
@@ -55,8 +55,7 @@ script:
|
|||||||
master: "{{ states('input_select.sonos_leader') }}"
|
master: "{{ states('input_select.sonos_leader') }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: music_pause_on_cube_knock
|
- alias: Music · Play/Pause on Magic Cube Knock
|
||||||
alias: Music · Play/Pause on Magic Cube Knock
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@@ -68,8 +67,7 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: "{{ states('input_select.sonos_leader') }}"
|
entity_id: "{{ states('input_select.sonos_leader') }}"
|
||||||
|
|
||||||
- id: music_volume_down_on_cube_rotate_left
|
- alias: Music · Volume down on Magic Cube rotate left
|
||||||
alias: Music · Volume down on Magic Cube rotate left
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
@@ -81,8 +79,7 @@ automation:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: "{{ states('input_select.sonos_leader') }}"
|
entity_id: "{{ states('input_select.sonos_leader') }}"
|
||||||
|
|
||||||
- id: music_volume_up_on_cube_rotate_right
|
- alias: Music · Volume up on Magic Cube rotate right
|
||||||
alias: Music · Volume up on Magic Cube rotate right
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
|
|||||||
@@ -16,20 +16,6 @@ device_tracker:
|
|||||||
username: !secret tile_username
|
username: !secret tile_username
|
||||||
password: !secret tile_password
|
password: !secret tile_password
|
||||||
|
|
||||||
# https://www.home-assistant.io/components/zone
|
|
||||||
zone:
|
|
||||||
- name: Home
|
|
||||||
latitude: !secret home_latitude
|
|
||||||
longitude: !secret home_longitude
|
|
||||||
radius: 20
|
|
||||||
icon: mdi:home
|
|
||||||
|
|
||||||
- name: Work
|
|
||||||
latitude: !secret work_latitude
|
|
||||||
longitude: !secret work_longitude
|
|
||||||
radius: 60
|
|
||||||
icon: mdi:worker
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# ─── ENTITIES ───────────────────────────────────────────────────────────────────
|
# ─── ENTITIES ───────────────────────────────────────────────────────────────────
|
||||||
#
|
#
|
||||||
@@ -54,8 +40,7 @@ binary_sensor:
|
|||||||
|
|
||||||
automation:
|
automation:
|
||||||
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
||||||
- id: presence_arrival_detecion
|
- alias: Presence · Arrival detection
|
||||||
alias: Presence · Arrival detection
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: person.georgi
|
entity_id: person.georgi
|
||||||
@@ -79,8 +64,7 @@ automation:
|
|||||||
title: "🏠 *Presence Module · Arrival detection*"
|
title: "🏠 *Presence Module · Arrival detection*"
|
||||||
message: "✅ Hey, I've marked you as home now!"
|
message: "✅ Hey, I've marked you as home now!"
|
||||||
|
|
||||||
- id: leaving_home
|
- alias: Presence · Leaving home
|
||||||
alias: Presence · Leaving home
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: person.georgi
|
entity_id: person.georgi
|
||||||
@@ -93,8 +77,7 @@ automation:
|
|||||||
title: "🏠 *Presence Module · Leaving Home*"
|
title: "🏠 *Presence Module · Leaving Home*"
|
||||||
message: "I see you're leaving. Goodbye!"
|
message: "I see you're leaving. Goodbye!"
|
||||||
|
|
||||||
- id: coming_home
|
- alias: Presence · Coming home
|
||||||
alias: Presence · Coming home
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.georgi_home
|
entity_id: binary_sensor.georgi_home
|
||||||
@@ -106,8 +89,7 @@ automation:
|
|||||||
title: "🏠 *Presence Module · Coming Home*"
|
title: "🏠 *Presence Module · Coming Home*"
|
||||||
message: "Welcome home!"
|
message: "Welcome home!"
|
||||||
|
|
||||||
- id: leaving_work
|
- alias: Presence · Leaving work
|
||||||
alias: Presence · Leaving work
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: person.georgi
|
entity_id: person.georgi
|
||||||
@@ -139,10 +121,10 @@ homeassistant:
|
|||||||
friendly_name: Keys Tile
|
friendly_name: Keys Tile
|
||||||
icon: mdi:key-variant
|
icon: mdi:key-variant
|
||||||
|
|
||||||
automation.coming_home:
|
automation.presence_coming_home:
|
||||||
icon: mdi:home-account
|
icon: mdi:home-account
|
||||||
|
|
||||||
automation.leaving_home:
|
automation.presence_leaving_home:
|
||||||
icon: mdi:home
|
icon: mdi:home
|
||||||
|
|
||||||
automation.presence_arrival_detecion:
|
automation.presence_arrival_detecion:
|
||||||
|
|||||||
@@ -90,8 +90,7 @@ script:
|
|||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: speech_telegram_do_nothing
|
- alias: Speech · Telegram · Action · Do nothing
|
||||||
alias: Speech · Telegram · Action · Do nothing
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram_callback
|
event_type: telegram_callback
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ script:
|
|||||||
service: homeassistant.restart
|
service: homeassistant.restart
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: system_announce_start
|
- alias: System · Announce start
|
||||||
alias: System · Announce start
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: homeassistant
|
platform: homeassistant
|
||||||
event: start
|
event: start
|
||||||
@@ -31,8 +30,7 @@ automation:
|
|||||||
- "/guest_mode_on, /guest_mode_off"
|
- "/guest_mode_on, /guest_mode_off"
|
||||||
- "/status"
|
- "/status"
|
||||||
|
|
||||||
- id: system_telegram_status
|
- alias: System · Telegram · Announce status
|
||||||
alias: System · Telegram · Announce status
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram_command
|
event_type: telegram_command
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ sensor:
|
|||||||
channel_id: UClFSU9_bUb4Rc6OYfTt5SPw
|
channel_id: UClFSU9_bUb4Rc6OYfTt5SPw
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: Available PDS
|
name: Available PDS
|
||||||
command: !secret youtube_pds_list_command
|
command: ls -1 /config/www/audio/youtube/pds | grep mp3 | paste -sd "," -
|
||||||
scan_interval: 30
|
scan_interval: 30
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: Available Youtube clips
|
name: Available Youtube clips
|
||||||
command: !secret youtube_list_command
|
command: ls -1 /config/www/audio/youtube | grep mp3 | paste -sd "," -
|
||||||
scan_interval: 30
|
scan_interval: 30
|
||||||
|
|
||||||
input_text:
|
input_text:
|
||||||
@@ -21,7 +21,7 @@ input_text:
|
|||||||
initial: ""
|
initial: ""
|
||||||
|
|
||||||
shell_command:
|
shell_command:
|
||||||
youtube_download: !secret youtube_download_command
|
youtube_download: python3.7 /config/custom_scripts/youtube_download.py {{ url }} {{ name }} {{ folder }}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
youtube_play_latest_pds:
|
youtube_play_latest_pds:
|
||||||
@@ -71,8 +71,7 @@ script:
|
|||||||
value: ""
|
value: ""
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: youtube_download_latest_pds
|
- alias: Youtube · Download latest PDS
|
||||||
alias: Youtube · Download latest PDS
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: sensor.philip_defranco
|
entity_id: sensor.philip_defranco
|
||||||
|
|||||||
@@ -31,8 +31,7 @@ script:
|
|||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room_all_lights
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: bedtime_toggle_on_master_bedroom_bedside_switch_hold
|
- alias: Routine · Bedtime · Toggle on bedside switch hold
|
||||||
alias: Routine · Bedtime · Toggle on bedside switch hold
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: zha_event
|
event_type: zha_event
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ script:
|
|||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: leaving_work_to_home
|
- alias: Routine · Coming home · Left work
|
||||||
alias: Routine · Coming home · Left work
|
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram_callback
|
event_type: telegram_callback
|
||||||
|
|||||||
@@ -4,49 +4,6 @@ custom_header:
|
|||||||
hide_config: true
|
hide_config: true
|
||||||
hide_help: true
|
hide_help: true
|
||||||
hide_unused: true
|
hide_unused: true
|
||||||
resources:
|
|
||||||
- type: js
|
|
||||||
url: /hacsfiles/travel-time-card/travel-time-card.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-gui-sandbox/gui-sandbox.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/spotify-card/spotify-card.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/circle-sensor-card/circle-sensor-card.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-card-mod/card-mod.js
|
|
||||||
- type: js
|
|
||||||
url: /community_plugin/light-entity-card/light-entity-card.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/weather-card/weather-card.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/custom-header/custom-header.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/mini-graph-card/mini-graph-card-bundle.js
|
|
||||||
- type: module
|
|
||||||
url: /community_plugin/mini-media-player/mini-media-player-bundle.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/aftership-card/aftership-card.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/config-template-card/config-template-card.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-fold-entity-row/fold-entity-row.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-dummy-entity-row/dummy-entity-row.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-slider-entity-row/slider-entity-row.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-text-input-row/lovelace-text-input-row.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/text-element/text-element.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-battery-entity/battery-entity.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/lovelace-multiple-entity-row/multiple-entity-row.js
|
|
||||||
- type: module
|
|
||||||
url: /hacsfiles/decluttering-card/decluttering-card.js
|
|
||||||
|
|
||||||
decluttering_templates: !include_dir_merge_named lovelace/templates
|
decluttering_templates: !include_dir_merge_named lovelace/templates
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user