[XTension] Hue.py - fix you missed the last time
James Sentman
james at sentman.com
Thu Apr 13 10:44:44 EDT 2023
I’m not sure what distracted me from that ;) But I’ve just finished adding it to the code so it will definitely be there in the next version. The main problem is probably that I don’t actually have any temperature sensors attached to my hub and so I just don’t think about them as much.
I also found and fixed a problem with the Temperature Format popup. The JSON describing the interface was somehow missing the key, so the temperature format is currently stuck on F, if anybody needs to display C before the next beta build drop me a note off the list I can send a development build.
> On Apr 12, 2023, at 5:14 PM, Brendan O'Dowd <bodowd at yahoo.com <mailto:bodowd at yahoo.com>> wrote:
>
> Here is a fix you missed in the last update. Lots of updates from HUE sensors with temperature updates - in hue.py the check for temperature being the same compared 2 floats - but this does show a difference even when it is only due to the limitations of the float size. I changed the check like this:
>
> # if float( currentValue) != float( self.getValue()):
> if abs(float( currentValue) - float( self.getValue())) > 0.01:
>
> And it seems to work.
>
>
> I had asked you about getting the temperatures in C rather than F and that may have distracted you from this fix. Sorry!
>
Thanks,
James
James Sentman http://www.PlanetaryGear.org <http://www.planetarygear.org/> http://MacHomeAutomation.com <http://machomeautomation.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://machomeautomation.com/pipermail/xtensionlist_machomeautomation.com/attachments/20230413/16b2ea8c/attachment.htm>
More information about the XtensionList
mailing list