For the complete documentation index, see llms.txt. This page is also available as Markdown.
Battery tracking
Stay updated on low battery and devices that do not report.
Every hour I run a homeyscript to check battery status, and look for devices that have not reported last 24 hours. If the list of affected devices do differ from previous run, it will send a battery status report to a Telegram group like this:
Preparing better logic variables
First create two better logic string variables, batterytext and batterystatus.
It does not matter what value you set.
Create a homeyscript
Create the neccessary flows
You will need two flows. One flow that runs the battery script regularly:
And one script that sends the prepared battery status message to telegram when it is updated:
The second action of the script above is to update a dakboard status display with the same message.