KaufHA / kauf-rgb-switch

Files for the KAUF RGB Wall Switch
21 stars 8 forks source link

Color rotate happens during off state as well as on state #21

Open veeds2 opened 2 months ago

veeds2 commented 2 months ago

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)

veeds2 commented 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();
      }