Heuristics for a Numeric Device State ?

Posted on
Wed Aug 11, 2021 12:45 pm
SearchCz offline
Posts: 172
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: 2549
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.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Wed Aug 11, 2021 5:24 pm
jay (support) offline
Site Admin
User avatar
Posts: 18220
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: 172
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 5 guests

cron