slesinger / HomeAssistant-PREdistribuce

Home Assistant integration to display info about energy plan
https://slesinger.info
Apache License 2.0
11 stars 8 forks source link

binary sensor error #10

Open kalda123 opened 1 year ago

kalda123 commented 1 year ago

Hi,

Im getting this errors:

Platform error binary_sensor.predistribuce - Requirements for predistribuce not found: ['lxml==4.7.1'].

and

Logger: homeassistant.util.package Source: util/package.py:96 First occurred: 10:46:27 (9 occurrences) Last logged: 10:54:39

Unable to install package lxml==4.7.1: error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [3 lines of output] Building lxml version 4.7.1. Building without Cython. Error: Please make sure the libxml2 and libxslt development packages are installed. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.

Instalation via HACS works fine, but creating binary sensor makes error. May be related with Issue #9? Thank you for your help and good work.

ofinka82 commented 1 year ago

try use only sensore :-)

like this:

# Example configuration.yaml entry for showing current HDO state and HTML for rendering a time schedule
sensor:
  - platform: predistribuce
    receiver_command_id: 508