# \[APP\]\[Pro\] AWTRIX - Connected Smart Clock for your Smart Home

**URL:** https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888
**Category:** Apps
**Tags:** app, homey-pro
**Created:** [October 15, 2023, 6:42pm UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888 "2023-10-15T18:42:24Z")
**Posts on this page:** 20
**Page:** 5

<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: [March 22, 2024, 9:33pm UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/81 "2024-03-22T21:33:07Z")

</div>

should be fixed now… i need to release older version due Awtrix mdns changes, but Athom is not supporting 2 branches… right now, you should see 1.2.2

See: [AWTRIX 3 | Homey](https://homey.app/en-cz/app/de.blueforcer.awtrixlight/AWTRIX-Light/test/)

---

<div class="post-metadata">

### Author: ![HScholing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hscholing/32/106813_2.png) [@HScholing](https://community.homey.app/u/HScholing)
#### Post date: [May 19, 2024, 4:50pm UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/82 "2024-05-19T16:50:39Z")

</div>

Any updates about the use of icons? When using the experimental card I only get a message that there are no icons but I have a lot of them in the Icon folder on the Ulanzi device. I switched my setup from Home Assistant to Homey and did no factory default reset. Can this be an issue?

---

<div class="post-metadata">

### Author: ![HScholing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hscholing/32/106813_2.png) [@HScholing](https://community.homey.app/u/HScholing)
#### Post date: [May 20, 2024, 7:51am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/83 "2024-05-20T07:51:56Z")

</div>

Just a quick update: running the testversion of the app now. No difference, still no icons visible.

---

<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: [May 20, 2024, 8:42am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/84 "2024-05-20T08:42:46Z")

</div>

Can I find you on slack? So we can talk there and give it some tests…

---

<div class="post-metadata">

### Author: ![HScholing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hscholing/32/106813_2.png) [@HScholing](https://community.homey.app/u/HScholing)
#### Post date: [May 20, 2024, 9:35am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/85 "2024-05-20T09:35:38Z")

</div>

@Bckp Yes, just created an account on Slack and joined the channel

---

<div class="post-metadata">

### Author: ![Christian\_Noack](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_noack/32/104615_2.png) [@Christian\_Noack](https://community.homey.app/u/Christian_Noack)
#### Post date: [May 26, 2024, 3:33pm UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/86 "2024-05-26T15:33:22Z")

</div>

@Bckp:  
Hello Radovan,  
just a quick question. I know that the Ulanzi speakers are horrible 🙃 … but I would like to play a sound for a notification.  
I’ve read everything up and down here, but haven’t found anything. When I use the “Flow card” → “Play Melody”, enter the file name, for example alert.txt, and then save this file via the file system under “Melody”, nothing happens. I have also tried to work with a path within the flow card. Can you tell me what I am doing wrong?

Best regards  
Christian

P.S: I created a pure TXT file as a test and copied a song from this page into it: [RTTTL Songs – Laub-Home Wiki](https://www.laub-home.de/wiki/RTTTL_Songs)

---

<div class="post-metadata">

### Author: ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)
#### Post date: [May 30, 2024, 8:47am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/87 "2024-05-30T08:47:45Z")

</div>

As being a new user (yesterday I received my Ulanzi-clock) also would like to know if playing a sound is possible 🙂

Also tried some things but unfortunately not a sound (only a beep when turning on)

---

<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: [May 30, 2024, 9:32am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/88 "2024-05-30T09:32:07Z")

</div>

Do you use Awtrix 3.0 firmware?  
It is possible to play RTTTL sound; I think it is noise. The display is nice but the sound is horrible. Please see [https://blueforcer.github.io/awtrix3/#/sounds](https://blueforcer.github.io/awtrix3/#/sounds)

---

<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: [May 30, 2024, 9:43am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/89 "2024-05-30T09:43:48Z")

</div>

Hello, display is capable of making noise, cant call it sound, current app version does have bug, and sound is not working… working on fix atm…

---

<div class="post-metadata">

### Author: ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)
#### Post date: [May 30, 2024, 9:44am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/90 "2024-05-30T09:44:46Z")

</div>

> [@Amersfoort](#):
>
> Do you use Awtrix 3.0 firmware?

Yes, version 0.96

> [@Amersfoort](#):
>
> It is possible to play RTTTL sound; I think it is noise. The display is nice but the sound is horrible. Please see [https://blueforcer.github.io/awtrix3/#/sounds](https://blueforcer.github.io/awtrix3/#/sounds)

Seen it and read it more times then I would like to count now. Still cannot get a sound out of it.  
In the settings I noticed there is a sound on/off and a volume control. Volume control says n/a.

And while typing I read the message about a bug 🙂

---

<div class="post-metadata">

### Author: ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)
#### Post date: [May 30, 2024, 9:46am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/91 "2024-05-30T09:46:11Z")

</div>

Also I think you are more creative with this kind of things 🙂 Any tips / hint how to get the most out of it 😁

---

<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: [May 30, 2024, 9:58am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/92 "2024-05-30T09:58:07Z")

</div>

In homey app is bug, that prevents sound of playing… i have fixed it, will release new test version soon, just few more stuff i want to fix 🙂 i hope will get few days off, to get this some much needed love 😃

---

<div class="post-metadata">

### Author: ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)
#### Post date: [May 30, 2024, 9:59am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/93 "2024-05-30T09:59:14Z")

</div>

👍

---

<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: [May 30, 2024, 9:59am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/94 "2024-05-30T09:59:35Z")

</div>

Play melody expects RTTTL, not the file… and when fix is released, it will even play from display 😃

---

<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: [May 30, 2024, 10:04am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/95 "2024-05-30T10:04:42Z")

</div>

Using it for:

- showing news massages with RSS feed Homey app
- showing in- (thermometer) and outdoor temp KNMI
- rain warning Buienalarm app
- songtext Sonos playing Spotify (using HomeyScript): advanced timing song progression showing the right songtext
- Sonos volume change
- showing corner leds in display when open windows
- solar power + power using
- name phone caller (link with Android phone)

Do not send to much information in a short time. There is a little memory and processor capacity in the device, and it will reboot/reset on overload.

---

<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: [May 30, 2024, 10:07am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/96 "2024-05-30T10:07:53Z")

</div>

New test version should fix RTTTL sounds:

> **[AWTRIX 3](https://homey.app/en-us/app/de.blueforcer.awtrixlight/AWTRIX-3/test/)**
>
> Connected Smart Clock for your Smart Home

---

<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: [May 30, 2024, 10:08am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/97 "2024-05-30T10:08:40Z")

</div>

Can you share your sonos homeyscripts? Sounds interesting 🙂

---

<div class="post-metadata">

### Author: ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)
#### Post date: [May 30, 2024, 10:11am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/98 "2024-05-30T10:11:38Z")

</div>

👍 and not that I did not believe you before but indeed sound is terrible. But still good enough to get some attention for the screen when using a notification

---

<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: [May 30, 2024, 10:32am UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/99 "2024-05-30T10:32:19Z")

</div>

First make advanced flow calling the HomeyScript. The red boxed functions are most important (sorry for Dutch language).

 ![Lyrics1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/6311ca50b6d3f62793a14fa4d0a4015e0f779892.jpeg)

The HomeyScript (serial numbers partly removed for privacy). Use Google Translate translating the comments.

I have made some exotic settings not overloading the Ulanzi device.  
Suggestions for improvement highly appreciated (I am not a developer).

```auto
//Lyrics ophalen van spelend nummer op Sonos
//ontvang parameter starttijd advanced flow starttijd om verwerkingstijd te berekenen: timing van teksten en pauzes
//parameter komt als string binnen; converteren naar nummer en vervolgens datum/tijd
var nParam = parseInt(args[0]);
var dTimer1 = new Date(nParam);

var sUlanziUrl = 'http://192.168.2.28';

//hardware devices
var sSonosId = 'a60035f1-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
var sSamsungTVId = 'cc134299-xxxx-xxxx-xxxx-xxxxxxxxxxxx';

//haal kenmerken van de Sonos op
var Sonosdevice = await Homey.devices.getDevice({ $skipCache: true, id : sSonosId });

var sArtiest = Sonosdevice.capabilitiesObj.speaker_artist.value;
var sTrack = Sonosdevice.capabilitiesObj.speaker_track.value;
var bPlaying = Sonosdevice.capabilitiesObj.speaker_playing.value;

//haal kenmerken van Samsung TV beneden op
var TVdevice = await Homey.devices.getDevice({ $skipCache : true, id : sSamsungTVId });
var bTVstatus = TVdevice.capabilitiesObj.onoff.value;

//als artiest of nummer niet is ingevuld of als Sonos niet speelt of als TV beneden aan is: stop
if(sArtiest == null || sArtiest == '' || sTrack == null || sTrack == '' || 
  bPlaying != true || bPlaying == null || bPlaying == '' || bTVstatus == true)
  {
  return;
  }

//extra spaties aan de teksten toevoegen voorkomt notificaties met alleen zwart scherm
//bij te een groot aantal notificaties in een korte tijd reboot de Ulanzi
var sSpaties = ' '.repeat(1000);

//schoon eventueel tekst vorig nummer
await fetch(sUlanziUrl + '/api/notify',
  {
  method: 'POST',
  headers: {},
  body: JSON.stringify({'text':' ','scrollSpeed':1,'duration':1,'stack':false})
  });

//extra 0,25 seconde wachten, zodat laatste tekst van vorig nummer eventueel nog kort wordt getoond
await wait(250);

//schoon nogmaals eventueel tekst vorig nummer
await fetch(sUlanziUrl + '/api/notify',
  {
  method: 'POST',
  headers: {},
  body: JSON.stringify({'text':' ','scrollSpeed':1,'duration':1,'stack':false})
  });

//extra 0,25 seconde wachten, zodat laatste tekst van vorig nummer eventueel nog kort wordt getoond
await wait(250);

//toon artiest en naam van muzieknummer
await fetch(sUlanziUrl + '/api/notify',
  {
  method: 'POST',
  headers: {},
  body: JSON.stringify({'text':sArtiest + '-' + sTrack + sSpaties,'icon':'muziek','scrollSpeed':200,'repeat':1,'stack':false})
  });

//licentie Musixmatch api via Rapidapi (maandelijks 500 opvragingen). 2 Licenties:
//key1: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//key2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
var sHost = 'musixmatch-lyrics-songs.p.rapidapi.com';

//haal songtekst en bijbehorende seconden van muzieknummer op
var sKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
var sLyricsTemp = await fetch('https://musixmatch-lyrics-songs.p.rapidapi.com/songs/lyrics?t=' + sTrack + '&a=' + sArtiest + '&type=json',
  {
  method: 'GET',
  headers: {'X-RapidAPI-Key': sKey,'X-RapidAPI-Host': 'musixmatch-lyrics-songs.p.rapidapi.com'}
  });

//geef melding als songtekst niet is gevonden
if(sLyricsTemp.status != 200)
  {
  await wait(3000);
  var sResultaat = await fetch(sUlanziUrl + '/api/notify',
    {
    method: 'POST',
    headers: {},
    body: JSON.stringify({'text': 'Songtekst niet gevonden','scrollSpeed':200,'repeat':1,'stack':false})
    });
  return;
  }

//songtekst gevonden: converteer resultaat naar json formaat
var sLyrics = await sLyricsTemp.json();

var nAantalRegels = sLyrics.length;

//speelduur in seconden (=tijdstip van laatste tekst)
var nSpeelduurSeconden = sLyrics[nAantalRegels - 1].time.total;

//loop door songtekst regels heen en bepaal de tussenliggende pauzes waarbij niet wordt gezongen
for (i = 0; i < nAantalRegels; i++) 
  {
  //Indien artiest of nummer is veranderd tijdens spelen of Sonos speelt niet meer of 
  //TV beneden is aan: stop script voortijdig.
  //Gebruik van parameter $skipCache: true noodzakelijk, zodat tussentijdse veranderingen in status Sonos of TV
  //kunnen worden uitgelezen (bij gebruik van cache vindt uitlezen alleen bij start van script plaats)
  var Sonosdevice = await Homey.devices.getDevice({$skipCache: true, id: sSonosId});
  var TVdevice = await Homey.devices.getDevice({$skipCache: true, id: sSamsungTVId });
  var bTVstatus = TVdevice.capabilitiesObj.onoff.value;
  var bPlaying = Sonosdevice.capabilitiesObj.speaker_playing.value;

  if(sArtiest != Sonosdevice.capabilitiesObj.speaker_artist.value || 
    sTrack != Sonosdevice.capabilitiesObj.speaker_track.value || Sonosdevice.capabilitiesObj.speaker_playing.value == false || bPlaying != true || bPlaying == null || bPlaying == '' || bTVstatus == true)
    {
    //stop loop om teksten te tonen
    break;
    }

  var sText = (sLyrics[i].text).trim();
  var nTijdSeconden = sLyrics[i].time.total;

  //als teksten snel opeen volgen: 2 teksten samenvoegen
  if(i < nAantalRegels - 1 && sText != '' && i > 0)
    {
    if((sLyrics[i+1].text).trim() != '' && (sLyrics[i+1].time.total - sLyrics[i].time.total) < 2.6)
      {
      sText += ', ' + (sLyrics[i+1].text).trim();
      i++;
      }
    }

  //eind timer die script verwerkingstijd berekent: timing van teksten en pauzes
  var dTimer2 = new Date();

  //starttijd volgende songtekst regel - looptijd script tov. vorige tekst
  var nPauze = (nTijdSeconden * 1000) - (dTimer2 - dTimer1);

  //eerste pauzetijd verlagen met 0,5 seconden door opstarttijd
  if(i == 0)
    {
    nPauze = nPauze - 500;
    }

  //als pauze > 10 seconden: toon muzieknoot
  if(nPauze > 10000)
    {
    //5 sec pauze om lopende tekst eerst te tonen voordat intermezzo scherm wordt getoond
    await wait(5000);
    nPauze = nPauze - 5000;
    var sResultaat = await fetch(sUlanziUrl + '/api/notify',
      {
      method: 'POST',
      headers: {},
      body: JSON.stringify({'text':' ','scrollSpeed':1,'duration':300,'icon':'muziek','stack':false})
      });
    }
  if(nPauze > 0)
    {
    //wachttijd tot zang volgende tekst regel
    await wait(nPauze);
    }
  //toon songtekst regel
  if((sText != null && sText != '') || nTijdSeconden == nSpeelduurSeconden)
    {
    nProgressBar = Math.ceil((nTijdSeconden/nSpeelduurSeconden) * 100);
    var sResultaat = await fetch(sUlanziUrl + '/api/notify',
      {
      method: 'POST',
      headers: {},
      body: JSON.stringify({'text':sText + sSpaties,'scrollSpeed':200,'progress':nProgressBar,'progressC':'#0000ff','progressBC':'#000000','repeat':1,'stack':false})
      });
    }
  }

//schoon songtekst
var sLyrics = '';
var sResultaat = await fetch(sUlanziUrl + '/api/notify',
  {
  method: 'POST',
  headers: {},
  body: JSON.stringify({'text':' ','scrollSpeed':1,'repeat':1,'icon':'muziek','stack':false})
  });

```

@Bckp Maybe you can use this idea to build in your app…

---

<div class="post-metadata">

### Author: ![Christian\_Noack](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_noack/32/104615_2.png) [@Christian\_Noack](https://community.homey.app/u/Christian_Noack)
#### Post date: [May 30, 2024, 1:01pm UTC](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888/100 "2024-05-30T13:01:10Z")

</div>

Great, thank you very much! 👍

[Previous page](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888.md?page=4)

[Next page](https://community.homey.app/t/app-pro-awtrix-connected-smart-clock-for-your-smart-home/91888.md?page=6)
