GithubHelp home page GithubHelp logo

Comments (7)

randriksen avatar randriksen commented on July 19, 2024

i think i found the issue. they have changed lux to lx in 69.1. so all references to lux need to be changed to lx

from hue-sensors-hass.

Mariusthvdb avatar Mariusthvdb commented on July 19, 2024

not sure if its up to me to answer here, but just about the only thing working perfectly in the current HA Hue setup is the CC...

you might have incorrectly set it up but the lux sensors made on the motion sensors (with template sensors) work perfectly:

schermafbeelding 2018-05-24 om 13 56 30

dont change anything in the CC, but have it setup correctly:


sensor:
  - platform: hue
    ip_address: !secret hue_ip
    token: !secret hue_api_key

and you're good to go.

from hue-sensors-hass.

randriksen avatar randriksen commented on July 19, 2024

when i changed all references to lux to lx things started to work again for me.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

@randriksen can you try dev branch, b67055e fixes lx, if it works OK I'm merge to master

from hue-sensors-hass.

Mariusthvdb avatar Mariusthvdb commented on July 19, 2024

when i changed all references to lux to lx things started to work again for me.

you're sure about that? Seems odd the CC would frustrate Hue implementation.

It probably was fixed by removing the hue.py out of the config/custom_components folder. This hue.py that was previously necessary indeed needs to be deleted, or the native Hue component wont work, and show no lights.
Has nothing to do with the CC here (and needs to go i the config/custom_components/sensor folder, which works just fine, including the lux, which is computed on the light level data form the sensor...
Please correct me if im wrong , but also please dont change anything not necessary and working just perfectly as it is

from hue-sensors-hass.

Mariusthvdb avatar Mariusthvdb commented on July 19, 2024

spoke too soon i guess...
updated to .70, and tonight suddenly this shows up in the log:

2018-05-30 23:20:23 ERROR (MainThread) [homeassistant.components.sensor] hue: Error on device update!
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 244, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/hue.py", line 231, in update
    self._hue_id]['lux']
KeyError: 'lux'

the silly thing is, it only effects 1 of my sensors:

schermafbeelding 2018-05-30 om 23 48 58
schermafbeelding 2018-05-30 om 23 49 10

doing so, it even frustrates the temperature sensor.
Is working fine in the App though, so i know the sensor is physically in tact.
still puzzles me how changing lux into lx in the CC would solve anything, since it is to a formal attribute of the sensor, and is calculated inside the component?

anyways, changing the component as per above b67055e seems to fix the issue, the all show up again.

from hue-sensors-hass.

robmarkcole avatar robmarkcole commented on July 19, 2024

OK lux becomes lx in https://github.com/robmarkcole/Hue-sensors-HASS/releases/tag/v0.6
Tested with 0.71.
Please update.
Cheers

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.