Coder Social home page Coder Social logo

home-assistant-blueprints's People

Contributors

dvandonkelaar avatar jschwerdlin avatar

Watchers

 avatar

home-assistant-blueprints's Issues

Solar radiation unit of measurement in 'lx' in stead of 'lux'

Hi

Thank you for creating this blueprint :)

I'm using it a couple of months now, and just added a light intensity sensor, which output 'lx' as unit of measurement. The sensor value sent to Weaher Underground isn't converted to W/m2.

I saw in the following line:

https://github.com/dvandonkelaar/home-assistant-blueprints/blob/d7d72896f5b99a91df6602c96dadc21eb08c022f/wunderground_upload.yaml#L238C9-L238C9

that you have an if-statement that checks for the unit 'lux'. When I change the unit of measurement of my sensor to 'lux', trying to match your if-statement, Home Assistant throws the following error in the log:

Entity sensor.bresser_lichtintentiteit (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'lux' which is not a valid unit for the device class ('illuminance') it is using; expected one of ['lx']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

Changing it back to 'lx' the error obviously goes away, but then the blueprint does not convert the value of my sensor anymore.

Can you fix it?

Bedankt en groeten,
Patrick

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.