Hi there,
I have an automation set, that when a webhook is recieved, turns all my lights on and red (excepts one that can only show white, thats turns off). This is done partialy by a scene. Next it plays a sound on my Google home mini, which also reads the payload of the webhook. Next, it should wait a minute and turn all the lights off (also partialy done by a scene).
But heres the problem:
Once the payload has been read, some lights turn white again after about 20-30 seconds, and I dont know why.
I’ll try to upload all the yaml code used. If I miss something, feel free to ask and I will upload it too.
Automation:
alias: Alamos
description: ""
trigger:
- platform: webhook
allowed_methods:
- PUT
- HEAD
- GET
- POST
local_only: false
webhook_id: alamos
condition: []
action:
- type: turn_on
device_id: 75cdbee52204b406288f81dfe23b4238
entity_id: 29cefb5eda5baec76ae403ab8398c07c
domain: light
- service: scene.turn_on
target:
entity_id: scene.szene_licht_rot
metadata: {}
- service: media_player.play_media
target:
entity_id: media_player.googlehome2114
data:
media_content_id: media-source://media_source/local/firehouse_alarm_gong.mp3
media_content_type: audio/mpeg
metadata:
title: firehouse_alarm_gong.mp3
thumbnail: null
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- delay:
hours: 0
minutes: 0
seconds: 4
milliseconds: 0
- service: media_player.play_media
target:
entity_id: media_player.googlehome2114
data:
media_content_id: >-
media-source://tts/picotts?message=Einsatz"{{trigger.json.keyword}}"&language=de-DE
media_content_type: provider
metadata:
title: "{{trigger.json.keyword}}"
thumbnail: https://brands.home-assistant.io/_/picotts/logo.png
media_class: app
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/picotts?message=EINSATZ+B3&language=de-DE
- delay:
hours: 0
minutes: 1
seconds: 56
milliseconds: 0
- type: turn_off
device_id: 75cdbee52204b406288f81dfe23b4238
entity_id: 29cefb5eda5baec76ae403ab8398c07c
domain: light
- service: scene.turn_on
target:
entity_id: scene.szene_licht_aus
metadata: {}
mode: single
Lights on/red:
- id: '1700681934408'
name: Szene Licht Rot
entities:
light.hue_color_lamp_1:
min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list:
- None
- candle
- fire
- prism
supported_color_modes:
- color_temp
- xy
color_mode: xy
brightness: 255
color_temp_kelvin:
color_temp:
hs_color:
- 10.118
- 100
rgb_color:
- 255
- 43
- 0
xy_color:
- 0.6915
- 0.3083
effect: None
mode: normal
dynamics: none
friendly_name: Hue color lamp 1
supported_features: 44
state: 'on'
light.hue_color_lamp_2:
min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list:
- None
- candle
- fire
- prism
supported_color_modes:
- color_temp
- xy
color_mode: xy
brightness: 255
color_temp_kelvin:
color_temp:
hs_color:
- 10.118
- 100
rgb_color:
- 255
- 43
- 0
xy_color:
- 0.6915
- 0.3083
effect: None
mode: normal
dynamics: none
friendly_name: Hue color lamp 2
supported_features: 44
state: 'on'
light.hue_color_lamp_3:
min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list:
- None
- candle
- fire
- prism
supported_color_modes:
- color_temp
- xy
color_mode: xy
brightness: 255
color_temp_kelvin:
color_temp:
hs_color:
- 10.118
- 100
rgb_color:
- 255
- 43
- 0
xy_color:
- 0.6915
- 0.3083
effect: None
mode: normal
dynamics: none
friendly_name: Hue color lamp 3
supported_features: 44
state: 'on'
light.wiz_rgbw_tunable_1189bc:
min_color_temp_kelvin: 2202
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 454
effect_list:
- Ocean
- Romance
- Sunset
- Party
- Fireplace
- Cozy
- Forest
- Pastel Colors
- Wake up
- Bedtime
- Warm White
- Daylight
- Cool white
- Night light
- Focus
- Relax
- True colors
- TV time
- Plantgrowth
- Spring
- Summer
- Fall
- Deepdive
- Jungle
- Mojito
- Club
- Christmas
- Halloween
- Candlelight
- Golden white
- Pulse
- Steampunk
- Rhythm
supported_color_modes:
- color_temp
- rgbw
color_mode: rgbw
brightness: 255
color_temp_kelvin:
color_temp:
hs_color:
- 0
- 100
rgb_color:
- 255
- 0
- 0
xy_color:
- 0.701
- 0.299
rgbw_color:
- 255
- 0
- 0
- 0
effect:
friendly_name: WiZ RGBW Tunable 1189BC
supported_features: 4
state: 'on'
light.wiz_rgbw_tunable_119e24:
min_color_temp_kelvin: 2202
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 454
effect_list:
- Ocean
- Romance
- Sunset
- Party
- Fireplace
- Cozy
- Forest
- Pastel Colors
- Wake up
- Bedtime
- Warm White
- Daylight
- Cool white
- Night light
- Focus
- Relax
- True colors
- TV time
- Plantgrowth
- Spring
- Summer
- Fall
- Deepdive
- Jungle
- Mojito
- Club
- Christmas
- Halloween
- Candlelight
- Golden white
- Pulse
- Steampunk
- Rhythm
supported_color_modes:
- color_temp
- rgbw
color_mode: rgbw
brightness: 255
color_temp_kelvin:
color_temp:
hs_color:
- 0
- 100
rgb_color:
- 255
- 0
- 0
xy_color:
- 0.701
- 0.299
rgbw_color:
- 255
- 0
- 0
- 0
effect:
friendly_name: WiZ RGBW Tunable 119E24
supported_features: 4
state: 'on'
light.hue_white_lamp_1:
effect_list:
- None
- candle
supported_color_modes:
- brightness
color_mode:
brightness:
effect:
mode: normal
dynamics: none
friendly_name: Hue white lamp 1
supported_features: 44
state: 'off'
icon: mdi:lightbulb-group
metadata: {}
Turn lights of
- id: '1700683586177'
name: Szene Licht aus
entities:
light.licht_schlafzimmer:
min_color_temp_kelvin: 2000
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 500
effect_list:
- None
- Bedtime
- Candlelight
- Christmas
- Club
- Cool white
- Cozy
- Daylight
- Deepdive
- Fall
- Fireplace
- Focus
- Forest
- Golden white
- Halloween
- Jungle
- Mojito
- Night light
- Ocean
- Party
- Pastel Colors
- Plantgrowth
- Pulse
- Relax
- Rhythm
- Romance
- Spring
- Steampunk
- Summer
- Sunset
- TV time
- True colors
- Wake up
- Warm White
- candle
- fire
- prism
supported_color_modes:
- brightness
- color_temp
- rgbw
- xy
color_mode:
brightness:
color_temp_kelvin:
color_temp:
hs_color:
rgb_color:
xy_color:
rgbw_color:
effect:
entity_id:
- light.hue_color_lamp_1
- light.hue_color_lamp_2
- light.hue_color_lamp_3
- light.hue_white_lamp_1
- light.wiz_rgbw_tunable_1189bc
- light.wiz_rgbw_tunable_119e24
icon: mdi:lightbulb-group
friendly_name: Licht Schlafzimmer
supported_features: 44
state: 'off'
icon: mdi:lightbulb-group
metadata:
light.licht_schlafzimmer:
entity_only: true
Thanks,
Jinx