Tried it with @avgTemp being a number instead of decimal, but it’s still not updating. It looks like the only way I can change the temperature of a simulated temp sensor is by doing it manually with the +/- buttons in the tile.
Any other ideas on how to get a global variable (average temperature) to show up in a device, so that I can display it in SmartTiles?
I can change the value of the simulated temp sensor if I use Level% instead of temperature, which is odd (it also truncates the decimal part of @avgTemp, instead of rounding it correctly).
Anybody know why this is? Is there a new DTH for the simulated temp sensor that fixes this, or is it an issue with CoRE?
I expect that a virtual temp sensor is not meant to be set… it’s a sensor not an actuator…
So I’m not sure it’s a bug, but you are just trying to use it for something it’s not intended, if you can find a DTH for it, it should be fairly easy to add the functionality to set the temperature as you would with a Thermostat DTH, rather than a temperatureMeasurement DTH
I suspect then in the absence of an official setTemperature, that setLevel is used, and I have a feeling I remember seeing this elsewhere, possibly with how Alexa works, set level and temperature are inter-operable…
If you can find the DTH for the device you are using, I could update it though to include whatever CoRE is parsing…
setTemperature(value) is supported in the DTH, but doesn’t exist in CoRE probably for the same reason as detailed in my previous post… you could add the command yourself, but updating CoRE will remove this. I think your best option is just to use setLevel, which I assume isn’t an issue?
also on my hunt… you may want to look at the below as there are a couple of smartApps doing exactly what you want to do:
You guys are alright, no matter what everyone says about you.
The set level approach seems to be working ok, so I’ll probably just run with it…especially since both CoRE and SmartTiles are going to be obsolete sooner than later with webCoRE and Action Tiles just around the corner. And, who knows how they will deal with it.