Hello everyone. I am on latest HA and I have an aqara zigbee relay with two channels.
I need one simple button on the dashboard that will toggle both channels ON and OFF.
The only way I managed to solve it was by creating a script using the service “Switch: Toggle” and for Targets I used the two entities “lumini fata garaj l1” and “lumini fata garaj l2”
Now I have my button running the script but the problem is, the icon “mdi:lightbulb-on-10” will not turn Yellow (or gold) when the LEDs are ON. It tries to switch to yellow but it remains blue. I really need to know if the lights are turned on or off.
Please post the configuration for the card you are using. In the card editor click on “Show Code Editor” on the bottom left then copy/paste the configuration so we can see what is going on.
From what you have said I would guess you might have the script set as the entity for the card instead of one of the switches.
As I mentioned, the issue is that you have the script as the entity for the button. Scripts are only “on” very briefly, which is why you were seeing it flash yellow then go back to blue. You need to set the entity to one of your switch entities, and change the action to a service call.
If you absolutely need to know that both switches are on, you should combine them in a switch group in the Settings > Devices & Services > Helpers menu with the “All Entities” option turned on.