Rework: Dockerize. Upgrade to 107. Remove automation ids

This commit is contained in:
2020-03-20 00:08:28 +02:00
parent 1b6da83acb
commit 5963d08edd
16 changed files with 148 additions and 171 deletions
+6 -12
View File
@@ -241,8 +241,7 @@ switch:
value_template: "{{ value_json.Fade }}"
automation:
- id: lighting_turn_on_after_sunset
alias: Lighting · Turn on all lights after sunset
- alias: Lighting · Turn on all lights after sunset
trigger:
platform: sun
event: sunset
@@ -255,8 +254,7 @@ automation:
- service: light.turn_on
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:
platform: sun
event: sunrise
@@ -265,8 +263,7 @@ automation:
- service: light.turn_off
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:
platform: event
event_type: zha_event
@@ -277,8 +274,7 @@ automation:
- service: light.toggle
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:
platform: event
event_type: zha_event
@@ -291,8 +287,7 @@ automation:
- service: light.turn_on
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:
platform: event
event_type: zha_event
@@ -305,8 +300,7 @@ automation:
- service: light.turn_off
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
trigger:
platform: homeassistant
+3 -6
View File
@@ -55,8 +55,7 @@ script:
master: "{{ states('input_select.sonos_leader') }}"
automation:
- id: music_pause_on_cube_knock
alias: Music · Play/Pause on Magic Cube Knock
- alias: Music · Play/Pause on Magic Cube Knock
trigger:
platform: event
event_type: zha_event
@@ -68,8 +67,7 @@ automation:
data_template:
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:
platform: event
event_type: zha_event
@@ -81,8 +79,7 @@ automation:
data_template:
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:
platform: event
event_type: zha_event
+6 -24
View File
@@ -16,20 +16,6 @@ device_tracker:
username: !secret tile_username
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 ───────────────────────────────────────────────────────────────────
#
@@ -54,8 +40,7 @@ binary_sensor:
automation:
# 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:
platform: state
entity_id: person.georgi
@@ -79,8 +64,7 @@ automation:
title: "🏠 *Presence Module · Arrival detection*"
message: "✅ Hey, I've marked you as home now!"
- id: leaving_home
alias: Presence · Leaving home
- alias: Presence · Leaving home
trigger:
platform: state
entity_id: person.georgi
@@ -93,8 +77,7 @@ automation:
title: "🏠 *Presence Module · Leaving Home*"
message: "I see you're leaving. Goodbye!"
- id: coming_home
alias: Presence · Coming home
- alias: Presence · Coming home
trigger:
platform: state
entity_id: binary_sensor.georgi_home
@@ -106,8 +89,7 @@ automation:
title: "🏠 *Presence Module · Coming Home*"
message: "Welcome home!"
- id: leaving_work
alias: Presence · Leaving work
- alias: Presence · Leaving work
trigger:
platform: state
entity_id: person.georgi
@@ -139,10 +121,10 @@ homeassistant:
friendly_name: Keys Tile
icon: mdi:key-variant
automation.coming_home:
automation.presence_coming_home:
icon: mdi:home-account
automation.leaving_home:
automation.presence_leaving_home:
icon: mdi:home
automation.presence_arrival_detecion:
+1 -2
View File
@@ -90,8 +90,7 @@ script:
entity_id: media_player.master_bedroom
automation:
- id: speech_telegram_do_nothing
alias: Speech · Telegram · Action · Do nothing
- alias: Speech · Telegram · Action · Do nothing
trigger:
platform: event
event_type: telegram_callback
+2 -4
View File
@@ -12,8 +12,7 @@ script:
service: homeassistant.restart
automation:
- id: system_announce_start
alias: System · Announce start
- alias: System · Announce start
trigger:
platform: homeassistant
event: start
@@ -31,8 +30,7 @@ automation:
- "/guest_mode_on, /guest_mode_off"
- "/status"
- id: system_telegram_status
alias: System · Telegram · Announce status
- alias: System · Telegram · Announce status
trigger:
platform: event
event_type: telegram_command
+4 -5
View File
@@ -3,11 +3,11 @@ sensor:
channel_id: UClFSU9_bUb4Rc6OYfTt5SPw
- platform: command_line
name: Available PDS
command: !secret youtube_pds_list_command
command: ls -1 /config/www/audio/youtube/pds | grep mp3 | paste -sd "," -
scan_interval: 30
- platform: command_line
name: Available Youtube clips
command: !secret youtube_list_command
command: ls -1 /config/www/audio/youtube | grep mp3 | paste -sd "," -
scan_interval: 30
input_text:
@@ -21,7 +21,7 @@ input_text:
initial: ""
shell_command:
youtube_download: !secret youtube_download_command
youtube_download: python3.7 /config/custom_scripts/youtube_download.py {{ url }} {{ name }} {{ folder }}
script:
youtube_play_latest_pds:
@@ -71,8 +71,7 @@ script:
value: ""
automation:
- id: youtube_download_latest_pds
alias: Youtube · Download latest PDS
- alias: Youtube · Download latest PDS
trigger:
platform: state
entity_id: sensor.philip_defranco