List of device commands????

Questions and comments about the Indigo Server. You can also post here if you're unclear which other forum to post to.
User avatar
Different Computers
Posts: 2610
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

List of device commands????

Post by Different Computers »

I've searched and simply can't find a list of commands for all device types here. Closest I get is
https://wiki.indigodomo.com/doku.php?id ... []=command

Is the idea that I should do that property dump on any device I want to know about? Looking at that example, I don't see the info I need.

I'm creating a shortcut that I want to start an Indigo Timer device. "indigo.device.timerOn" isn't it. But if there IS a list of commands on this site, where, please?
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
cuhouse
Posts: 148
Joined: Wed Feb 21, 2007 4:10 pm
Location: Virginia, USA

Re: List of device commands????

Post by cuhouse »

A right click on the device within the main Indigo window displays device details in the log for a specific device.
Indigo 2023.2, Monterey v12.7.5, Dedicated late 2014 Mac Mini, PowerLinc 2413U.
User avatar
DaveL17
Posts: 6883
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: List of device commands????

Post by DaveL17 »

You can see a list of commands for the indigo.device class on the documentation. This is the best place to get the most common commands.

You can also get the full list of commands for Indigo object classes (indigo.device, indigo.variable, ...) using Python. This is using the Indigo Scripting Shell:

Code: Select all

>>> print(dir(indigo.device))

['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'allOff', 'beep', 'changeDeviceTypeId', 'close', 'create', 'delete', 'displayInRemoteUI', 'duplicate', 'enable', 'getDependencies', 'getGroupList', 'groupWithDevice', 'lock', 'moveToFolder', 'open', 'ping', 'removeDelayedActions', 'resetEnergyAccumTotal', 'statusRequest', 'supported_device_types', 'supports_device', 'toggle', 'turnOff', 'turnOn', 'ungroupDevice', 'unlock', 'x10ChangeModel', 'x10changeAddress']
Don't worry about the things that use double underscores (those are special) -- start with 'allOff'.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
User avatar
jay (support)
Site Admin
Posts: 18416
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: List of device commands????

Post by jay (support) »

Dave's pointers (especially the device command documentation link) are great for the built-in device types (on/off, dimmer, thermostat, etc). However, plugins that provide custom devices (which don't fall into one of the built-in device types) won't (for obvious reasons) work with those commands. Developers who build plugins that have custom devices (and provide custom actions for their manipulation) are encouraged to publish the scripting details of their actions so scripters can also control them (like we did in the Timers & Pesters docs). The same principle will apply to the HTTP API in 2024.1 (coming soonish), which will allow you to execute actions provided by plugins (if you know what parameters to pass).

In the interim, you can create action groups to start/stop/whatever your timers, then execute those action groups from the shortcut.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
Different Computers
Posts: 2610
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: List of device commands????

Post by Different Computers »

Maybe I'm blind or dumb, but if there's a timer on/off command at https://wiki.indigodomo.com/doku.php?id ... digodevice I can't find it.

The indigo.device.timerOn command listed there is something else having to do with State Image Sel Enumeration, whatever that is.

Timers are a built in device class as far as I know, not part of any plugin.

I'm guessing the scripting shell python needs me to specify the device somewhere, but I don't know the syntax for doing so.

The Action Group idea will work for me though. Thanks!
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
User avatar
FlyingDiver
Posts: 7326
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: List of device commands????

Post by FlyingDiver »

Timers are implemented in the Timers and Pesters plugin.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
jay (support)
Site Admin
Posts: 18416
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: List of device commands????

Post by jay (support) »

Timers (and Pesters) are provided by a plugin (the name is Timers and Pesters and it is in the plugin menu and is installed as part of the standard Indigo install). That's why I went through the rather lengthy plugin discussion and linked to the docs for that plugin...

You can tell that a Timer device isn't on/off since there are no on/off buttons in the Mac client UI when you select one.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
Different Computers
Posts: 2610
Joined: Sat Jan 02, 2016 10:07 am
Location: East Coast
Contact:

Re: List of device commands????

Post by Different Computers »

Sure, I get that they don’t turn on off. What about the commands to start stop?
Sonoma on a Mac Mini M1 running Airfoil Pro, Bond Home, Camect, Roku Network Remote, Hue Lights, DomoPad, Adapters, Home Assistant Agent, HomeKitLinkSiri, EPS Smart Dimmer, Fantastic Weather, Nanoleaf, LED Simple Effects, Grafana. UnifiAP
User avatar
DaveL17
Posts: 6883
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: List of device commands????

Post by DaveL17 »

I was going to recommend a Python script, but Jay reminded me that the Timers and Pesters plugin has a bunch of built-in Actions.

Create an Action Item to "Start My Timer" (or whatever) and then have the Shortcut fire the Action.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
User avatar
jay (support)
Site Admin
Posts: 18416
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: List of device commands????

Post by jay (support) »

Different Computers wrote:Sure, I get that they don’t turn on off. What about the commands to start stop?
jay (support) wrote: you can create action groups to start/stop/whatever your timers, then execute those action groups from the shortcut.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Indigo Server Software”