I have a problem with all my battery operated devices. Once they run out of battery, I have to exclude / include them to get them working. My question is indirectly linked to this:
I have an outside temperature measurement (battery operated sensor). This measurement is used in a lot of PLEG / LUA / scenes etc. Each time it runs out of battery, I have to go through the program of my 2 Vera Plus controllers to find out where it is used (no cross references available) and replace it. To avoid this, I would like to copy the value to a virtual device, and use that one in all of my logic. If battery is replaced, I only have to change 1 link instead of a lot.
I looked into averaging temperature apps which could do the trick, but they do not seem to work in UI7.
Seems crazy that you need to exclude/include to get them to work again. But I think you might be able to use @futzle’s virtual temperature sensor here: http://forum.micasaverde.com/index.php/topic,7549.msg48644.html#msg48644 It’s pretty old so you may need to update it. That sensor is trying to get the value from an http link (as far as I recall), but you could easily modify it to pull from a Zwave device.
There used to be a plug-in called Variable Container which allowed you to store variables. I see it is no longer supported however…
How about using an exported PLEG Condition to store it? That would let you abstract it away from the actual device, and each time you would just have to update the Condition’s expression. Other PLEGs and LUA could read that condition…
Ditto what Don Phillips said. MultiString is a gem. You can define variables and textual names for up to 5 variables, plus you can add more instances if you need more variables. In addition to that you can also do this:
My example is to track the hours my blower has run since the last filter change, and how many times my 2 battery door sensors were triggered open. This is updated within PLEG:
Best Home Automation shopping experience. Shop at Ezlo!