Ambilight Turn Off Fix, Music Scenario Fixes
This commit is contained in:
parent
80ebaa8e55
commit
2755d86692
@ -1,27 +1,25 @@
|
|||||||
- alias: Dachboden Luftfeuchtigkeit
|
- alias: Dachboden Luftfeuchtigkeit
|
||||||
trigger:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sensor.attic_humidity
|
entity_id: sensor.attic_humidity
|
||||||
below: 35
|
value_template: '{{ state|float }}'
|
||||||
above: 65
|
below: 35
|
||||||
for:
|
above: 65
|
||||||
minutes: 3
|
|
||||||
action:
|
action:
|
||||||
service: notify.telegram_group
|
service: notify.telegram_group
|
||||||
data:
|
data:
|
||||||
title: 'Bitte den Dachboden lüften!'
|
title: 'Bitte den Dachboden lüften!'
|
||||||
message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.livingroom_humidity.state }}% außerhalb des Grenzbereichs.'
|
message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.attic_humidity.state }}% außerhalb des Grenzbereichs.'
|
||||||
|
|
||||||
- alias: Badezimmer Luftfeuchtigkeit
|
- alias: Badezimmer Luftfeuchtigkeit
|
||||||
trigger:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sensor.bathroom_hygrometer_humidity
|
entity_id: sensor.bathroom_hygrometer_humidity
|
||||||
below: 35
|
value_template: '{{ state|float }}'
|
||||||
above: 70
|
below: 35
|
||||||
for:
|
above: 70
|
||||||
minutes: 3
|
|
||||||
action:
|
action:
|
||||||
service: notify.telegram_group
|
service: notify.telegram_group
|
||||||
data:
|
data:
|
||||||
title: 'Bitte das Badezimmer lüften!'
|
title: 'Bitte das Badezimmer lüften!'
|
||||||
message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.'
|
message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.'
|
||||||
|
@ -1,30 +1,44 @@
|
|||||||
- alias: Ambilight an (HDMI)
|
- alias: Ambilight HDMI
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
service: light.turn_on
|
service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.ambilight
|
entity_id: light.ambilight
|
||||||
effect: HDMI
|
effect: HDMI
|
||||||
|
|
||||||
- alias: Ambilight an
|
- alias: Musik an
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: switch.harmony_music_bt
|
entity_id: switch.harmony_music_bt
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
service: light.turn_on
|
- service: script.livingroom_music_scenario_on
|
||||||
data:
|
|
||||||
entity_id: light.ambilight
|
- alias: Musik aus
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: switch.harmony_music_bt
|
||||||
|
to: 'off'
|
||||||
|
action:
|
||||||
|
- service: script.livingroom_music_scenario_off
|
||||||
|
|
||||||
- alias: Ambilight aus
|
- alias: Ambilight aus
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: switch.harmony_music_bt, switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
|
||||||
to: 'off'
|
to: 'off'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.ambilight
|
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
|
@ -32,6 +32,8 @@ zone:
|
|||||||
radius: 250
|
radius: 250
|
||||||
icon: mdi:briefcase
|
icon: mdi:briefcase
|
||||||
|
|
||||||
|
system_health:
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
|
||||||
updater:
|
updater:
|
||||||
@ -153,6 +155,7 @@ light:
|
|||||||
- platform: hyperion
|
- platform: hyperion
|
||||||
name: Ambilight
|
name: Ambilight
|
||||||
host: !secret ambilight_ip
|
host: !secret ambilight_ip
|
||||||
|
hdmi_priority: 900
|
||||||
- platform: switch
|
- platform: switch
|
||||||
name: Stimmungslicht
|
name: Stimmungslicht
|
||||||
entity_id: switch.livingroom_stimmungslicht
|
entity_id: switch.livingroom_stimmungslicht
|
||||||
@ -228,11 +231,11 @@ input_datetime:
|
|||||||
panel_iframe:
|
panel_iframe:
|
||||||
deconz:
|
deconz:
|
||||||
title: 'Deconz'
|
title: 'Deconz'
|
||||||
url: 'http://home.local:8680'
|
url: !secret url_deconz
|
||||||
icon: mdi:gate-and
|
icon: mdi:gate-and
|
||||||
chronograf:
|
chronograf:
|
||||||
title: 'Chronograf'
|
title: 'Chronograf'
|
||||||
url: 'http://home.local:8888/sources/1/dashboards/5'
|
url: !secret url_chronograf
|
||||||
icon: mdi:monitor-dashboard
|
icon: mdi:monitor-dashboard
|
||||||
|
|
||||||
#alert: !include alerts.yaml
|
#alert: !include alerts.yaml
|
||||||
|
42
scripts.yaml
42
scripts.yaml
@ -1,16 +1,31 @@
|
|||||||
livingroom_music_on:
|
ambilight_off:
|
||||||
alias: Wohnzimmer Musik - An
|
alias: Ambilight schwarz schalten
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.ambilight
|
entity_id: light.ambilight
|
||||||
# brightness: 255
|
rgb_color: [0,0,0]
|
||||||
# rgb_color: [255,125,0]
|
brightness: 0
|
||||||
rgb_color: [0,255,62] # Spotify Green
|
|
||||||
brightness: 130
|
livingroom_music_on:
|
||||||
|
alias: Wohnzimmer Musik - An
|
||||||
|
sequence:
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: switch.harmony_music_bt
|
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
|
- service: media_player.select_source
|
||||||
data:
|
data:
|
||||||
entity_id: media_player.spotify
|
entity_id: media_player.spotify
|
||||||
@ -25,13 +40,22 @@ livingroom_music_on:
|
|||||||
livingroom_music_off:
|
livingroom_music_off:
|
||||||
alias: Wohnzimmer Musik - Aus
|
alias: Wohnzimmer Musik - Aus
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.media_pause
|
- service: script.livingroom_music_scenario_off
|
||||||
data:
|
|
||||||
entity_id: media_player.spotify
|
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: switch.harmony_music_bt
|
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:
|
livingroom_netflix_on:
|
||||||
alias: Netflix
|
alias: Netflix
|
||||||
sequence:
|
sequence:
|
||||||
|
Loading…
Reference in New Issue
Block a user