ascootw
November 15, 2022, 1:11am
1
Hello,
Wondering if anyone is able to help me with an issue I am having trying to get transition to work on a wiz light bulb. The problem I am having is that any scene or script that I have written does not transition the brightness of the bulb. It will only immediately turn it on. I’m able to transition the bulb using the Wiz Smart Phone App by using the Apps ‘fade in/out’ feature. However, when attempting to get the state of the bulb, or attempting to add transition to a scene, it will not work whatsoever.
Has anyone had this issue and was able to solve it?
Thanks in advance.
Current Home Assistant Version: 2022.11.1
1 Like
tom_l
November 15, 2022, 1:26am
2
If the bulb supports a transition parameter and it is not working you can open an issue here:
Please include an example of the configuration you used that is not working.
ascootw
November 15, 2022, 4:25pm
3
Hello,
Thank you very much for responding to my post.
Here is a YAML scene I have attempted to use to transition the bulb.
name: Test
entities:
light.wiza1:
min_color_temp_kelvin: 2202
max_color_temp_kelvin: 6535
min_mireds: 153
max_mireds: 454
transition: 20
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: Wiza1
supported_features: 4
color_mode: color_temp
brightness: 100
color_temp_kelvin: 4201
color_temp: 238
hs_color:
- 26.743
- 31.347
rgb_color:
- 255
- 210
- 175
xy_color:
- 0.409
- 0.361
state: 'on'
Appreciate it.
linuxop
(linuxop)
November 29, 2022, 6:32pm
4
I too am trying to figure this out, please let me know if you make any progress on this!
According to the integration github (GitHub - sbidy/wiz_light: A WiZ Light integration for Home Assistant ), the API doesn’t support transition time for power on/off. But since it supports effect speed it may be possible to set transition times between color/brightness.
What is declined or rejected:
Change of the speed of the transition from on to off and off->on. This is not supported via the UDP API and can only be configured via WiZ App.
ascootw
December 4, 2022, 10:41pm
5
Hello,
I wasn’t able to find anything on resolving the transition effect. However, I was able to get a workaround going with some scripting to slowly increase the brightness. Have provided the below if it is beneficial for you at all. Basically, it will turn on lights at a low setting and then slowly transition the bulbs to almost being at full brightness. Hope it helps. Thanks.
alias: Wake Up Lights
sequence:
- service: light.turn_on
data:
effect: Daylight
brightness_pct: 1
target:
entity_id: light.bedroom_lights
- repeat:
until:
- condition: state
entity_id: light.bedroom_lights
state: "on"
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.bedroom_lights
- repeat:
until:
- condition: numeric_state
entity_id: light.bedroom_lights
attribute: brightness
above: 225
sequence:
- service: light.turn_on
data:
brightness_step_pct: 1
target:
entity_id: light.bedroom_lights
- delay:
hours: 0
minutes: 0
seconds: 35
milliseconds: 0
mode: single
icon: mdi:lightbulb-on-50
3 Likes
mckay87
(mckay)
January 13, 2023, 4:34pm
6
Hi, i found your posts here very helpfull to make a script for a sunset and added some color temp effect to it. Hope someone find this helpfull.
alias: wiz_control
sequence:
- service: light.turn_on
data:
color_temp: 450
brightness: 1
target:
entity_id: light.deckenleuchte_buro
- repeat:
until:
- condition: numeric_state
entity_id: light.deckenleuchte_buro
attribute: brightness
above: 254
sequence:
- service: light.turn_on
data:
brightness_step_pct: 1
target:
entity_id: light.deckenleuchte_buro
- delay:
hours: 0
minutes: 0
seconds: 9
milliseconds: 0
- if:
- condition: numeric_state
entity_id: light.deckenleuchte_buro
attribute: color_temp
above: 238
then:
- service: light.turn_on
data:
color_temp: '{{states.light.deckenleuchte_buro.attributes.color_temp - 4}}'
target:
entity_id: light.deckenleuchte_buro
mode: single
icon: mdi:home-lightbulb-outline
mckay87
(mckay)
January 13, 2023, 5:06pm
7
One more example with another effect. Here ist the brightness increasing to the fully value before the color starts to shift to daylight. That gives the sunset effect more color during the run. Hope you enjoy it!
alias: wiz_control
sequence:
- service: light.turn_on
data:
color_temp: 450
brightness: 1
target:
entity_id: light.deckenleuchte_buro
- repeat:
until:
- condition: numeric_state
entity_id: light.deckenleuchte_buro
attribute: brightness
above: 254
sequence:
- service: light.turn_on
data:
brightness_step_pct: 1
target:
entity_id: light.deckenleuchte_buro
- delay:
hours: 0
minutes: 0
seconds: 8
milliseconds: 0
- repeat:
until:
- condition: numeric_state
entity_id: light.deckenleuchte_buro
attribute: color_temp
below: 239
sequence:
- service: light.turn_on
data:
color_temp: "{{states.light.deckenleuchte_buro.attributes.color_temp - 1}}"
target:
entity_id: light.deckenleuchte_buro
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
mode: single
icon: mdi:home-lightbulb-outline
EvanJ
April 9, 2023, 2:31am
8
Frustrating that the Wiz bulbs don’t support transitions through home assistant - seems a pretty generic feature of smart bulbs.
But thanks for these scripts, they’re doing the job nicely.
3 Likes