Comments (6)
I am having the same problem using this on my Hassio install (currently 0.57.3). The phue.conf is in the main config directory, as expected. This is the first time I'm using a custom component with Hassio, and I haven't run into any dependency issues like this before.
File "/config/custom_components/sensor/hue.py", line 24, in setup_platform
import hue_sensors as hs
ModuleNotFoundError: No module named 'hue_sensors'
All I have done is put the files in config/custom_components, as the instructions said, and added:
- platform: hue
to my sensor:
section.
I am unsure how to proceed. If anyone has any recommendations on how to debug I would welcome them.
EDIT: I got around this for now by manually placing hue_sensors.py from the requested package into custom_components/sensor. Doesn't seem like the "right" way to do this though.
from hue-sensors-hass.
Hi, this isn’t a code error, rather an error in your config or you have some old files floating around.
Cheers
from hue-sensors-hass.
Hi Robin,
Thank you for your fast answer.
We use the last version of HA (56.2), and after the reboot the I think that the component work good.. but own HA need this folders and files (./deps/...)..
This is a setcion of my configurtation.yaml
> light:
> - platform: hue
> host: 192.168.1.201
> filename: phue.conf
> allow_unreachable: true
> #scan_interval: 5
> #allow_hue_groups: true
> #ML272ZTe5mk0S08g3aQV5Y9gye9eWo5pcVaPVUcv - my_hue_app#ESP_01
>
> hue:
>
a littel section of my sensors.yaml
########### HUE SENSORS 1
- platform: hue
- platform: rest
resource: http://[IP]/api/[myKey]/sensors/16
value_template: '{{ value_json.state.lightlevel }}'
unit_of_measurement: Lux
name: 'Pasillo Lux'
- platform: rest
resource: http://[IP]/api/[myKey]/sensors/14
value_template: '{{ value_json.state.temperature | float / 100 }}'
unit_of_measurement: °C
name: 'Pasillo Temperatura'
########### HUE SENSORS 2
- platform: rest
resource: http://[IP]/api/[myKey]/sensors/37
value_template: '{{ value_json.state.lightlevel }}'
unit_of_measurement: Lux
name: 'Papas Lux'
- platform: rest
resource: http://[IP]/api/[myKey]/sensors/35
value_template: '{{ value_json.state.temperature | float / 100 }}'
unit_of_measurement: °C
name: 'Papas Temperatura'
a littel section of my groups.yaml
########## Sensores HUE Philis
sensor_hue_papas:
entities:
- sensor.papas_lux
- sensor.papas_temperatura
- sensor.sensor_motion_papas
name: "Sensores Papas"
view: false
sensor_hue_pasillo:
entities:
- sensor.pasillo_lux
- sensor.pasillo_temperatura
- sensor.sensor_motion_pasillo
name: "Sensores Pasillo"
view: false
Thanks you,
Antoni
from hue-sensors-hass.
I have a fresh Hassio install and I too get the same problem where I assume there must be an automated attempt to install the python dependancy for hue-sensors from another repo but its not doing so?
I get the exact same error as @anarro above.
from hue-sensors-hass.
Hi Phil, could be a Hassio specific issue which I am unsure how to debug. Are there any similar issues on the Hassio repo?
from hue-sensors-hass.
@rogersmj glad that fixes it. I will soon start work on a new Hue compoent using the phue library as requested by HA core team, so will not be making any further changes to this component.
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.