Config changes

This commit is contained in:
Martin Bauer 2020-06-06 16:04:06 +00:00
parent 5b444de1ab
commit c75c787186
6 changed files with 155 additions and 68 deletions

View File

@ -43,3 +43,22 @@
- 0.502 - 0.502
- 0.414 - 0.414
service: light.turn_on service: light.turn_on
- id: '1589377976830'
alias: AlarmMartinHandy
description: ''
trigger:
- entity_id: binary_sensor.gang_bewegungsmelder_schlafzimmer, binary_sensor.gang_bewegungsmelder_ost,
binary_sensor.gang_bewegungsmelder_mitte
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: Bewegung im Gang
title: Alarm
service: notify.telegram_martin
- data:
message: Bewegung im Gang
title: Alarm
service: notify.ios_martins_ipad

View File

@ -1,5 +1,4 @@
# ------ Einschalten --------------- # ------ Einschalten ---------------
- alias: EsszimmerRadio Oben an - alias: EsszimmerRadio Oben an
trigger: trigger:
# Switch on when pushing play or power # Switch on when pushing play or power
@ -94,24 +93,44 @@
repeat_counter: 0 repeat_counter: 0
host: esszimmerradio.fritz.box host: esszimmerradio.fritz.box
action: action:
service: switch.turn_off - service: switch.turn_off
data: data:
entity_id: switch.esszimmer_oben_radio_steckdose1 entity_id: switch.esszimmer_oben_radio_steckdose1
- service: media_player.media_stop
data:
entity_id: media_player.esszimmer
- alias: Radio Stop
trigger:
- platform: event
event_type: ir_command_received
event_data:
button_name: key_stop
repeat_counter: 0
host: esszimmerradio.fritz.box
- platform: event
event_type: ir_command_received
event_data:
button_name: key_pause
repeat_counter: 0
host: esszimmerradio.fritz.box
action:
service: media_player.media_pause
data:
entity_id: media_player.esszimmer
# ------ Squeezelite neustart --------------- # ------ Squeezelite neustart ---------------
#- alias: EsszimmerRadio oben squeezelite neustart - alias: EsszimmerRadio oben squeezelite neustart
# trigger: trigger:
# # Switch off when pushing goto or pause - platform: event
# - platform: event event_type: ir_command_received
# event_type: ir_command_received event_data:
# event_data: button_name: key_record
# button_name: key_record repeat_counter: 0
# repeat_counter: 0 host: esszimmerradio.fritz.box
# host: esszimmerradio.fritz.box action:
# action: service: sysdweb.restart
# service: sysdweb.restart data:
# data: hostname: esszimmerradio.fritz.box
# hostname: esszimmerradio.fritz.box service_name: squeezelite
# service_name: squeezelite

View File

@ -1,272 +1,272 @@
# Dont' edit manually! this is generated! # Dont' edit manually! this is generated!
- alias: IR musikserverwohnzimmeroben.fritz.box btn_1 - alias: IR musikserverWohnzimmerOben.fritz.box btn_1
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_1 button_name: btn_1
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Bayern 1 media_content_id: Bayern 1
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_2 - alias: IR musikserverWohnzimmerOben.fritz.box btn_2
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_2 button_name: btn_2
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Bayern 2 media_content_id: Bayern 2
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_3 - alias: IR musikserverWohnzimmerOben.fritz.box btn_3
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_3 button_name: btn_3
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: BR Heimat media_content_id: BR Heimat
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_4 - alias: IR musikserverWohnzimmerOben.fritz.box btn_4
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_4 button_name: btn_4
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Bayern+ media_content_id: Bayern+
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_5 - alias: IR musikserverWohnzimmerOben.fritz.box btn_5
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_5 button_name: btn_5
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: B 5 Aktuell media_content_id: B 5 Aktuell
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_6 - alias: IR musikserverWohnzimmerOben.fritz.box btn_6
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_6 button_name: btn_6
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: BR-Klassik media_content_id: BR-Klassik
media_content_type: channel media_content_type: channel
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_7 - alias: IR musikserverWohnzimmerOben.fritz.box btn_7
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_7 button_name: btn_7
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Gesammelte Weihnachtslieder media_content_id: Gesammelte Weihnachtslieder
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_8 - alias: IR musikserverWohnzimmerOben.fritz.box btn_8
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_8 button_name: btn_8
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Harmonic Brass Christmas media_content_id: Harmonic Brass Christmas
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_9 - alias: IR musikserverWohnzimmerOben.fritz.box btn_9
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_9 button_name: btn_9
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: German Brass Christmas media_content_id: German Brass Christmas
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box key_numeric_star - alias: IR musikserverWohnzimmerOben.fritz.box key_numeric_star
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_numeric_star button_name: key_numeric_star
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Weihnachten mit den Wiener Sängerknaben media_content_id: Weihnachten mit den Wiener Sängerknaben
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box btn_0 - alias: IR musikserverWohnzimmerOben.fritz.box btn_0
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: btn_0 button_name: btn_0
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: Weihnachten mit den Wiener Sängerknaben media_content_id: Weihnachten mit den Wiener Sängerknaben
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box key_numeric_pound - alias: IR musikserverWohnzimmerOben.fritz.box key_numeric_pound
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_numeric_pound button_name: key_numeric_pound
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.play_media service: media_player.play_media
data: data:
media_content_id: SammlungGeorg media_content_id: SammlungGeorg
media_content_type: music media_content_type: music
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Musik Play/Pause - alias: IR musikserverWohnzimmerOben.fritz.box Musik Play/Pause
trigger: trigger:
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_play button_name: key_play
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_pause button_name: key_pause
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.media_play_pause service: media_player.media_play_pause
data: data:
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Musik Next - alias: IR musikserverWohnzimmerOben.fritz.box Musik Next
trigger: trigger:
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_forward button_name: key_forward
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_fastforward button_name: key_fastforward
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.media_next_track service: media_player.media_next_track
data: data:
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Musik Prev - alias: IR musikserverWohnzimmerOben.fritz.box Musik Prev
trigger: trigger:
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_previous button_name: key_previous
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
- platform: event - platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_rewind button_name: key_rewind
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.media_next_track service: media_player.media_next_track
data: data:
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Vol Up - alias: IR musikserverWohnzimmerOben.fritz.box Vol Up
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_volumeup button_name: key_volumeup
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.volume_up service: media_player.volume_up
data: data:
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Vol Down - alias: IR musikserverWohnzimmerOben.fritz.box Vol Down
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_volumedown button_name: key_volumedown
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.volume_down service: media_player.volume_down
data: data:
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Shuffle On - alias: IR musikserverWohnzimmerOben.fritz.box Shuffle On
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_menu button_name: key_menu
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.shuffle_set service: media_player.shuffle_set
data: data:
shuffle: true shuffle: true
entity_id: media_player.wohnzimmer entity_id: media_player.wohnzimmer
- alias: IR musikserverwohnzimmeroben.fritz.box Shuffle Off - alias: IR musikserverWohnzimmerOben.fritz.box Shuffle Off
trigger: trigger:
platform: event platform: event
event_type: ir_command_received event_type: ir_command_received
event_data: event_data:
button_name: key_exit button_name: key_exit
repeat_counter: 0 repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box host: musikserverWohnzimmerOben.fritz.box
action: action:
service: media_player.shuffle_set service: media_player.shuffle_set
data: data:

View File

@ -0,0 +1,15 @@
# ------ Squeezelite neustart ---------------
- alias: Wohnzimmer oben squeezelite neustart
trigger:
- platform: event
event_type: ir_command_received
event_data:
button_name: key_record
repeat_counter: 0
host: musikserverwohnzimmeroben.fritz.box
action:
service: sysdweb.restart
data:
hostname: musikserverwohnzimmeroben.fritz.box
service_name: squeezelite

View File

@ -115,7 +115,7 @@ def get_config():
} }
}, },
'first_floor_living_room': { 'first_floor_living_room': {
'ir_host': 'musikserverwohnzimmeroben.fritz.box', 'ir_host': 'musikserverWohnzimmerOben.fritz.box',
'media_player': 'media_player.wohnzimmer', 'media_player': 'media_player.wohnzimmer',
'mapping': { 'mapping': {
'btn_1': '[radio] Bayern 1', 'btn_1': '[radio] Bayern 1',

View File

@ -75,13 +75,20 @@ history:
- updater - updater
- scene - scene
influxdb:
host: a0d7b954-influxdb
port: 8086
database: home_assistant
username: home_assistant
password: home_assistant
max_retries: 3
default_measurement: state
ios: ios:
shopping_list: shopping_list:
#http:
# - base_url: ha.bauer.tech
telegram_bot: telegram_bot:
- platform: webhooks - platform: webhooks
parse_mode: html parse_mode: html
@ -187,6 +194,34 @@ sysdweb:
- squeezelite - squeezelite
- shairport-sync - shairport-sync
- dht22_sensing - dht22_sensing
- host: bedroompi.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- lircd
- squeezelite
- shairport-sync
- dht22_sensing
- host: esszimmerradio.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- lircd
- squeezelite
- shairport-sync
- sispmctl
- host: musikserverwohnzimmeroben.fritz.box
port: 10080
username: sysdweb
password: !secret sysdweb_pw
services:
- irserver
- squeezelite
- shairport-sync
- dht22_sensing
- logitechmediaserver
lirc_network: lirc_network:
- host: kitchenpi.fritz.box - host: kitchenpi.fritz.box
@ -194,7 +229,7 @@ lirc_network:
- host: bedroompi.fritz.box - host: bedroompi.fritz.box
port: 2222 port: 2222
- host: esszimmerradio.fritz.box - host: esszimmerradio.fritz.box
port: 8765 port: 2222
- host: musikserverWohnzimmerOben.fritz.box - host: musikserverWohnzimmerOben.fritz.box
port: 8765 port: 8765
@ -223,8 +258,7 @@ sensor:
motion_combined: motion_combined:
friendly_name: Bewegung friendly_name: Bewegung
value_template: > value_template: >
{%- set pirs = {'Arbeitszimmer': states.binary_sensor.arbeitszimmer_martin_bewegungsmelder_bewegung, {%- set pirs = {'Gang Mitte': states.binary_sensor.gang_bewegungsmelder_mitte,
'Gang Mitte': states.binary_sensor.gang_bewegungsmelder_mitte,
'Eingang': states.binary_sensor.gang_bewegungsmelder_ost, 'Eingang': states.binary_sensor.gang_bewegungsmelder_ost,
'Gang Hinten': states.binary_sensor.gang_bewegungsmelder_schlafzimmer, 'Gang Hinten': states.binary_sensor.gang_bewegungsmelder_schlafzimmer,
'Gang Wohnzimmer': states.binary_sensor.gang_bewegungsmelder_wohnzimmer} %} 'Gang Wohnzimmer': states.binary_sensor.gang_bewegungsmelder_wohnzimmer} %}