Open veeds2 opened 2 months ago
Figured this one out... comment out // id(script_change_color).execute();
if ( id(ui_switch).state && (strcmp("$hass_light_entity","no.ne") != 0) ) {
id(copy_val_to_light).execute();
} else {
// id(script_change_color).execute();
}
Hi the switch color rotate is working however, if you hold the switch in the off state it will rotate colors on the switch. Turning the switch on state will turn on the light and rotate colors just the same.
When the switch is in the off state, it should not rotate colors and display the "off" color (which I cant seem to define anywhere)