Python script to toggle Insteon

Posted on
Thu Jun 23, 2022 7:08 am
ken_jacobs offline
Posts: 187
Joined: Jul 23, 2005

Python script to toggle Insteon

Is there a Python script to turn Insteon on and off?

Posted on
Thu Jun 23, 2022 7:34 am
FlyingDiver offline
User avatar
Posts: 7215
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Python script to toggle Insteon

Look at: https://wiki.indigodomo.com/doku.php?id ... e_snippets

You want to use "indigo.device.toggle()".

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jun 23, 2022 9:27 am
ken_jacobs offline
Posts: 187
Joined: Jul 23, 2005

Re: Python script to toggle Insteon

Sorry for the confusion, I want to turn off the Insteon network at times.

Posted on
Thu Jun 23, 2022 10:19 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Python script to toggle Insteon

As far as I know, that's not possible to do programmatically. The same goes for plugins <strikethrough>(the Insteon interface is actually a plugin)</strikethrough>. This is primarily for security concerns. You wouldn't want a rogue plugin or hacker to have the ability to disable parts of your network.

It should be possible to restart the interface programmatically, but I don't think stop is possible.
Last edited by DaveL17 on Thu Jun 23, 2022 11:23 am, edited 1 time in total.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Jun 23, 2022 11:12 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Python script to toggle Insteon

With one minor exception (Insteon and X10 are not implemented as plugins, as much as we wish they were - they predate the plugin architecture), @DaveL17 is correct: we don't allow interfaces or plugins to be shut down as that's a potential security issue.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests