KaufHA / kauf-rgb-switch

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

Esphome update broke Rotate colors for me #8

Open riddles8888 opened 1 year ago

riddles8888 commented 1 year ago

I am using the rotate_colors script and setting hass_light_entity to a light group. After one of the recent updates to esphome the physical button and the button entity in home assistant stopped controlling my light group. The weird part was if the light group was turned on or off the big and small lights on the switch would change properly.

Setting the Kauf.RGBSw package first in the list fixed the issue.

My config:

substitutions:
  name: kauf-rgbsw
  hass_light_entity: light.bedroom_fan_lights
  hass_ct_kelvin_fixed: '2000'
  hass_ct_mireds_fixed: none

packages:
  Kauf.RGBSw: github://KaufHA/kauf-rgb-switch/kauf-rgbs.yaml
  rotate_colors: github://KaufHA/kauf-rgb-switch/yaml-features/rotate-colors-sync-to-ha-light.yaml
bkaufx commented 1 year ago

Thanks. I'll check it out and fix the documentation. ESPHome did have a big update to how packages are imported.

cbrightly commented 1 year ago

I have the same issue (light de-sync with Home Assistant, color-sync broken), and the same resolution (putting RGBSw: … before rotate: … in the ESPHome firmware YAML) worked for me.

I noticed this in my logs (before resolving the problem): while "saving preferences to flash"…

[19:18:35][E][json:039]: Could not allocate memory for JSON document! Requested 392 bytes, largest free heap block: 392 bytes

This seems possibly related(?) However,

"The weird part was if the light group was turned on or off the big and small lights on the switch would change properly."

Doesn't apply to my situation, so maybe not.