Python plugin: Slide by Innovation in Motion
Moderator: leecollings
-
- Posts: 2260
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Python plugin: Slide by Innovation in Motion
I've created a Python plugin for Slide by Innovation in Motion.
https://github.com/lokonli/slide-domoticz
https://github.com/lokonli/slide-domoticz
- heggink
- Posts: 972
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Great plugin. Installed and works . Do get a bunch of error messages which I posed as a bug on Github.
Docker in Truenas scale, close to latest beta
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 972
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Raspberry pi 3.
Sent from phone.
Sent from phone.
Docker in Truenas scale, close to latest beta
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
ok, thanks.
To be clear:
The plugin is working correctly, you only see some unexpected messages in the Domoticz log?
Do you see any problem with the functionality?
To be clear:
The plugin is working correctly, you only see some unexpected messages in the Domoticz log?
Do you see any problem with the functionality?
-
- Posts: 108
- Joined: Sunday 23 February 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5613
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Thanks! Just needed this. I followed the instructions, however I cant see " Slide" . in the hardware list. What name should I look for (Slide I suppose)?
-
- 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
The hardware name is 'Slide by Innovation in Motion'.
Did you restart Domoticz?
Is Python installed? Domoticz reports the Python version in the ''Settings'->about' window.
You might have to set the right access permissions for the folder and for plugin.py
What kind of system are you using?
-
- Posts: 108
- Joined: Sunday 23 February 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5613
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Python Version: None
That explains
Verstuurd vanaf mijn SM-A530F met Tapatalk
That explains
Verstuurd vanaf mijn SM-A530F met Tapatalk
-
- Posts: 108
- Joined: Sunday 23 February 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5613
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Fixed the Python issue, and my Slides are showing! Great!
Would be great if you could integrate the Zones as well. I am using my Slides in one zone, which would be great to control as well.
Would be great if you could integrate the Zones as well. I am using my Slides in one zone, which would be great to control as well.
-
- 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
Good!
You can create groups in Domoticz.
I could create dummy devices for each slide zone.
Or create the group in Domoticz automatically.
I'll add it to the feature request list.
-
- Posts: 108
- Joined: Sunday 23 February 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5613
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Thanks, I am trying hard to setup a switch to control my slides. I do have made a Dummy switch, and by Blocky events this switch controls the Slides in the zone.
However, I don't know how to setup this dummy switch to be controlled by my Zwave wall switch,
With a group I cant get it to work either. The slides are controlled by percentages, so a group will only switch to 0 or 100, I cant get it to work to open and close it by a group. And thus, with 1 switch I can only Open or Close my curtains. Still thinking about a way to use 1 button to Open and Close the curtains....
However, I don't know how to setup this dummy switch to be controlled by my Zwave wall switch,
With a group I cant get it to work either. The slides are controlled by percentages, so a group will only switch to 0 or 100, I cant get it to work to open and close it by a group. And thus, with 1 switch I can only Open or Close my curtains. Still thinking about a way to use 1 button to Open and Close the curtains....
- heggink
- Posts: 972
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Python plugin: Slide by Innovation in Motion
So far only the messages in the log. I did run into another issue that I need to investigate: I added all the devices in a group in order to switch them all at once. That crashed Domoticz... Anyways, I'll investigate and get back on that.Lokonli wrote:ok, thanks.
To be clear:
The plugin is working correctly, you only see some unexpected messages in the Domoticz log?
Do you see any problem with the functionality?
Great to have the plugin though!
Sent from phone.
Docker in Truenas scale, close to latest beta
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ π
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 108
- Joined: Sunday 23 February 2014 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.5613
- Location: Netherlands
- Contact:
Re: Python plugin: Slide by Innovation in Motion
I think I experienced that crash too
By now I have a working setup, a bit complicated, but working.
Zwave switch -> Zwave plug -> Event triggered by plug -> Individual slides.
Happy as can be, with my built in wall switch I can control my curtains
By now I have a working setup, a bit complicated, but working.
Zwave switch -> Zwave plug -> Event triggered by plug -> Individual slides.
Happy as can be, with my built in wall switch I can control my curtains
-
- 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
There seems to be a bug in Domoticz in handling the disconnect of the https connections.
As a partial patch(?) I've increased the polling rate to once per 40 seconds in the latest version. Hopefully this keeps the connection alive.
In one of the Domoticz commits I see a report of the error in combination with zwave. There might be a relation.
I have 4 slides in one Domoticz group without issues.
-
- Posts: 43
- Joined: Monday 03 August 2015 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11590
- Location: Belgium
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Thanks Lokonli, works great!
For others: I had to do and then restart domoticz.
Some day, in Domoticz, an other icon for curtains instead of blinds would be nice.
And using an API key instead of login/password would be nice. Not sure if Slide supports this.
For others: I had to do
Code: Select all
sudo apt install libpython3-dev
Some day, in Domoticz, an other icon for curtains instead of blinds would be nice.
And using an API key instead of login/password would be nice. Not sure if Slide supports this.
-
- 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
Thanks for the feedback!packetloss wrote: βSunday 22 December 2019 13:37 Thanks Lokonli, works great!
For others: I had to doand then restart domoticz.Code: Select all
sudo apt install libpython3-dev
Some day, in Domoticz, an other icon for curtains instead of blinds would be nice.
And using an API key instead of login/password would be nice. Not sure if Slide supports this.
I'll add this to the installation instructions.
-
- Posts: 51
- Joined: Saturday 04 April 2015 10:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Hello packetloss can you explain which problem was solved by installing libpython3-dev? I`m trying to use the Python plugin on my Synology NAS but I can`t get it to work. My Synology NAS doesn`t have this pyhton module installed.packetloss wrote: βSunday 22 December 2019 13:37 Thanks Lokonli, works great!
For others: I had to doand then restart domoticz.Code: Select all
sudo apt install libpython3-dev
Some day, in Domoticz, an other icon for curtains instead of blinds would be nice.
And using an API key instead of login/password would be nice. Not sure if Slide supports this.
@Lokonli: Would you be so kind to explain why this dev python module is needed and would it be possible to create a python version of Slide which wouldn`t need this dev python module?
-
- 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
It's not needed for my plugin, but for the Domoticz plugin system in general.RogerSch wrote: βMonday 23 December 2019 23:29Hello packetloss can you explain which problem was solved by installing libpython3-dev? I`m trying to use the Python plugin on my Synology NAS but I can`t get it to work. My Synology NAS doesn`t have this pyhton module installed.packetloss wrote: βSunday 22 December 2019 13:37 Thanks Lokonli, works great!
For others: I had to doand then restart domoticz.Code: Select all
sudo apt install libpython3-dev
Some day, in Domoticz, an other icon for curtains instead of blinds would be nice.
And using an API key instead of login/password would be nice. Not sure if Slide supports this.
@Lokonli: Would you be so kind to explain why this dev python module is needed and would it be possible to create a python version of Slide which wouldn`t need this dev python module?
Is python detected by Domoticz? Domoticz reports the python version in Settings->About.
If not: did you install the correct Domoticz version on your Synology?
See http://www.jadahl.com/
Install a version including Python
-
- Posts: 51
- Joined: Saturday 04 April 2015 10:42
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin: Slide by Innovation in Motion
Yes Domotics recognize Python:Lokonli wrote: βTuesday 24 December 2019 0:07 It's not needed for my plugin, but for the Domoticz plugin system in general.
Is python detected by Domoticz? Domoticz reports the python version in Settings->About.
If not: did you install the correct Domoticz version on your Synology?
See http://www.jadahl.com/
Install a version including Python
Code: Select all
PluginSystem: Started, Python version '3.5.1'.
As soon as I instruct Domoticz to enable new sensors for 5 minutes the following erro message appears in the log file:
Code: Select all
PluginList: Parsing '/usr/local/domoticz/var/plugins/slide-domoticz/', 'Error document empty.' at line 0 column 0 in XML ''.
-
- 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
I have no experience with Synology...RogerSch wrote:Yes Domotics recognize Python:Lokonli wrote: βTuesday 24 December 2019 0:07 It's not needed for my plugin, but for the Domoticz plugin system in general.
Is python detected by Domoticz? Domoticz reports the python version in Settings->About.
If not: did you install the correct Domoticz version on your Synology?
See http://www.jadahl.com/
Install a version including PythonWhich is the version I have activited in the package manager and from Jadahl I have donloaded the Pyhton version.Code: Select all
PluginSystem: Started, Python version '3.5.1'.
As soon as I instruct Domoticz to enable new sensors for 5 minutes the following erro message appears in the log file:plugin.py file in this folder has all the required rights...Code: Select all
PluginList: Parsing '/usr/local/domoticz/var/plugins/slide-domoticz/', 'Error document empty.' at line 0 column 0 in XML ''.
Maybe try the following:
On the hardware configurarion page set the debug info to all.
Then enable the hardware, without allowing new devices.
In the log file filter 'slide'. Do you see any result?
(I assume you filled in your email and password on the slide hardware configuration page)
Sent from my SM-A320FL using Tapatalk
Who is online
Users browsing this forum: Google [Bot] and 0 guests