Python plugin: Slide by Innovation in Motion

Python and python framework

Moderator: leecollings

Lokonli
Posts: 2262
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 »

Good to know. Thanks for the update!
User avatar
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

Post by heggink »

Hey lokonki,

Talking to the slide people the other day, they mentioned a beta api that allows direct communications with the slides without their cloud. I have the API description. I would be very interested to have a plugin version that does not need an internet connection.

Unfortunately, the API cannot coexist with the internet one so it's either or but when they fix that, any interest to consider an alternative approach?

H

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 :-)
RogerSch
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

Post by RogerSch »

I would also be interested in using a local API.
RogerSch
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

Post by RogerSch »

@lokonki: I'm now building some scripts with the Slides. One of them is to control certain curtains when the TV is being used (this is the case for certain Logitech Harmony states).
Now I noticed that there is a delay of a few minutes after executing a command (like closing the curtain) and actual updating the status of the curtain in Domoticz. In order not to be limited by the device update interval, might it be an idea to set the device status in Domoticz at the same moment when the update command of that device is being sent out? Afterwards during the regular update interval the actual status will then be set (ideally thsi should be the same).
Or are there any limitations why this is not possible or advisable?
Lokonli
Posts: 2262
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 »

RogerSch wrote: ↑Sunday 03 May 2020 13:04 @lokonki: I'm now building some scripts with the Slides. One of them is to control certain curtains when the TV is being used (this is the case for certain Logitech Harmony states).
Now I noticed that there is a delay of a few minutes after executing a command (like closing the curtain) and actual updating the status of the curtain in Domoticz. In order not to be limited by the device update interval, might it be an idea to set the device status in Domoticz at the same moment when the update command of that device is being sent out? Afterwards during the regular update interval the actual status will then be set (ideally thsi should be the same).
Or are there any limitations why this is not possible or advisable?
After I send a command to Slide open/close, I start polling for position changes, and I keep on polling as long as the slide is moving.
Last months I noticed that the position of Slide is not always updated correctly. It seems that it's not a problem of the plugin, but a problem of the slide server, since the Slide app also reports an incorrect position.

But I'll do some checks, and think of an alternative solution. Maybe setting in Domoticz might be a solution, but at a certain moment I've to start requesting the slide position from the Slide server again.
Lokonli
Posts: 2262
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 »

heggink wrote: ↑Saturday 02 May 2020 9:22 Hey lokonki,

Talking to the slide people the other day, they mentioned a beta api that allows direct communications with the slides without their cloud. I have the API description. I would be very interested to have a plugin version that does not need an internet connection.

Unfortunately, the API cannot coexist with the internet one so it's either or but when they fix that, any interest to consider an alternative approach?

H

Sent from phone.
Can you send me the API description? I would like to get an idea of the mechanisms that are being the used, and the complexity to implement.
RogerSch
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

Post by RogerSch »

Lokonli wrote: ↑Sunday 03 May 2020 18:03 Last months I noticed that the position of Slide is not always updated correctly. It seems that it's not a problem of the plugin, but a problem of the slide server, since the Slide app also reports an incorrect position.

But I'll do some checks, and think of an alternative solution. Maybe setting in Domoticz might be a solution, but at a certain moment I've to start requesting the slide position from the Slide server again.
Maybe setting in Domoticz might be a solution, => That is what I also thought of. And thereafter just have the regular polling update. I have reviewed your python code and as I understand most of it I don't dare to update the onCommand procedure with the needed code for it.

Of course I'm more than happy to test it.
Bikey
Posts: 331
Joined: Sunday 22 February 2015 12:19
Target OS: Linux
Domoticz version: 2020.x
Location: Netherlands
Contact:

Re: Python plugin: Slide by Innovation in Motion

Post by Bikey »

Lokonli wrote: ↑Sunday 03 May 2020 18:05 Can you send me the API description? I would like to get an idea of the mechanisms that are being the used, and the complexity to implement.
As you probably also heard is that Slide IM have serious funding problems. So don't have your hopes up that this is coming soon, I think further development may be slowed down.

It is already worrisome that he App has not been updated in 4 months, still having a bug where the time setting is one minute before from what you have set. And then when you want to edit a set time, is shows a time that is 2 hours before the programmed time (depending on the daylight saving).

Also no more updates on e.g. Amazon Alexa support. But thanks to your plug-in (in combination with HA-Bridge) I have this working anyway ;-)

Just checked again for some news and noticed this Tweet, mentioning news "next week" (which was 16 march): https://twitter.com/Slide_by_IIM/with_replies No follow up, however. Does anybody know what that was about, Google integration?
RogerSch
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

Post by RogerSch »

Bikey wrote: ↑Sunday 03 May 2020 20:16
Lokonli wrote: ↑Sunday 03 May 2020 18:05 Can you send me the API description? I would like to get an idea of the mechanisms that are being the used, and the complexity to implement.
As you probably also heard is that Slide IM have serious funding problems. So don't have your hopes up that this is coming soon, I think further development may be slowed down.
Sorry to say but hence it is even more crucial that a local API becomes available. In case Slide IM goes bankrupt, and I really hope this will not be the case, then the central servers might also be shut down. Hence the slides will not work anymore.... :cry:
User avatar
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

Post by heggink »

The 'beta' API is already there. It requires you to enable it on the slides itself. They told me that it has some issues whereby, sometimes, the calibration gets lost requiring recalibration. I have not tested it myself.

I tried to get an investor connected to them but he backed off (which in itself, is a concern). I'll reach out to them again asking about the API updates. It requires a firmware update on the slides...
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 :-)
marcpos
Posts: 7
Joined: Friday 08 January 2016 8:35
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: Slide by Innovation in Motion

Post by marcpos »

Hi, I'm using this plugin with my slides for a few months now and I'm very happy, works great!
Local API would be great for future independence.
I'm using the plugin in Domoticz version 4.10717 but I want to update to the newest verion. Is it compatible with the newest version 2020.2?
User avatar
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

Post by heggink »

Yes. I run it with one of the latest beta's.

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Lokonli
Posts: 2262
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 »

heggink wrote: ↑Friday 21 August 2020 10:17 Yes. I run it with one of the latest beta's.

Verstuurd vanaf mijn SM-G980F met Tapatalk
I'm not sure how stable the local API firmware is.

Did someone test it?

Can you switch back the Slide to the cloud API?
User avatar
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

Post by heggink »

I did not buy probably best to just contact them. Happy to do that. They seem pretty responsive and open on the state of the api. Last three told me, it had some issues where it would lose calibration...

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Lokonli
Posts: 2262
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 »

heggink wrote: ↑Friday 21 August 2020 12:03 I did not buy probably best to just contact them. Happy to do that. They seem pretty responsive and open on the state of the api. Last three told me, it had some issues where it would lose calibration...

Verstuurd vanaf mijn SM-G980F met Tapatalk
ok. Let's try.

I have one spare slide. I switched it to local API mode. And yes, communication is working :)

The API is pretty straight forward. I'll make a test Domoticz plugin.
RogerSch
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

Post by RogerSch »

That would be really cool!
Lokonli
Posts: 2262
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 »

Lokonli wrote: ↑Friday 21 August 2020 16:50
heggink wrote: ↑Friday 21 August 2020 12:03 I did not buy probably best to just contact them. Happy to do that. They seem pretty responsive and open on the state of the api. Last three told me, it had some issues where it would lose calibration...

Verstuurd vanaf mijn SM-G980F met Tapatalk
ok. Let's try.

I have one spare slide. I switched it to local API mode. And yes, communication is working :)

The API is pretty straight forward. I'll make a test Domoticz plugin.
hmm.

The local API uses Digest Authorization. I'm not sure how to implement that with the Domoticz python plugin framework ...
Lokonli
Posts: 2262
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 »

ok. Making progress. Digest authorization is working. Now further finalize the plugin.
Lokonli
Posts: 2262
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 »

And there it is:
The first beta of the Slide plugin for Domoticz using the local API.

https://github.com/lokonli/slide-domoticz-local

Reminder:
The local API still is in beta. (and this plugin as well :) )
User avatar
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

Post by heggink »

Yay, nice! What is your experience so far with the API? They mentioned the devices sometimes lose their calibration...

Verstuurd vanaf mijn SM-G980F met Tapatalk

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 :-)
Post Reply

Who is online

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