So I have a rather large number of VDs (Virtual Devices) that contains information for my HA system. It's VDs like "TOD", or "Dayname" or "VacationFrom" and so on. Now I realize that they do not always update. The number of examples I have is large, close to all VDs actually. I have tried to have them as multiswitches, and as sensors. Neither get auto refresh.
Now the "Dayname" VD actually seems to update itself when I hit refresh symbol in the upper right corner.
But the "VacationFrom" VD will not update the value with refresh, this one needs a rebuild from inside the imperhome plugin config page, and then a full reload (stop app in tablett, and start it up from scratch) to get the latest value. Now this case might be special since I use "&nhs.setDeviceString" to set the value on this VD (I do not set the value, just the string!) so maybe something else is needed in my code (setting the value also, not just the string).
However, it seems I do not trigger a refresh of the value/string of my VDs - so how do I do that? What is the magic that makes updating the value in the tablet app? What am I doing wrong and missing?
Now the "Dayname" VD actually seems to update itself when I hit refresh symbol in the upper right corner.
But the "VacationFrom" VD will not update the value with refresh, this one needs a rebuild from inside the imperhome plugin config page, and then a full reload (stop app in tablett, and start it up from scratch) to get the latest value. Now this case might be special since I use "&nhs.setDeviceString" to set the value on this VD (I do not set the value, just the string!) so maybe something else is needed in my code (setting the value also, not just the string).
However, it seems I do not trigger a refresh of the value/string of my VDs - so how do I do that? What is the magic that makes updating the value in the tablet app? What am I doing wrong and missing?
Comment