Actually just looked at the GitHub issues, and this has been addressed by @Mariusthvdb here:
Just did what is suggested - rename custom component folder to hue_custom and also in configuration.yaml (or sensors.yaml etc if used) to hue_custom: and it all works fine
And my sensors.yaml (note this version is an older version of the CC that didn’t split into binary & sensor - though the dev one is the newer version and it works fine)
Thanks! Very odd this was my setup. I did a restore to a previous snapshot from 2 days ago and it now works. I haven’t changed anything in the last 2 days at all so no idea what was wrong.
Just noticed that there has been another change with this in that the platform has changed from hue to hue_custom (config edit & dir name). Look at the code in the post just above.
I was in the same place as many others. where the new custom component wasn’t working since HA decided not to allow custom components to only update part of the component…
So what I had to do to get this working (I’m on the newest beta currently).
I uploaded CC files to custom_components/hue_custom/
The name of the folder doesn’t matter. as long as its diff from /hue/
Restart - and it works for me… binary sensors for the motion sensors, etc… Just had to use a template for the temperature - and use a formula to change it from Celsius to F. EVerything working as it should.
Edit: Also wanted to add, that although Hue component was always handled via discovery in the past (in my configuration), and I think still is (I’m not specifying host IP for the bridge or anything after hue: ) - it still wouldn’t work until I added hue:
@robmarkcole
I’d really love to see this component become native in HA.
Have you considered submitting the component to them?
In the meantime, after updating to 0.89.0, all states became Unknown or None.
Hopefully this can be updated, preferably without “work arounds” as that only creates problems in the long run.
Hehe… ya i think he has considered it . I think he may have been asked once or twice too
In any case my file structure that was working and is still working but with the warnings has been custom_components/binary_sensor/hue.py, custom_components/sensor/hue.py, and custom_components/device_tracker/hue.py. So I cant use the structure in the repo I have to use custom_components/hue_custom/ …and put the .py files in there. Looks like I’ll be stuck for the upgrades. I require this component.
Correct, you have to create a new folder /custom_components/hue/ and move both files into it and renaming them correctly.
Move the file “hue.py” from the sensor folder into the new one and rename it sensor.py
Move the file “hue.py” from the binary_sensor folder into the new one and rename is binary_sensor.py
That should normally fix your error. However, since the latest update to 0.89. It broke as well, and the temporary fix is in the link above.