Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| plugins:insteon_commands [2018/09/12 15:24] – [Set Motion Sensor Timeout] jay | plugins:insteon_commands [2025/02/18 20:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== INSTEON Commands ====== | ||
| + | |||
| + | This plugin is a collection of miscellaneous INSTEON commands that aren't yet available natively in the UI (and may never be). There are several reasons for adding some INSTEON commands as actions via this plugin: it's sometimes desirable to be able to perform these actions more frequently than just once during setup (so it's in addition to the native UI) and it's often faster than adding it into the native UI. In any event, here are the actions available: | ||
| + | |||
| + | ====Set LED Brightness==== | ||
| + | |||
| + | This action will set the brightness of the LEDs on certain devices. Newer KeypadLincs are supported as well as some SwitchLinc models. Unfortunately, | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====Turn On/Off KeypadLinc Buttons==== | ||
| + | |||
| + | This action allows you to turn on/off groups of buttons. Why not just have multiple actions using the built-in Turn ON/Turn OFF LED actions? Because each of those requires a lot of INSTEON traffic - and if you need to set several buttons at once this action will do it in one (or two if you want to maintain some buttons) action(s). It's more efficient and easier to configure (one action versus potentially seven actions). Select the action you want to take for each button: **'' | ||
| + | |||
| + | Note: using this action, which is sending raw INSTEON commands through the IndigoServer, | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | ====Set KeypadLinc Auto-Off Button Group==== | ||
| + | |||
| + | This action will allow you to specify what buttons will go off automatically when you press any other button. Useful in conjunction with Toggle Mode below for creating "radio groups" | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====Set KeypadLinc Button Toggle Mode==== | ||
| + | |||
| + | This action will allow you to specify whether a button toggles (alternates between ON and OFF when pressed) or whether it sends a single command anytime it's pressed (can send either ON or OFF). Useful in conjunction with Auto-Off groups above for creating "radio groups" | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====Set Motion Sensor LED Brightness==== | ||
| + | |||
| + | This action will set the brightness of the LED that flashes inside the motion sensor when motion is detected. While the brightness value is between 0 and 255, 0 does not mean the LED is completely off - it's just very dim. Note: only revision 2 Motion Sensors with jumper 5 set can be configured. | ||
| + | |||
| + | Available in v1.0.1. | ||
| + | |||
| + | ====Set Motion Sensor Timeout==== | ||
| + | |||
| + | This action will set the timeout value between the time the motion sensor stops detecting motion and when it sends the OFF command. The timeout values work like this: 0 is equal to 30 seconds and 255 is equal to 2 hours. Values in between are proportional to those values. | ||
| + | |||
| + | **Note**: only revision 2 Motion Sensors with jumper 5 set can be configured. | ||
| + | |||
| + | **Note**: a value of 0 will be interpreted as 3 for Motion Sensor II models. | ||
| + | |||
| + | Available in v1.0.1. | ||
| + | |||
| + | ====Set Motion Sensor Day/Night Sensitivity==== | ||
| + | |||
| + | This action will set the sensitivity for when the motion sensor detects changes from dawn to dusk and vice versa. The sensitivity values work like this: 0 will make the sensor register day all the time and 255 is equal to night all the time. Values in between are proportional to those values. Note: only revision 2 Motion Sensors with jumper 5 set can be configured. | ||
| + | |||
| + | Available in v1.0.1. | ||
| + | |||
| + | ====Set I/O Linc Momentary Mode==== | ||
| + | |||
| + | This action will allow you to set the momentary mode of an I/O Linc to A, B, C, or None (the built-in UI only sets A or None). | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====Configure SynchroLinc==== | ||
| + | |||
| + | This action will allow you to configure the Trigger Watts, Threshold Watts, and Delay Seconds in a SynchroLinc. Here are the details of those settings: | ||
| + | |||
| + | * Trigger Watts (0 to 1800 watts in 0.5 watt steps): the wattage needed before the SynchroLinc broadcasts. | ||
| + | * Threshold Watts (aka hysteresis, 0 to 127.5 watts in 0.5 watt steps): tolerance before on/off toggle is sent. | ||
| + | * Delay Seconds (0.15 to 38.25 seconds): prevents message flooding if thresholdWatts is too low. | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====Send Raw INSTEON Command==== | ||
| + | |||
| + | This action will allow you to send a raw INSTEON command to any INSTEON device. You can send standard messages (2 bytes) or extended messages (16 bytes). You can also have the results of the command inserted into a variable for later processing. | ||
| + | |||
| + | Available in v1.0.0. | ||
| + | |||
| + | ====== ====== | ||
| + | As of v1.0.2 all the above actions can be run interactively from the plugin' | ||
| + | |||
| + | We'll add other functionality here where it makes sense. Drop us an email if you have an idea. | ||
| + | ===== Scripting Support ===== | ||
| + | |||
| + | As with all plugins, actions defined by this plugin may be executed by [[indigo_5_documentation: | ||
| + | |||
| + | **Plugin ID**: com.perceptiveautomation.indigoplugin.InsteonCommands | ||
| + | |||
| + | ==== Action specific properties ==== | ||
| + | |||
| + | === Set LED Brightness === | ||
| + | |||
| + | **Action id**: setLedBrightness | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Turn On/Off KeypadLinc Buttons === | ||
| + | |||
| + | **Action id**: setKPLLeds | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set KeypadLinc Auto-Off Button Group === | ||
| + | |||
| + | **Action id**: setAutoOffButtonGroup | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | # Here we set button 3 so that it turns off buttons 4, 5, and 6 | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set KeypadLinc Button Toggle Mode === | ||
| + | |||
| + | **Action id**: setKPLToggleMode | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | # Here we set button 3 so that it always sends an OFF command | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set Motion Sensor LED Brightness=== | ||
| + | |||
| + | **Action id**: setMotionSensorLedBrightness | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set Motion Sensor Timeout=== | ||
| + | |||
| + | **Action id**: setMotionSensorTimeout | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set Motion Sensor Day/Night Sensitivity=== | ||
| + | |||
| + | **Action id**: setMotionSensorSensitivity | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Set I/O Linc Momentary Mode === | ||
| + | |||
| + | **Action id**: setIOLincMomentaryMode | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Configure SynchroLinc === | ||
| + | |||
| + | **Action id**: configureSynchroLinc | ||
| + | |||
| + | Properties for scripting: | ||
| + | |||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | | //'' | ||
| + | |||
| + | Example: | ||
| + | |||
| + | < | ||
| + | actionPlugin = indigo.server.getPlugin(acId) | ||
| + | if actionPlugin.isEnabled(): | ||
| + | actionPlugin.executeAction(" | ||
| + | |||
| + | === Send Raw INSTEON Command === | ||
| + | |||
| + | Use the indigo.insteon.sendRaw() and indigo.insteon.sendRawExtended() commands. FIXME add links when those methods get documented | ||