Skip to content

New Flows can now belong to an account. Your old edit link keeps working — open it and attach the flow to an account, and you can edit it from any browser you sign in with.

Sign in
Unclaimed

This flow was submitted before accounts existed, so nobody owns it yet. If you submitted it, open the edit link you were given — it still works — and you can attach the flow to an account from there. There is no deadline, and attaching it retires the link for good.

Tesla Powerwall Battery shown on an AWTRIX display
Fig. 1 Tesla Powerwall Battery, as Team Super Panda runs it.

Tesla Powerwall Battery

Publishes the current Powerwall battery charge and status via MQTT, including a dynamic icon that reflects charge level and battery mode.

Specifications
System Home Assistant
Firmware AWTRIX 3
Topic Smarthome
Built by Team Super Panda
File rM3xoBwBO8Lz.yaml · 2.1 KB
Icons
Published 27 Aug 2025 · updated 27 Aug 2025
Downloads 22

Long Description

This automation monitors your Tesla Powerwall battery and sends updates via MQTT. It triggers when Home Assistant starts and whenever the battery power sensor changes.

1. Battery Charge and Power Status

  • Reads the battery state of charge (sensor.powerwall_3_percentage_charged) and rounds it to the nearest integer.
  • Reads the battery power (sensor.powerwall_3_battery_power) to determine if the battery is:
    • Charging (power < 0)
    • Discharging (power > 0)
    • Idle (power = 0)

2. Dynamic Icon Selection

  • Based on the charge level and battery mode, a numeric icon ID is selected.

  • Icon numbers used in this automation are:

    Charging mode icons:

    32047, 32049, 32050, 32051, 32052, 32053
    

    Discharging mode icons:

    32059, 32058, 32057, 32056, 32055, 32054
    

    Idle/Other mode icons:

    13735, 13732, 13731, 13725, 13734
    
  • To select or verify these icons, open the Awtrix web interface in your browser using the device's IP address. Navigate to the Icons page in the GUI, and you can browse or copy the numeric icon IDs directly. This ensures you are using valid icons that exist in your Awtrix installation.

  • Initially didn't work unless I downloaded them myself hence why I haven't included them below.

3. MQTT Payload Construction

  • Chooses the correct state for the icon
  • Publishes a status bar on the bottom

4. Automation Mode

  • Runs in single mode, ensuring updates are sent sequentially without overlap.

Effectively, this automation provides real-time battery status updates, including charge level and mode, through MQTT, with visual feedback via the selected icons.

Shout out to: https://flows.blueforcer.de/flow/QE6B5QWRoMq0 for the inspiration.

More flows for Home Assistant or Smarthome

Something wrong with this flow? Report it.