Page 1 of 1

Virtual Garage Door with Shelly Plus 1 - Python questions

PostPosted: Thu Jun 29, 2023 2:57 pm
by stanleykrasnow
I am trying to use a Shelly Plus 1 in a garage door solution. Because the Plus 1 is not yet supported in the Shelly plugin, I have implemented a virtual device that can now open and close the garage door and update the control page using a system variable.
I am stuck on three things for a more elegant solution:

1. To update the door's status, how can I poll the Plus 1 every 15 seconds or so. I know how to ask the device, I can't find how to implement polling in Indigo.

2. Is there a way to pass an IP address of the Plus 1 to the open and close action groups at the heart of the virtual device solution. Or do I need separate action goup for each ip address?

3. Lastly, and least important, the Shelly Plus 1 can send an http message when its reed switch opens and closes. Is there a way for Indigo to receive the message from the Shelly relays? If so, the need for polling is almost nonexistant.

Thank you very much.

Re: Virtual Garage Door with Shelly Plus 1 - Python question

PostPosted: Thu Jun 29, 2023 3:39 pm
by FlyingDiver
1. You can use an Indigo schedule to run a script that polls the device.

2. You could store it in an Indigo variable

3. If you have control of the URL that the device will use, you can use that to set a variable (which you can trigger on). See https://wiki.indigodomo.com/doku.php?id ... le_s_value