klein0r / ioBroker.awtrix-light

Integrate your Awtrix Light device (e.g. Ulanzi TC001) via HTTP
https://haus-automatisierung.com
MIT License
62 stars 4 forks source link

Bug report: Aktualisierung während Cooldown wird nie mehr nachgeholt #64

Closed klostopfer closed 1 year ago

klostopfer commented 1 year ago

The problem

Ich lasse über den Adapter die aktuelle Leistung der Solaranlage anzeigen. Am Abend fällt die Leistung langsam auf "0 W" ab (bspw. von 4 W auf 3 W auf 0 W) , die nächste Aktualisierung erfolgt erst am nächsten Morgen, wenn die Sonne wieder aufgeht.

Wenn jetzt die Aktualisierung von 3 auf 0 W innerhalb von 3 Sekunden nach der Änderung von 4 W auf 3W erfolgt (also im "cooldown"), wird die Aktualisierung auf 0 W nie mehr "nachgeholt", weil die App ja nur bei Änderung des Wertes aktualisiert wird. Dann wird die ganze Nacht eine Leistung von 3 W angezeigt.

Scheinbar fährt mein WR immer in diesem Muster runter, so dass die letzten beiden Aktualisierungen immer kurz nacheinander (< 3 Sekunden) erfolgen, so dass ich immer den vorletzten Wert angezeigt bekomme.

Das Problem tritt natürlich nicht nur bei Solar auf, sondern bei allen Werten die sich kurz hintereinander ändern und dann längere Zeit nicht mehr geändert werden.

Version of nodejs

16.18.0

Version of ioBroker js-controller

4.0.23

Version of Adapter

0.8

Version of awtrix-light firmware

0.84

Operating system running ioBroker

Raspbian 11

Checklist of files to include below

Additional information & file uploads

2023-09-08 20:01:34.171 - debug: awtrix-light.0 (31669) [onStateChange] received state change of objId "0_userdata.0.Energie.Leistung_Solar" from 4 to 3 (ts: 1694196094161) 2023-09-08 20:01:34.171 - debug: awtrix-light.0 (31669) [refreshCustomApps] Refreshing custom apps for objId "0_userdata.0.Energie.Leistung_Solar" with data {"val":3,"type":"number","unit":"W","ts":1694196094161} 2023-09-08 20:01:34.171 - debug: awtrix-light.0 (31669) [refreshCustomApps] Refreshing custom app "solar" with icon "27283" and text "%s %u" 2023-09-08 20:01:34.174 - debug: awtrix-light.0 (31669) sending "POST" request to "/api/custom?name=solar" with data: {"text":"3 W","textCase":2,"pos":1,"background":"#000000","color":"#FFFFFF","icon":"27283"} 2023-09-08 20:01:34.236 - debug: awtrix-light.0 (31669) [onStateChange] received state change of objId "0_userdata.0.Energie.Leistung_Haushalt" from 416.16 to 419.16 (ts: 1694196094169) 2023-09-08 20:01:34.236 - debug: awtrix-light.0 (31669) [refreshCustomApps] Refreshing custom apps for objId "0_userdata.0.Energie.Leistung_Haushalt" with data {"val":419.16,"type":"number","unit":"W","ts":1694196094169} 2023-09-08 20:01:34.237 - debug: awtrix-light.0 (31669) [refreshCustomApps] Refreshing custom app "haushalt" with icon "48314" and text "%s %u" 2023-09-08 20:01:34.245 - debug: awtrix-light.0 (31669) [refreshCustomApps] formatted value of objId "0_userdata.0.Energie.Leistung_Haushalt" from 419.16 to 419 (0 decimals) with ",." 2023-09-08 20:01:34.245 - debug: awtrix-light.0 (31669) sending "POST" request to "/api/custom?name=haushalt" with data: {"text":"419 W","textCase":2,"pos":0,"background":"#000000","color":"#FFFFFF","noScroll":true,"icon":"48314"} 2023-09-08 20:01:34.321 - debug: awtrix-light.0 (31669) received 200 response from "/api/custom?name=solar" with content: "OK" 2023-09-08 20:01:34.345 - debug: awtrix-light.0 (31669) received 200 response from "/api/custom?name=haushalt" with content: "OK" 2023-09-08 20:01:35.166 - debug: awtrix-light.0 (31669) [onStateChange] received state change of objId "0_userdata.0.Energie.Leistung_Solar" from 3 to 0 (ts: 1694196095157) 2023-09-08 20:01:35.167 - debug: awtrix-light.0 (31669) [onStateChange] ignoring customApps state change of objId "0_userdata.0.Energie.Leistung_Solar" to 0 - refreshes too fast (within 3 seconds) - Last update: 2023-09-08 20:01:34.161

github-actions[bot] commented 1 year ago

Thanks for reporting @klostopfer!

  1. Check if this topic is not covered in the documentation
  2. Ensure that you use the latest beta version: NPM version
  3. Attach all necessary log files in debug mode, screenshots and other information to reproduce this issue
  4. Search for the issue topic in other/closed issues to avoid duplicates!