Skip to content

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

Sign in
Clock with weather and electricity price bar shown on an AWTRIX display
Clock with weather and electricity price bar, as TSA3000 runs it.

Clock with weather and electricity price bar

Time, outdoor temperature and a weather icon, with the current electricity price as a coloured bar along the bottom row

AWTRIX NG Scripts AWTRIX NG
About this flow
Specifications
System AWTRIX NG Scripts
AWTRIX version AWTRIX NG
Topic Smarthome
Built by TSA3000
File BVxjfPPqTRpo.ax · 5.0 KB
Icons
Published 12 Sep 2026 · updated 12 Sep 2026
Downloads 1
Is this your flow?

If you created this flow, open your saved edit link to add it to your account. You can then manage it whenever you sign in. Adding it to your account replaces the edit link.

Flow description

A clock app for AWTRIX NG written as a Berry script. The time comes from the clock's own NTP sync, so it keeps running if Home Assistant goes down. Outdoor temperature, weather and the electricity price arrive over MQTT.

Layout

  • Time on the left
  • Outdoor temperature, right aligned
  • 3 pixel wide weather icon on the right edge
  • Price bar on the bottom row

Price bar

One pixel for every started 25 öre/kWh, growing from the left.

  • Pixels 1-4 green, up to 100 öre
  • Pixels 5-8 orange, 100-200 öre
  • Pixels 9-32 red, over 200 öre

0 öre or less still lights one green pixel. 800 öre or more fills the whole row.

Setup

  1. In the AWTRIX web UI go to Scripts, create a script called ClockTemp and paste the code.
  2. Publish these MQTT topics with retain on:
    • awtrix/outdoor/temp temperature, e.g. 15
    • awtrix/outdoor/cond Home Assistant weather state, e.g. partlycloudy
    • awtrix/elpris price in öre/kWh, e.g. 35.82
  3. Topic names and the clock, temperature and bar colours can be changed in the script settings.

Home Assistant automations and a Node-RED flow for the MQTT feeds are in the repo: https://github.com/TSA3000/awtrix-ng-clock

No icons to install, the script draws everything itself.

At -10 degrees and colder the temperature touches the clock digits.

Tested on AWTRIX NG 1.1.0.

Community

Discussion 0

Ask a question, suggest a change or share how you use it.

No comments yet. Start the conversation.

More flows for AWTRIX NG Scripts or Smarthome

Something wrong with this flow? Report it.