Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

FlowAWTRIX 3

Low Battery Notifications

On an AWTRIX display
Low Battery Notifications shown on an AWTRIX display
Low Battery Notifications · by Galadril

Use with Domoticz

This script checks all devices for low battery levels every hour and sends notifications to the AWTRIX3 device for devices below 20%.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Smarthome
Includes
Flow

Runs on

  • Does not run on 32×8 (TC001 & DIY) Made for AWTRIX 3.
  • Does not run on 52×16 (TC002) Made for AWTRIX 3.
  • Runs on 32×8 with AWTRIX 3 (TC001 & DIY)
Download flow

Follow the author’s setup instructions below.

Flow description

⚙️ Script Activation:

The script is active by default, as indicated by active = true.


⏰ Trigger:

The script runs every hour, as specified by the timer:
timer = { 'every 1 hours' }.


📝 Logging:

Uses the logging level domoticz.LOG_INFO, with entries marked by "AWTRIX3_BATTERY" for easy identification.


🚀 Execution:

When triggered, the script performs the following actions:

🔍 Condition Check:
  • Filters devices with a battery level below 20%.
  • Ignores devices without a battery attribute or those with invalid battery readings.
🔄 Action:
  • Sends notifications for devices with low battery levels:
    • Battery < 20%: Uses a specific icon (ICON_BATTERY_20) and sends a warning.
    • Battery < 10%: Uses a critical icon (ICON_BATTERY_10) and sends a critical warning.
  • Formats the notification as a JSON payload containing the device name and icon.
  • Sends the payload to the "AWTRIX3 - Send Notification" device:
    • ✅ If the AWTRIX3 device is found: Sends the notification.
    • 🛑 If the AWTRIX3 device is not found: Logs an error.

More information:

Domoticz: www.domoticz.com

Domoticz AWTRIX3 Plugin: https://github.com/galadril/Domoticz-AWTRIX3-Plugin

More flows for Domoticz or Smarthome

Something wrong with this flow? Report it.