SeedLabs-it / smartknob-firmware

Repository for the Smart Knob Firmware (Currently supporting Dev Kit v0.1)
Other
23 stars 2 forks source link

Fix/first state color not set #98

Closed carlhampuswall closed 5 months ago

carlhampuswall commented 5 months ago

Fixed color being set to red if lights first state was off that was sent to knob, HASS doesn't keep track of light color state when off so a null value was sent to knob and we then set light color to red. Now if light is off we send null value for rgb_color wich just starts light and light starts with old color.

This prevents us from knowing what color a light is when a light is turned off at first boot of knob.