I have created an class based on Light. The class have a callback function that is called when the color on the light change (from mobile app, not from HASS). But I can’t get the light color to update in HASS direct. After a while HASS call the update and color_hs and get the right color. But I want to force the update directly.
I have tried to use the hass.states.set(…) in the callback function. It working when I only change the state (on/off) but when changing rgb color it not work.
Is there another way to notify HASS that the device have been updated? If I should use the hass.states.set(…) what should I send as attributes?
I realy hope someone can help me out with this.