Does anyone know LUA or LUUP well enough to help Vera post the variable’s state to home assistant whenever the door is unlocked? I noticed my lock’s battery dropped like 5% in the last day.
I set up a temporary pin code on home assistant, and I use that variable to auto clear the code after it’s been used.
Hey, not really, it doesn’t show attributes like the lock code or anything. I’m trying to get Vera to POST the variable value to home assistant, and I do not know LUA/LUUP at all…
Nevermind, I set up a variable container in Vera, and every time the lock is unlocked by a pin code, it updates the container with the usercode and battery level. That way it doesn’t poll my lock too often and I pointed my rest sensor to the container
how did you get this to work? i can’t for the life of me get vera to update the variable string (i’m using multistring since variable container apparently no longer exists)…
Hey, sorry for the delay, I might have to be a bit vague here to no give out my lock info to the internet, but I created a rest command (post) using the following URL type:
Clear lock code:
http://[Local IP]:3480/data_request?id=action&DeviceNum=[Lock Device Number]&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=ClearPin&UserCode=[Slot Number on the Lock to Clear]
Set Lock Code:
http://[Local IP]:3480/data_request?id=action&DeviceNum=[Lock Device Number]&serviceId=urn:micasaverde-com:serviceId:DoorLock1&action=SetPin&UserCodeName=[Code User Name]&user=[Pin Code Slot]&newPin={{ templockcode }}
To See the Last one Used:
http://[Local IP]:3480/data_request?id=variableget&DeviceNum=[Container Number - In my case, 24]&serviceId=urn:upnp-org:serviceId:VContainer1&Variable=Variable1
From the above quote it would suggest you have been able to pass on an HA entity state value to VERA. I’m trying to accomplis the same using the following example:
The only result I get in vera is {{states(“sensor.br_humidity”)}} as value and not its true value. To confirm the http works, I put in a dummy value for humidity which is getting across. Hence I can only suspect it may be a syntex error. If so where? Any help would be appreciated.