Page 5 of 5

Re: Python plugin: Slide by Innovation in Motion

Posted: Tuesday 21 May 2024 21:14
by Lokonli
Vollervo wrote: Monday 20 May 2024 13:04 FYI: today I played around a bit more with the plugin for the local API and it seems that the actual status of the curtains is only updated every 30*180 seconds and that's a bit too slow for me. If you use touch and go or dzVents to do something with the curtains, the curtains' status is not reflected correctly in the UI for a long period. So, I changed that 180 to 20. Now the status is updated every 10 minutes.

Code: Select all

 def onHeartbeat(self):
        if self.hb == 20:
            Domoticz.Debug("onHeartbeat called")
            self.getAllSlidesInfo()
            self.hb = 1
        else:
            self.hb = self.hb + 1
Can you try latest version? (0.3.1)

Re: Python plugin: Slide by Innovation in Motion

Posted: Wednesday 22 May 2024 18:41
by Vollervo
Hi Lokonli,

That works just fine. :D

Thanks!

Vollervo