I’m aware of that - waiting for delivery of NodeMcu CH340 and NRF24L01+
However have one more question… It is possible to change only lights color without turning them on? For example I have group of 3 lights, but only one is on. When I change color, all the lights turn on. But I only want to change the color of the light which is on…Maybe I should create some fake light entity and use it as a rgb colors source?
I also use a fake light to change lights properties only for the ones that are on. Basically, the topic update includes only delta commands (ie. single commands like change state from on to off, change RGB, change color_temp, etc, not two commands). By forwarding update topic from fake light to the command topic of the real light we can filter out change state commands and only keep light properties commands.
As a result of the following commands, even if the three lights are from the same group and you send the command to group 0 (which comprise all three of them) only the one that is on will react.
We can start another topic in order not to pollute this one.
- alias: sync light properties
initial_state: true
trigger:
- platform: mqtt
topic: "milight_gw/update/0xD/rgb_cct/1" # update topic with the ID of the fake light
condition:
condition: and
conditions:
- condition: template
value_template: '{{ "state" not in trigger.payload }}'
action:
- service: mqtt.publish
data_template:
topic: "milight_gw/0x1/rgb_cct/1" # command topic with the ID of the real light
payload_template: >
{{ trigger.payload}}
How did you create a fake/virtual light? I’m struggling to create a light template which could be controlled by rgb-light-card.
If it would be possible to create such light, controlling other lights (e.g .only enabled) will not be a problem since I’m using node-red for automations.
I see, it’s quite easy with MiLight HUB to create a fake light. Without one it was impossible for me…
Anyway, with this hub I achieved my goal Thanks for hints.
This is great work! I use this card and love it. So much easier than trying to hit an exact point on a color wheel every time to make an adhoc color scheme in a room.
hello, very nice modification. can i have some help on that please? how do i implement it on my setup? i tried the code on a “conditional card” but is not working. thanks
Weird question maybe : But can i hook up an action when clicking a color? I have a full automated light setup, so if i click a color, it will turn-off within in a minute again. So i would like to switch the “light mode” to “Manual” when someone clicks a color!
This is EXACTLY what I was looking for
Creating mini dashboards for my kids and this is great for smaller fingers to use.
The hide_when_off option - I dont suppose you could make one for hide_when_unavailable ?
I know there aren’t many use cases for that but I have one, the power of the smart bulb is controlled by power that isnt always on and currently when it the entity is not available it will display the colour options.