BazaJayGee66 / homeassistant_cololight

Custom component to support Cololight in Home-Assistant
MIT License
47 stars 6 forks source link

HA does read Cololight's state after restart #3

Closed SmartHomeFanatic closed 4 years ago

SmartHomeFanatic commented 4 years ago

Hi there! Thanks for maintaining the addon! Really appreciate that I can integrate the cololight into HA.

My issue is that HA does not read the Cololights state after restart. So when the Cololight is already on it crashes when turned on in HA. I then have to pull the plug to restart it.

Anyone experiencing that?

BazaJayGee66 commented 4 years ago

Currently the component doesn't have a way of receiving state from the cololight device itself, however it should restore the last known state in HA after HA is restarted.

I'm not sure what you mean by "it crashes".

So when the Cololight is already on it crashes when turned on in HA. I then have to pull the plug to restart it.

Does the Cololight device crash, and has to be restarted, or are you referring to HA?

SmartHomeFanatic commented 4 years ago

I am only using HA to control the Cololight. After restarting HA the switch for the Cololight in HA is always off, so the state isn't restored.

When crashing, the Cololight gets a lot brighter and immediately stops animating. Only solution for that is to pull its plug then.

BazaJayGee66 commented 4 years ago

Are you able to confirm if this is still occurring with the latest code changes?

SmartHomeFanatic commented 4 years ago

Hi! Seems good now. Sometimes the brightness changes with HA restarting but I can totally live with that. Thanks for the awesome fix!