HojuGuy
(Roan )
June 8, 2022, 10:12am
1
Hey from the new guy here.
Any advice as to why my Zigbee light strip works perfectly when switching on and off (through HA) but when using a scene, it fails to work turn on? For reference, the other lights in the scene work as per instructed.
Cheers,
m0wlheld
(Christoph Dahlen)
June 8, 2022, 5:43pm
2
Check the generated scene.yaml and remove every attribute for the light strip, that is not required.
Background: When you add an entity to a scene, the current state of it is stored. Including attributes that cannot be set, causing errors when calling the scene.
1 Like
NathanCu
(Nathan Curtis)
June 8, 2022, 5:47pm
3
This changes in 2022.6.you can now add single entities to a scene in the UI now instead of the whole device.
1 Like
m0wlheld
(Christoph Dahlen)
June 8, 2022, 6:16pm
4
Yet, it stores even the read-only attributes of a device / entity / whatever and this may cause errors when calling the scene.
My advice remains unchanged: Clean scene.yaml.
1 Like
HojuGuy
(Roan )
June 9, 2022, 8:20am
5
Some great advice, as I didnât even have a file editor installed.
I tried making a new scene by just adding the entity but that didnât work, so there must be something conflicting with it.
To be honest, even after watching a few youtube videos, I donât know what I am looking at in the file editor.
I have a few scenes all set to come on at different times. The issue is with âOffice_bookshelf_striplightsâ. I have posted my scene.yaml below. Any chance you could help find an issue?
- id: '1654418733336'
name: Office Lights Morning Lights
entities:
light.office_pendant_wiz_light:
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
friendly_name: Office_Pendant_Wiz_Light
supported_features: 4
color_mode: color_temp
brightness: 255
color_temp: 238
hs_color:
- 26.743
- 31.347
rgb_color:
- 255
- 210
- 175
xy_color:
- 0.409
- 0.361
state: 'on'
number.office_pendant_wiz_light_effect_speed:
min: 10
max: 200
step: 1
mode: slider
icon: mdi:speedometer
friendly_name: Office_Pendant_Wiz_Light Effect Speed
state: unavailable
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
min_mireds: 250
max_mireds: 454
supported_color_modes:
- color_temp
- hs
off_brightness:
friendly_name: Office_bookshelf_striplights
supported_features: 59
color_mode: color_temp
brightness: 107
color_temp: 395
hs_color:
- 28.794
- 71.411
rgb_color:
- 255
- 160
- 72
xy_color:
- 0.544
- 0.389
state: 'on'
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
options:
- 'Off'
- 'On'
- Toggle
- PreviousValue
friendly_name: Office_bookshelf_striplights 5c644879 on_off StartUpOnOff
state: Toggle
icon: mdi:ceiling-light-multiple
metadata:
light.office_pendant_wiz_light:
entity_only: false
number.office_pendant_wiz_light_effect_speed:
entity_only: false
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
entity_only: false
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
entity_only: false
- id: '1654433202321'
name: Office Afternoon Lights
entities:
light.office_pendant_wiz_light:
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
friendly_name: Office_Pendant_Wiz_Light
supported_features: 4
color_mode: rgbw
brightness: 255
hs_color:
- 0
- 74.902
rgb_color:
- 255
- 64
- 64
rgbw_color:
- 255
- 64
- 64
- 0
xy_color:
- 0.645
- 0.304
state: 'on'
number.office_pendant_wiz_light_effect_speed:
min: 10
max: 200
step: 1
mode: slider
icon: mdi:speedometer
friendly_name: Office_Pendant_Wiz_Light Effect Speed
state: unavailable
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
min_mireds: 250
max_mireds: 454
supported_color_modes:
- color_temp
- hs
off_brightness:
friendly_name: Office_bookshelf_striplights
supported_features: 59
color_mode: color_temp
brightness: 237
color_temp: 395
hs_color:
- 28.794
- 71.411
rgb_color:
- 255
- 160
- 72
xy_color:
- 0.544
- 0.389
state: 'on'
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
options:
- 'Off'
- 'On'
- Toggle
- PreviousValue
friendly_name: Office_bookshelf_striplights 5c644879 on_off StartUpOnOff
state: 'On'
number.ewelight_zb_cl01_5c644879_level_start_up_current_level:
min: 0
max: 255
step: 1
mode: auto
friendly_name: eWeLight ZB-CL01 5c644879 level start_up_current_level
state: '255'
icon: mdi:lightbulb-on-70
metadata:
light.office_pendant_wiz_light:
entity_only: false
number.office_pendant_wiz_light_effect_speed:
entity_only: false
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
entity_only: false
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
entity_only: false
number.ewelight_zb_cl01_5c644879_level_start_up_current_level:
entity_only: false
- id: '1654433416999'
name: Office Night Lights
entities:
light.office_pendant_wiz_light:
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
friendly_name: Office_Pendant_Wiz_Light
supported_features: 4
color_mode: brightness
brightness: 196
effect: Sunset
state: 'on'
number.office_pendant_wiz_light_effect_speed:
min: 10
max: 200
step: 1
mode: slider
icon: mdi:speedometer
friendly_name: Office_Pendant_Wiz_Light Effect Speed
state: '100.0'
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
min_mireds: 250
max_mireds: 454
supported_color_modes:
- color_temp
- hs
off_brightness:
friendly_name: Office_bookshelf_striplights
supported_features: 59
color_mode: color_temp
brightness: 36
color_temp: 395
hs_color:
- 28.794
- 71.411
rgb_color:
- 255
- 160
- 72
xy_color:
- 0.544
- 0.389
state: 'on'
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
options:
- 'Off'
- 'On'
- Toggle
- PreviousValue
friendly_name: Office_bookshelf_striplights 5c644879 on_off StartUpOnOff
state: 'On'
icon: mdi:clock-time-nine-outline
metadata:
light.office_pendant_wiz_light:
entity_only: false
number.office_pendant_wiz_light_effect_speed:
entity_only: false
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
entity_only: false
select.office_bookshelf_striplights_5c644879_on_off_startuponoff:
entity_only: false
- id: '1654761641588'
name: Bookshelf lights on
entities:
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
min_mireds: 250
max_mireds: 454
supported_color_modes:
- color_temp
- hs
color_mode: color_temp
brightness: 237
color_temp: 395
hs_color:
- 28.794
- 71.411
rgb_color:
- 255
- 160
- 72
xy_color:
- 0.544
- 0.389
off_brightness:
friendly_name: Office_bookshelf_striplights
supported_features: 59
state: 'on'
icon: mdi:alarm-light-outline
metadata:
light.office_bookshelf_striplights_5c644879_level_light_color_on_off:
entity_only: true
HojuGuy
(Roan )
June 12, 2022, 1:56pm
6
Just wondering if you would have time to see my script above to see what could be wrong?
khvej8
(Khvej8)
June 17, 2022, 9:30pm
7
I do not know if there is something wrong in the file, however have you tried to create a scene with only the light strip? And test if that is working? To rule other errors?
HojuGuy
(Roan )
June 18, 2022, 12:36am
8
Hi Khvej8,
Thanks for your reply. I tried creating a single scene for just the light strip and was still the same
Works perfect if I manually switch it on but otherwise, it doesnt worth with scenes. Oddly enough, my zigbee switch turns it off but canât turn it on.
khvej8
(Khvej8)
June 18, 2022, 5:21am
9
The strip, what type is it. I assume it is connected through Z2M?
I earlier, have thrown them out as they were bad, had a light dimmer from a cheap unknown brand. It behaved a little strange, might be the same. It would not turn on with a scene, only if using âdevice turn onâ in automations. Afterwards I could apply the scene. My automation was something like
turn on device with 1%
wait 500ms
apply the scene
Not sure this is your problem, worth a try
1 Like
m0wlheld
(Christoph Dahlen)
June 18, 2022, 6:43am
10
Remove every attribute from scenes.yaml that is not required to achieve the desired state, like supported_color_modes, off_brightness etc.
All that needs to remain is state, brightness and color settings.
Also: Check the logs when calling the scene
1 Like