iobroker-community-adapters / ioBroker.shelly

Integrate your Shelly devices into ioBroker via MQTT or CoIoT
Other
162 stars 65 forks source link

[Bug]: timezone Fehlermeldungen #1014

Open mhuber77 opened 3 months ago

mhuber77 commented 3 months ago

I'm sure that

Shelly device

All Shellys

Shelly firmware version

latest on all devices

Protocol

MQTT

The problem

Seid der Adapter Version 7.0 bringt der Adapter untenstehende timezone infos alle paar Sekunden im Log. Leider kann ich auf meinen Grundsystem nur Europe/Berlin einstellen, hab als Workaround alle shellys auf Europe/Berlin gestellt, bin in Österreich zu Hause und die shellys nehmen sich defaultmässig Europe/Vienna. Vielleicht kann man dieses spezielle Info log zum ein und ausschalten machen oder alle timezones die gleich sind nur im Namen anders bei dem Log ignorieren..... Es ist egal ob die shellys über MQTT oder CoAP angesteuert werden. danke!

iobroker.current.log (in debug mode!)

[Sys.timezone] 172.28.254.94 (shellypro3em / shellypro3em-3ce90e703544 / shellypro3em#3ce90e703544#1): Configured timezone "Europe/Vienna" and system timezone "Europe/Berlin" do not match. Please check configuration

Version of nodejs

18.17.1

Version of ioBroker js-controller

6.17.14

Version of adapter

7.0.0

github-actions[bot] commented 3 months ago

Thanks for reporting a new issue @mhuber77!

  1. Please make sure your topic is not covered in the documentation
  2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
  3. Search for the issue topic in other/closed issues to avoid duplicates!

    Otherwise this issue will be closed.

klein0r commented 3 months ago

Und warum steht die Zeitzone des ioBroker Hosts dann nicht auf Europe/Vienna?

mhuber77 commented 3 months ago

Das wollte ich machen aber mein OS hat kein Europe/Vienna sondern für CET nur Europe/Berlin zur Auswahl, oder kann man das im iobroker irgendwo einstellen?

klein0r commented 3 months ago

Welches OS ist das denn?!

mhuber77 commented 3 months ago

Welches OS ist das denn?!

Is ein Docker Container der nimmts vom QNAP auch nicht richtig, über ENV schon versucht, klappt aber nicht....weiß auch nicht warum. Wie gesagt wäre was wenns leicht geht sonst stell ich neue Shellys einfach immer auf Berlin.

mhuber77 commented 3 months ago

CET ist mitteleuropäischen Zeit u die passt auch in Österreich . Berlin u Wien haben gleiche Zeitzone.

Ok hrs erst gesehn. Da hapert an einem textiellen Vergleich. Die Zeitzone selbst wär eh ident ...

ja die Zone stimmt schon also die Zeit, is wirklich nur der Text Vergleich

klein0r commented 3 months ago

über ENV schon versucht, klappt aber nicht

Dann ist es aber ein Bug im Image. Das muss als ENV-Variable funktionieren mit

TZ=Europe/Vienna

mhuber77 commented 3 months ago

Ja denke ich auch. Genau das hab ich rein aber geht nicht. wie gesagt ist nicht so wichtig wollte es nur melden falls leicht geht oder jemand noch probleme hat sollte man zufälligerweise vielleicht 2 Standorte über die Ländergrenzen haben, dann würds ja nicht gehen.

chrisdu commented 2 months ago

Leider hab ich das Problem auch! Ununterbrochene Info im iobroker. Ich hab den iobroker als Container in Proxmox laufen. gibt es da eine Lösung?

Besten dank

klein0r commented 2 months ago

@chrisdu Die Zeitzone richtig konfigurieren. Welche Umgebungsvariable hast Du auf welchen Wert gesetzt?

PS: Ist hier aber Offtopic und hat nichts mit dem Shelly-Adapter zu tun.

chrisdu commented 2 months ago

Ich Habe die Meldungen erst seit kurzem. Fehler Meldungen sieht so aus: `

shelly.1 | 2024-08-03 12:33:24.064 | info | [Sys.timezone] 10.0.0.47 (shellyplus1 / shellyplus1-80646fcadb20 / shellyplus1#80646fcadb20#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration -- | -- | -- | -- shelly.1 | 2024-08-03 12:33:23.903 | info | [Sys.timezone] 10.0.0.38 (shellyplus1 / shellyplus1-80646fdc7284 / shellyplus1#80646fdc7284#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:22.932 | info | [Sys.timezone] 10.0.0.33 (shelly1 / shelly1-E8DB84D7B4C6 / SHSW-1#E8DB84D7B4C6#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:22.918 | info | [Sys.timezone] 10.0.0.42 (shellyplus1 / shellyplus1-441793ab4100 / shellyplus1#441793ab4100#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:22.269 | info | [Sys.timezone] 10.0.0.34 (shellydimmer2 / shellydimmer2-F4CFA2ECA6E7 / SHDM-2#F4CFA2ECA6E7#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:21.607 | info | [Sys.timezone] 10.0.0.67 (shellyplus1 / shellyplus1-441793a7f218 / shellyplus1#441793a7f218#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:19.509 | info | [Sys.timezone] 10.0.0.49 (shelly1 / shelly1-C45BBE75D426 / SHSW-1#C45BBE75D426#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:19.470 | info | [Sys.timezone] 10.0.0.27 (shelly1 / shelly1-E8DB84D2A4B8 / SHSW-1#E8DB84D2A4B8#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:19.407 | info | [Sys.timezone] 10.0.0.37 (shellyplus1 / shellyplus1-80646fcb537c / shellyplus1#80646fcb537c#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:17.766 | info | [Sys.timezone] 10.0.0.35 (shellyplus1 / shellyplus1-80646fcb0870 / shellyplus1#80646fcb0870#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:17.678 | info | [Sys.timezone] 10.0.0.33 (shelly1 / shelly1-E8DB84D7B4C6 / SHSW-1#E8DB84D7B4C6#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.0 | 2024-08-03 12:33:17.166 | info | [Sys.timezone] 10.0.0.34 (shellydimmer2 / shellydimmer2-F4CFA2ECA6E7 / SHDM-2#F4CFA2ECA6E7#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:15.480 | info | [Sys.timezone] 10.0.0.39 (shellyplus1 / shellyplus1-80646fcaef94 / shellyplus1#80646fcaef94#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:14.760 | info | [Sys.timezone] 10.0.0.46 (shellyplus1 / shellyplus1-80646fdae0fc / shellyplus1#80646fdae0fc#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration shelly.1 | 2024-08-03 12:33:14.536 | info | [Sys.timezone] 10.0.0.77 (shelly1mini / shelly1mini-348518e0d770 / shelly1mini#348518e0d770#1): Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. Please check configuration

`

Ich hab in der PVE als Server time Europa/Vienna und auch die Shellies haben diese Time Einstellung!? Seltsam...

chrisdu commented 2 months ago

Jetzt hab ich wieder die v6.9.0 installiert und die Meldung kommt erst einmal nicht. glg Christian

Grothesk242 commented 2 months ago
Configured timezone "Europe/Vienna" and system timezone "UTC" do not match. 

Offenbar ist in deinem Betriebssystem (oder im Container) keine bzw. die falsche Zeitzone gesetzt. Stell die halt gleichlautend auch auf Europe/Vienna ein.

chrisdu commented 2 months ago

Ich Danke euch, genau das war's. Die Timezone im Container war auf UTC gestellt. Abfrage: timedatectl oder ls -l /etc/localtime timedatectl list-timezones listet alle installierten Zonen auf sudo timedatectl set-timezone Europe/Vienna

und schon ist alles wieder Bestens. Danke glg PS Aber die Fehlermeldung erscheint bei mir erst seit der Shelly_Adapter Version 7.0.0

klein0r commented 2 months ago

Abfrage: timedatectl oder ls -l /etc/localtime timedatectl list-timezones listet alle installierten Zonen auf sudo timedatectl set-timezone Europe/Vienna

Das ist nicht der richtige Weg für Docker. Dafür gibt es eine Umgebungsvariable.

chrisdu commented 2 months ago

Das ist nicht der richtige Weg für Docker. Dafür gibt es eine Umgebungsvariable.

Ich hab auf Proxmox meine Container laufen. Wo finde ich die Umgebungsvariable?

klein0r commented 2 months ago

@chrisdu Ah, in einem LXC unter Proxmox ist das korrekt. Hier ging es kurzzeitig um Docker - daher der Hinweis. Das war aber jemand anderes. Dann hab ich nichts gesagt