Giter VIP home page Giter VIP logo

Comments (9)

tomvanswam avatar tomvanswam commented on August 20, 2024

Could you post the card's config, and a screenshot of the developertools, states page, filtered for one of the value_sensors configured in the card?

from compass-card.

UweLoyal avatar UweLoyal commented on August 20, 2024
type: custom:compass-card
indicator_sensors:
  - sensor: input_number.Test_Windrichtung
    indicator:
      type: arrow_inward
      color: red
value_sensors:
  - sensor: sensor.Test_Windgeschwindigkeit
    decimals: 1
  - sensor: sensor.Test_Windboeengeschwindigkeit
    decimals: 1
compass:
  circle: null
  east:
    show: true
  west:
    show: true
  south:
    show: true
  north:
    show: true
  language: de

image

image

image

Working now with a trick, adding 0.001 to value!
;-)

Rgds
Uwe

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

Thanks, if possible, please screenshot this Home-Assistant page (see my screenshot below)
Which shows the following sensors at the moment the card shows invalid:

  • sensor.Test_Windgeschwindigkeit
  • sensor.Test_Windboeengeschwindigkeit
    image

P.S. I edited you post to format the yaml config.

from compass-card.

UweLoyal avatar UweLoyal commented on August 20, 2024

For your Info, Iā€˜m using ioBroker!

from compass-card.

UweLoyal avatar UweLoyal commented on August 20, 2024

In ioBroker you can see in objects the 0 instead of invalid.
Send you above.

image

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

For your Info, Iā€˜m using ioBroker!

So if I'm understanding correctly, you're using ioBroker with something like lovelace adapter for ioBroker and added the compass-card to that? That is something that I wouldn't have thought of people using the card like that.

I pinpointed the bug, this is only happening when you add a configuration option for a sensor.
When you remove the decimals: 1 line the card will show 0. However then you might end up with more decimals then you'd like.

from compass-card.

UweLoyal avatar UweLoyal commented on August 20, 2024

When removing decimals: 1 you will get an uprounded value!
0,4 km/h --> 1 km/h
The problem is ony the 0 !

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

I understand.

In my dashboard the 0 value works, so I could not figure out why it was not working for you. But I am not rounding the value and then it shows 0, so the bug is somewhere in dealing with the decimals, or even other configuration settings beloning to the sensor that has value 0.

Bug is noted and I'll look into finding a fix.

from compass-card.

tomvanswam avatar tomvanswam commented on August 20, 2024

I'm not able to reproduce this. So I will close this issue.

from compass-card.

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.