question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-numeric sensor states not working

See original GitHub issue

Hey, I am trying to setup Non-numeric sensor states, but getting NaN no matter what sensor or state_map I use. Any idea why?

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.bedroom_motion
    name: bedroom
  - entity: sensor.hall_motion
    name: hall
  - entity: sensor.living_room_motion
    name: living room
    color: green
name: last hour
hours_to_show: 1
points_per_hour: 60
update_interval: 30
aggregate_func: max
line_width: 2
smoothing: false
state_map:
  - value: 'False'
    label: clear
  - value: 'True'
    label: motion

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
automation4homecommented, Oct 21, 2019

@kalkih Man that was it. Sorry I didn’t catch it. Thank you!!

0reactions
kalkihcommented, Oct 21, 2019

Whoops, my bad, here: https://github.com/kalkih/mini-graph-card/issues/169. Can you try opening the browser developer console and check for any messages in there? Open the console then refresh the page which you are having the issue on.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity is non-numeric when state is 'unknown' using built in ...
When the sensor does start returning a numeric value for the state which the Gauge Card can display, it starts working again.
Read more >
Lovelace UI gauge card non-numeric sensor error · Issue #2074
Description of problem: I use the Lovelace UI Gauge card to show the SMA solar current power. This sensor has a state in...
Read more >
show sensors-other - IBM
The show sensors-other command provides the state of sensors that have true or false (nonnumeric) values. Which sensors the appliance provides depends on ......
Read more >
WORK PRODUCT REPORT - Social Security
When the State technical team has a problem with the SCHIP-I connection or application, they should call the SSA National Help Desk at...
Read more >
-C H A P T E R - Oracle Help Center
Environmental Sensor Properties. In the following tables, some fields can be filled with " -- " or be blank in the following circumstances:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found