# Awtrix NG linked with Homey via Berry script

**URL:** <https://community.homey.app/t/awtrix-ng-linked-with-homey-via-berry-script/161296>\
**Category:** Devices\
**Tags:** advancedflow\
**Created:** [October 25, 2026, 10:59am UTC](https://community.homey.app/t/awtrix-ng-linked-with-homey-via-berry-script/161296 "2026-10-25T10:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amersfoort](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Amersfoort](https://community.homey.app/u/Amersfoort)\
**Post date:** [October 25, 2026, 10:59am UTC](https://community.homey.app/t/awtrix-ng-linked-with-homey-via-berry-script/161296/1 "2026-10-25T10:59:17Z")

</div>

There is a nice Homey app to send data from Homey to Awtrix: [[APP][Pro] AWTRIX - Connected Smart Clock for your Smart Home](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888)

I wanted a two-way link between the Homey Sonos app and Awtrix NG. I eventually achieved this by using a Berry script on my Ulanzi TC002, running Awtrix NG 1.2.2, showing Sonos data and controlling Sonos from Awtrix

Demo with dummy data:  
 ![Awtrix NG Berry](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b92b236344b9a19cee0de2e2b66bde3cd3a9e6e.gif)  
Configurable App parameters:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8a092a4068cc14255a8691ba62a9399c7e330680.png)

Capabilities with the Awtrix display:

- Song title and artist of the track currently playing on Sonos
- Album art
- Timed lyrics (no licensing needed)
- Playback progress (time elapsed) and total duration (time and progress bar)
- Adjusting Sonos volume (using the rotary knob)
- Skipping to the next or previous track in a Sonos playlist, or stopping playback
- Parameter settings for buttons and text colors

The Awtrix app launches automatically as soon as Sonos begins playing a playlist.  
I did come across solutions that rely on HTTP commands, but those would require Awtrix to poll Homey every single second to check if Sonos is playing something. Instead, I opted for an MQTT-based solution; while the setup is slightly more complex, it places less of a load on Homey.

What you need:

- Homey MQTT setup
- Activated MQTT on Awtrix
- An Advanced Flow that processes messages to and from Awtrix and Sonos
- A Berry script (generated by Claude AI)

If you’re interested, I can share the Advanced Flow and the Berry script (suitable for Awtrix NG on 52x16px display)

---

<div class="post-metadata">

**Author:** ![Bckp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bckp/32/134101_2.png) [@Bckp](https://community.homey.app/u/Bckp)\
**Post date:** [October 25, 2026, 11:17am UTC](https://community.homey.app/t/awtrix-ng-linked-with-homey-via-berry-script/161296/2 "2026-10-25T11:17:26Z")

</div>

I can make flow card message received in theory, you could send json to homey awtrix app, but then you would need to parse it and perform actions… not sure if homey is best for this, but homeyscript may be 😃

Edit: I prepared version with when msg received, it may be usefull for all.

---

<div class="post-metadata">

**Author:** ![Amersfoort](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Amersfoort](https://community.homey.app/u/Amersfoort)\
**Post date:** [October 25, 2026, 11:25am UTC](https://community.homey.app/t/awtrix-ng-linked-with-homey-via-berry-script/161296/3 "2026-10-25T11:25:07Z")

</div>

What could be done to make the steps above easier, and without burdening Homey with 24/7 JSON messages.  
Through many iterations, Claude now requires a 1,000-line Berry script to achieve this.
