seydx / homebridge-fritz-platform

AiO Homebridge dynamic platform plugin for AVM hardware like Fritz!Box, Fritz!Repeater etc.
MIT License
223 stars 32 forks source link

Automation with multiple thermostats never runs correctly #275

Open tim-hilt opened 2 years ago

tim-hilt commented 2 years ago

Describe the bug

I have four FRITZ!DECT 301 thermostats and want to include all of them in an automation. E.g. "Set all thermostats to 16 degrees at 6:45". However everytime such an automation is triggered, at least one thermostat is either to a wrong temperature or its temperature is not altered at all. Manually setting the temperature works flawlessly every time.

To Reproduce

  1. Make an automation that involves multiple thermostats
  2. Trigger the automation
  3. Look at temperature-readings of all involved thermostats

Expected behavior

All thermostats receive the temperature, that was set in the automation

Smartphone (please complete the following information):

Additional context

Homebridge running via Homebridge OS on a Raspberry Pi 3B with all updates applied.

tim-hilt commented 2 years ago

I added a shortcut that sets every thermostat separately with a 2 second delay in between. It worked perfectly! I think it could be, that the plug-in is sending the set-commands two fast or even in parallel and either the FRITZ!BOX or the thermostats can’t handle that.

Kai9555 commented 2 years ago

Ich hatte oder habe das Problem mit dem einrichten von Szenen. Geholfen hat die gewünschte Zieltemperatur vor dem einrichten der Szene (z.B. 19grad) bei allen Thermostat einzustellen und erst dann die Szene „19 Grad“ einzurichten.

Danach wird die Temperatur immer zuverlässig eingestellt. Eventuell hilft es ja auch bei Automationen.

tim-hilt commented 2 years ago

@Kai9555 Was? 😃 Wie ist dir das denn aufgefallen? Total verrückt, für Automationen hat das auch funktioniert.

Ist aber auf jeden Fall ein Bug. @seydx sollen wir das Issue mal offen lassen oder dazu ein Neues mit passendem Titel anlegen?

Kai9555 commented 2 years ago

Ja keine Ahnung. War Zufall denke ich...es hatte mal funktioniert mit einer Szene, also habe ich so lange probiert bis ich herausgefunden habe 😅

MrTeslaM3 commented 2 years ago

Think that's the same bug as in #237

I hade the hope that the bug would be fixed during the summer. The workaround to them the temperatures before did not work all the time.

How did you @Kai9555 set the 2sec delay between the single commands? Would be great if you could explain that a bit more.