diff --git a/automations/humidity.yaml b/automations/humidity.yaml index be91d76..b8b30c8 100644 --- a/automations/humidity.yaml +++ b/automations/humidity.yaml @@ -1,27 +1,25 @@ - alias: Dachboden Luftfeuchtigkeit trigger: - platform: numeric_state - entity_id: sensor.attic_humidity - below: 35 - above: 65 - for: - minutes: 3 + platform: numeric_state + entity_id: sensor.attic_humidity + value_template: '{{ state|float }}' + below: 35 + above: 65 action: - service: notify.telegram_group - data: - title: 'Bitte den Dachboden lüften!' - message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.livingroom_humidity.state }}% außerhalb des Grenzbereichs.' + service: notify.telegram_group + data: + title: 'Bitte den Dachboden lüften!' + message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.attic_humidity.state }}% außerhalb des Grenzbereichs.' - alias: Badezimmer Luftfeuchtigkeit trigger: - platform: numeric_state - entity_id: sensor.bathroom_hygrometer_humidity - below: 35 - above: 70 - for: - minutes: 3 + platform: numeric_state + entity_id: sensor.bathroom_hygrometer_humidity + value_template: '{{ state|float }}' + below: 35 + above: 70 action: - service: notify.telegram_group - data: - title: 'Bitte das Badezimmer lüften!' - message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.' + service: notify.telegram_group + data: + title: 'Bitte das Badezimmer lüften!' + message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.' diff --git a/automations/livingroom.yaml b/automations/livingroom.yaml index c41dc48..1919df7 100644 --- a/automations/livingroom.yaml +++ b/automations/livingroom.yaml @@ -1,30 +1,44 @@ -- alias: Ambilight an (HDMI) +- alias: Ambilight HDMI trigger: - platform: state - entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation - to: 'on' + platform: state + entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation + to: 'on' action: - service: light.turn_on - data: - entity_id: light.ambilight - effect: HDMI + service: light.turn_on + data: + entity_id: light.ambilight + effect: HDMI -- alias: Ambilight an +- alias: Musik an trigger: - platform: state - entity_id: switch.harmony_music_bt - to: 'on' + platform: state + entity_id: switch.harmony_music_bt + to: 'on' action: - service: light.turn_on - data: - entity_id: light.ambilight + - service: script.livingroom_music_scenario_on + +- alias: Musik aus + trigger: + platform: state + entity_id: switch.harmony_music_bt + to: 'off' + action: + - service: script.livingroom_music_scenario_off - alias: Ambilight aus trigger: - platform: state - entity_id: switch.harmony_music_bt, switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation - to: 'off' + platform: state + entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation + to: 'off' action: - service: light.turn_off - data: - entity_id: light.ambilight \ No newline at end of file + service: light.turn_off + data: + entity_id: light.ambilight + +- alias: Ambilight aus wird zu an und schwarz + trigger: + platform: state + entity_id: light.ambilight + to: 'off' + action: + - service: script.ambilight_off \ No newline at end of file diff --git a/configuration.yaml b/configuration.yaml index 2902676..b8b7602 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -32,6 +32,8 @@ zone: radius: 250 icon: mdi:briefcase +system_health: + config: updater: @@ -153,6 +155,7 @@ light: - platform: hyperion name: Ambilight host: !secret ambilight_ip + hdmi_priority: 900 - platform: switch name: Stimmungslicht entity_id: switch.livingroom_stimmungslicht @@ -228,11 +231,11 @@ input_datetime: panel_iframe: deconz: title: 'Deconz' - url: 'http://home.local:8680' + url: !secret url_deconz icon: mdi:gate-and chronograf: title: 'Chronograf' - url: 'http://home.local:8888/sources/1/dashboards/5' + url: !secret url_chronograf icon: mdi:monitor-dashboard #alert: !include alerts.yaml diff --git a/scripts.yaml b/scripts.yaml index 4fdca46..87f4821 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -1,16 +1,31 @@ -livingroom_music_on: - alias: Wohnzimmer Musik - An +ambilight_off: + alias: Ambilight schwarz schalten sequence: - service: light.turn_on data: entity_id: light.ambilight -# brightness: 255 -# rgb_color: [255,125,0] - rgb_color: [0,255,62] # Spotify Green - brightness: 130 + rgb_color: [0,0,0] + brightness: 0 + +livingroom_music_on: + alias: Wohnzimmer Musik - An + sequence: - service: switch.turn_on data: entity_id: switch.harmony_music_bt + - service: script.livingroom_music_scenario_on + +livingroom_music_scenario_on: + alias: Wohnzimmer Musik Szenario - An + sequence: + - service: switch.turn_on # todo: nur triggern wenn noch off + data: + entity_id: switch.harmony_music_bt + - service: light.turn_on + data: + entity_id: light.ambilight + rgb_color: [0,255,62] # Spotify Green + brightness: 130 - service: media_player.select_source data: entity_id: media_player.spotify @@ -25,13 +40,22 @@ livingroom_music_on: livingroom_music_off: alias: Wohnzimmer Musik - Aus sequence: - - service: media_player.media_pause - data: - entity_id: media_player.spotify + - service: script.livingroom_music_scenario_off - service: switch.turn_off data: entity_id: switch.harmony_music_bt + +livingroom_music_scenario_off: + alias: Wohnzimmer Musik Szenario - Aus + sequence: + - service: media_player.media_pause + data: + entity_id: media_player.spotify + - service: light.turn_off + data: + entity_id: light.ambilight + livingroom_netflix_on: alias: Netflix sequence: