Comments (7)
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.
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:
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.
when i changed all references to lux to lx things started to work again for me.
from hue-sensors-hass.
@randriksen can you try dev branch, b67055e fixes lx, if it works OK I'm merge to master
from hue-sensors-hass.
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.
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:
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.
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)
- Use the same data source as Home Assistant HOT 1
- missing 1 required positional argument: 'sensors' HOT 7
- 2.13: no binary_sensors created HOT 4
- 2.13 Multi Bridge scenario broken? HOT 13
- FR: add unique hub-id/bridgeid to sensor for multi-hub setup
- 2.13 Log errors when motion sensor triggered. HOT 6
- Extraneous Warning in Z3 Switch Parsing HOT 1
- Drop support for motion sensors? HOT 5
- Hue tap/dimmer remotes still show toggle on more-info
- Split out remotes HOT 4
- Dimmer switches don't work? HOT 1
- Cannot find Hue remotes HOT 2
- Documentation: With HA 0.107.x the view option is now removed from Groups
- dimmer (remote) not discovered HOT 1
- How To Use Dimmer Switch? HOT 2
- Binary Sensory Device Deprecated HOT 1
- No 'version' key in the manifest file HOT 2
- Pytest raising errors HOT 1
- Integration completely broken in 2016.6.0 HOT 5
- Archiving
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hue-sensors-hass.