Can you try latest version? (0.3.1)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
Python plugin: Slide by Innovation in Motion
Moderator: leecollings
-
Lokonli
- Posts: 2292
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Re: Python plugin: Slide by Innovation in Motion
Hi Lokonli,
That works just fine.
Thanks!
Vollervo
That works just fine.
Thanks!
Vollervo
-
JeroenL
- Posts: 56
- Joined: Sunday 27 December 2015 19:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Dear Lokonli, all,
My slide system (local) was working fine for some years. However it was on Buster and I just upgrade to Trixie / Docker.
Now my plugin does not work anymore.
I see 2 locations here on the forum and am a little lost.
The plugin in the config/plugin directory seems to be the one picked up in "Hardware".
Also, re-cloned with into the plug-in directory.
No success. Error message below. Anyone a clue / hint?
Thanks a million.
Jeroen
My slide system (local) was working fine for some years. However it was on Buster and I just upgrade to Trixie / Docker.
Now my plugin does not work anymore.
I see 2 locations here on the forum and am a little lost.
Code: Select all
/opt/domoticz/config/plugins/slide-domoticz-local
and
/opt/domoticz/userdata/plugins/slide-domoticz-local
Also, re-cloned with into the plug-in directory.
No success. Error message below. Anyone a clue / hint?
Thanks a million.
Jeroen
Code: Select all
2025-12-22 15:42:50.576 Status: Slide curtain: Started.
2025-12-22 15:42:50.576 Status: Slide curtain: Entering work loop.
2025-12-22 15:42:51.345 Error: Slide curtain: (iim-slide-local) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/slide-domoticz-local/:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/opt/venv/lib/python3.11/site-packages:/opt/venv/local/lib/python3.11/dist-packages:/opt/venv/lib/python3/dist-packages:/opt/venv/lib/python3.11/dist-packages'.
2025-12-22 15:42:51.350 Error: Slide curtain: Traceback (most recent call last):
2025-12-22 15:42:51.350 Error: Slide curtain: File "/opt/domoticz/userdata/plugins/slide-domoticz-local/plugin.py", line 62, in <module>
2025-12-22 15:42:51.350 Error: Slide curtain: from goslideapi import GoSlideLocal
2025-12-22 15:42:51.350 Error: Slide curtain: File "/opt/domoticz/userdata/plugins/slide-domoticz-local/goslideapi.py", line 3, in <module>
2025-12-22 15:42:51.350 Error: Slide curtain: import aiohttp
2025-12-22 15:42:51.350 Error: Slide curtain: ModuleNotFoundError: No module named 'aiohttp'
- waltervl
- Posts: 6676
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Domoticz docker expects the plugin (internally) in /opt/domoticz/userdata/plugins/slide-domoticz-local
This could be outside the container in for example ./config/pugins/slide-domoticz-local
This depends on your docker-compose.yml configuration of your volumes.
Any requirements/python modules for a plugin need to be installed inside the container, see also https://wiki.domoticz.com/Docker#Python_Plugins
This could be outside the container in for example ./config/pugins/slide-domoticz-local
This depends on your docker-compose.yml configuration of your volumes.
Any requirements/python modules for a plugin need to be installed inside the container, see also https://wiki.domoticz.com/Docker#Python_Plugins
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
JeroenL
- Posts: 56
- Joined: Sunday 27 December 2015 19:38
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Dear Walter, thanks for pointing me into this direction. It now works
Thanks a lot & I can now close my curtains for the X-mas dinner...
rgds Jeroen
Thanks a lot & I can now close my curtains for the X-mas dinner...
rgds Jeroen
Who is online
Users browsing this forum: No registered users and 1 guest