Python plugin: Slide by Innovation in Motion

Python and python framework

Moderator: leecollings

Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python plugin: Slide by Innovation in Motion

Post 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)
Vollervo
Posts: 7
Joined: Tuesday 22 March 2022 11:35
Target OS: Linux
Domoticz version:
Contact:

Re: Python plugin: Slide by Innovation in Motion

Post by Vollervo »

Hi Lokonli,

That works just fine. :D

Thanks!

Vollervo
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest