Nice
Thanks for this! Simple and easy… exactly what I needed.
Yes, but with Lovelace out really consider if you need to create such template sensors now…
You can easily get full battery level GUI display and notifications without a single template sensor and the burden that brings.
Please do tell how?
Stuff like this drives me crazy! I love Home Assistant, and I easily configured a template and got its working to check battery of my Z-wave devices but … SmartThings gives me battery by default and Motion as sensors that are usable as triggers. SmartThings provides these items to the Integration as well! I am tempted in just using SmartThings as a Z-wave hub of sorts until this is all sorted out. If we can pull all of these other sensors when we join a device, Battery and Motion should also be available. No Wonder Tasmota is so popular with the HA crowd… Cheers!
Is there a way to refresh the battery level? For instance my Schlage door lock died but the battery level was showing as 68%.
So now the state is “dead” but the battery level still shows at 68%…
In the zwave control panel select your lock and then the lock.whatever
entity, and select Refresh Entity
that will update the battery level.
Do you need to manually refresh the entity to update the battery level or is this just when it fails to refresh on its own?
Thanks.
I believe you can modify the cache to have it refresh on it’s own. You’d have to add the RefreshOnWakeUp
flag.