GithubHelp home page GithubHelp logo

Comments (14)

point-4ward avatar point-4ward commented on July 19, 2024

My config is all on my github if you want to see - but to confirm I have no

sensor:
  - platform: hue

anywhere in my config, and the sensors are working perfectly.

I do have both parts of the custom_component in my custom_components directory (although I am wondering if I can remove the sensor folder).

If I add the above lines back in all my groups fail to load with no error messages pertinent to anything to do with groups or the sensor.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

Sounds like you could have it configured twice? I’ve not tried 0.62 myself yet.

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

Nope, definitely not configured anywhere else.

It's like the sensor is hardcoded in the python somewhere?

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

You could delete the database, restart, see if there are errors. Unfortunately without error messages I've no way to debug.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

I am afraid this can only be fixed with a change to the code.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

From @mf-social

Robin,

STOP!

(pauses for effect - love a bit of drama 😉 )

In the other issue I said I think the sensor is somehow now hardcoded in the python. It is (even if you don't know it, or it shouldn't be) but the important thing is it's not a problem.

Here's what I have done to check everything out, but if you need any more info then let me know....

I have grep'd my entire install to ensure that there are no erroneous references to sensor platform hue.

I completely removed both hue.py and sensor/hue.py from my system, I deleted the database and rebooted the pi.

No sensors as expected and, crucially, no errors complaining that it cannot set up the sensor hue platform, so there are definitely no references to it in my system

Re-add only the hue.py, restart homeassistant, persistent notification complains that it cannot find sensor.hue. I have not re-included that platform, so it MUST be hard-coded in to your hue.py somewhere.

Reintroduce sensor/hue.py and all errors disappear, and the hue sensors return.

The only ting you need to do to fix this issue is remove the instruction to include

sensor:
  - platform: hue

As that is what is causing the problem (maybe an endless loop or something)

Hope this helps.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

Yes the modified hue hub component references the sensors platform, so throws an error if not present. See here.

Therefore, if you remove the hue sensors you also need to remove the modified hue hub.

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

Yeah, you're missing the point.

If you include the lines

sensor:
  - platform: hue 

It breaks the configuration. When you remove these lines it's fine and the sensors still work.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

This may be a new issue in 0.62, perhaps related to Discovery. Will reopen but wait and see if others report the same behaviour before updating docs. I've yet to test 0.62 myself.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

OK I updated to 0.62 an did not experience the issue you report. Will keep this open for time-being to see if anyone else has problems.

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

Can you check if you still get the sensors working if you remove the sensor lines from your configuration?

Seems weird that I don't need them and will require further investigation at my end if it doesn't work elsewhere.

Groups issue could be manifesting because all my config is in packages, but it only manifests when I reinclude the sensor lines.

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

Just a quick update for you - I've had to rebuild my system thanks to SD card corruption, and in doing so I've obviously copied over configuration files, but not any of the databases or background stuff.

I stlll do not require the entry

sensor:
  - platform: hue

and my sensors are still working fine.

I have not tried reintroducing the lines to see if I lose my groups again, but I might when I get a bit more keyboard time at some point.

FYI.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

Hi Mark
I've updated the main README to mention that configuring the sensors is optional, due to discovery.
I'm leaving it there as an option as some people turn off discovery.
Cheers

from hue-sensors-hass.

point-4ward avatar point-4ward commented on July 19, 2024

I don't use discovery - so it's not that. 😕

Not to worry, my config is working. 👍

from hue-sensors-hass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.