Another situation using the strip…
I have automation setup when I start kodi, lights turn off, and when I stop Kodi lights turn on.
- alias: kodi stop
trigger:
- platform: state
entity_id: media_player.kodi
from: 'playing'
to: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: light.turn_on
entity_id: light.rgb_traka
- alias: kodi play
trigger:
- platform: state
entity_id: media_player.kodi
to: 'playing'
from: 'idle'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: light.turn_off
entity_id: light.rgb_traka
For now it only works with start/stop, I would love to have it work with pause/resume too - anyone knows how to achieve this?
Also, The light I’m turning on/off is this RGB strip from the post, how can I add transition effect, and set some type of brightness when the light is on (don’t want it at full brightness)?
Iv tryed adding transition: 2, but that brakes my automation…
You want to turn it on when paused and off again when resumed?
You can simply add a second trigger in each automation. But I’m not sure such a state exist, media player should go in idle when paused.
And you can remove the condition in your stop script (if it stop a stopped light, it’s not a problem), just to keep your code simpler.
I guess it’s simply that your strip use a very cold white or maybe have an imbalance in the RGB balance, your can always use another value to have something closer to white.
Try playing with the color wheel in HA until it’s the color you’d like and then check the RGB value you just set (check in the states tab of HA: <> under Developer Tools)
Yep, that’s why there is some RGBW stip or RGBWW strip (RGB + White or RGB + Warm White) to resolve this issue.
It’s hard to achieve a “real” white with an RGB strip.
cannot find RGBWW in WS2811 however I have tested with a new similar set that I have and they have a lovely white but are only 30/m. I guess I must have a bad batch as this is blue, not even cold white and the new ones are white. Grrr means I need to swap them all out now
Did you put 470ohm ressistor on data pin between nodemcu and led strip? I noticed there is difereent color order with ressistor and without one… Also I had 160 led setup until today, and everything worked like it should, but today when I added rest of the leds (total of 300 leds) things started to be wierd again… I have flickering again, but I think I should add Logic level shifter (3.3 on 5v bidirectional) on data pin as well as the ressistor?
Meybe you ahve the same issue…