Being notified if the battery of a sensor is below a certain level

Being notified if the battery of a sensor is below a certain level

Hi guys,

In this article we saw how to configure a Threshold sensor to observe a numeric value.

Today I'm going to introduce how Home Assistant can help us to monitor the battery level of a door / window Z-Wave sensor and how to be notified before the battery goes fully discharged.

Hardware configuration

  1. Aeotec Z-Stick Gen5+. It's a Z-Wave gateway to build up and manage your Z-Wave network.
  2. Aeotec Door/Window Sensor 7 Pro. It's a Z-Wave sensor ables to detect if door or window opens.

Software configuration

  1. Home Assistant. I'm currently running version?2022.9.4.
  2. Z-Wave JS integration?configured in Home Assistant. This integration allows you to control all the Z-Wave devices within your network via?Home Assistant.
  3. As soon as the?Aeotec Door/Window Sensor 7 Pro is added to your Z-Wave network, it exposes the following entity: binary_sensor.yoursensor_access_control_window_door_is_open

Home Assistant steps

Please watch the video below for the steps needed as well as the Automation?code to write in order to monitor the battery level and get notified if it goes below a certain level:

And this is the notification I've got on my smartwach, I know I must replace the battery! ??

No alt text provided for this image

Some specifics about the code / steps above

  1. The trigger of the automation is based on the changing state to ON of the Threshold sensor configured and monitored by the automation.
  2. The action to sending the notification to my smartphone, with the indication of the sensor's battery level, is repeated every 24 hours till the state of the Threshold sensor is ON.
  3. You can change this delay time at your convenience, of course.
  4. As soon as the battery of the sensor will be replaced, the state of the Threshold sensor becomes OFF and the action will not be executed anymore.

Thank you for reading and watching. ?? I hope you have enjoyed this article and video too.

I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below.

Your feedbacks will be very appreciated!

Meanwhile,?if you liked this article share it or?subscribe?to my newsletter?about?Home Assistant?to read all previous episodes and still up to date on latest news.

要查看或添加评论,请登录

社区洞察

其他会员也浏览了