Heuristics for a Numeric Device State ?

Posted on
Wed Aug 11, 2021 12:45 pm
SearchCz offline
Posts: 175
Joined: Sep 18, 2019

Heuristics for a Numeric Device State ?

In my control pages, I use a thermometer graphic for my temperature sensors. I am trying to tweak them so that the mercury rises according to the temperature. I've created a set of graphics for this purpose and named them "ztemp+.png" and a whole bunch of "ztemp+#.png" where # is a numeric value like 0,2,4,6,8 etc.

But the only graphic that displays is "ztemp+.png". My temperatures are currently 27.4 and 25.6, so I was hoping to see ztemp+26.png make an appearance. I wonder what I got wrong about this. Any help is appreciated.

Posted on
Wed Aug 11, 2021 12:57 pm
Different Computers offline
User avatar
Posts: 2575
Joined: Jan 02, 2016
Location: East Coast

Re: Heuristics for a Numeric Device State ?

I bet the value needs to match the file name number exactly.

Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP

Posted on
Wed Aug 11, 2021 5:24 pm
jay (support) offline
Site Admin
User avatar
Posts: 18243
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Heuristics for a Numeric Device State ?

@Different almost got it - the heuristics only work with integers.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Aug 11, 2021 6:05 pm
SearchCz offline
Posts: 175
Joined: Sep 18, 2019

Re: Heuristics for a Numeric Device State ?

I think it was the decimal values that derailed me. I wrote a little script to convert your temperature to an integer and all is well now. Suppose maybe I should be rounding the value off. Tomorrow

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron