Hi
Is there any way to check low battery status and send it to Telegram?
Unfortunately low battery notification are not included into "warnings" or "errors", so I can't sent it to Telegram using "Notification Filtering" app
Is there any other way? Looking all events by eyes in web interface is not a solution
How to send notifications about low battery to Telegram?
Re: How to send notifications about low battery to Telegram?
Have a look in module MxBatteries. Maybe this is what you need.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v4.1.2 from 2023-10-18 03:34:26 +0300
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me ZW0700 7.20.00 07.38/1766938484 1025/257
Z-Way version v4.1.2 from 2023-10-18 03:34:26 +0300
Re: How to send notifications about low battery to Telegram?
Hi!
I use Easy Scripting for all notifications . You can set up any case for notification.
In this case, the telegram bot sends a notification if the battery is less than 20 %
I use Easy Scripting for all notifications . You can set up any case for notification.
In this case, the telegram bot sends a notification if the battery is less than 20 %
Code: Select all
### ZWayVDev_zway_2-0-128
if (vdev("ZWayVDev_zway_2-0-128").value() < 20) {
var req = {method: "GET", async: true}
req.url = "https://api.telegram.org/bot5071110907:AAE49V-Xt2Y8WrNvBaPxbAX3luuHcw_Rkzc/sendMessage?chat_id=-781159907&text=Sensor Battery: " + vdev("ZWayVDev_zway_2-0-128").value() + " %"
http.request(req)
}
-
- Posts: 1
- Joined: 11 Jan 2022 16:59
Re: How to send notifications about low battery to Telegram?
Telegram battery bot. Monitors laptop battery level and sends a message on Telegram when it drop below specified threshold.
Re: How to send notifications about low battery to Telegram?
Vitaly, Is there any way to check all ZWayVDev_zway_***-0-128 devices?aivs wrote: ↑11 Jan 2022 14:10Code: Select all
### ZWayVDev_zway_2-0-128 if (vdev("ZWayVDev_zway_2-0-128").value() < 20) { var req = {method: "GET", async: true} req.url = "https://api.telegram.org/bot5071110907:AAE49V-Xt2Y8WrNvBaPxbAX3luuHcw_Rkzc/sendMessage?chat_id=-781159907&text=Sensor Battery: " + vdev("ZWayVDev_zway_2-0-128").value() + " %" http.request(req) }
Not to name them literally like 2-0-128, 3-0-128, 4-0-128, 5-0-128, but run all over 0 to 100, find all battery devices and check their battery status?