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.

Today's Low NaN °C

See original GitHub issue

I’ve stated getting this just recently: Today’s Low NaN °C

on my card using: entity_daytime_low: sensor.bom_today_min

This is the one I use, the other is commented out. Not sure on the differences between the two, but both seem to give me the error.

      bom_today_min:
        value_template: >
          {%- if states('sensor.suburbname_temp_min_0') == 'n/a' -%} 
            {{ state_attr('sensor.today_temp_bom', 'min_value') }}
          {% else %}
            {{ states('sensor.suburbname_temp_min_0') }}
          {% endif %}

bom_today_min is “Unknown”

sensor.suburbname_temp_min_0 is “Unknown”

Is this just a problem with the BOM data? Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidFW1960commented, May 13, 2021

The new average is just showing as a sensor now, not in the average integration anymore image The min and max won’t have any _2 because they are template sensors never part of the average integration… They are extracted as attributes of sensor.today_temp_bom which is created by average (or statistics)

0reactions
DavidFW1960commented, May 27, 2021

Maybe… If it happens try and see what state all the entities have… max, min and the average. But there’s nothing wrong with your code…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use nan and inf in C? - Stack Overflow
You can test if your implementation has it: #include <math.h> #ifdef NAN /* NAN is supported */ #endif #ifdef INFINITY /* INFINITY is...
Read more >
What is NaN in C programming? - Quora
C, although it is a high-level language, provides access to some fundamental low-level concepts such as memory addresses and dynami. Continue Reading.
Read more >
Nan, Thailand 7 day weather forecast - WeatherWX.com
Today Sunny, 0001 sunny. Lo: 16°C60°F Hi: 30°C85°F. Sunny Tuesday, temperatures as high as 30°C85°F low temperature around 16°C60°F wind out of the...
Read more >
NaN in C++ - What is it and How to Check For it?
Another way to check for NaN is by using “isnan()” function, this function returns true if a number is complex else it returns...
Read more >
Writing program for NaN condition - Arduino Forum
I'm trying to write a program to turn on a pump if the temperature sensor I'm reading fails and gives a nan condition....
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