GithubHelp home page GithubHelp logo

It's a error? about hue-sensors-hass HOT 6 CLOSED

anarro avatar anarro commented on September 28, 2024
It's a error?

from hue-sensors-hass.

Comments (6)

rogersmj avatar rogersmj commented on September 28, 2024 1

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.

robmarkcole avatar robmarkcole commented on September 28, 2024

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.

anarro avatar anarro commented on September 28, 2024

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.

phillprice avatar phillprice commented on September 28, 2024

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.

robmarkcole avatar robmarkcole commented on September 28, 2024

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.

robmarkcole avatar robmarkcole commented on September 28, 2024

@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)

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.