Jump to content

Need help turning insteon device "off" with REST


satwar

Recommended Posts

After a very painful process I finally got REST to change a status variable value in ISY

 

Program: c:\program files\internet explorer\iexplore.exe

Parameters: "http://admin:password@192.168.0.xx:9091/rest/vars/set/2/5/0"

 

I'm now trying to turn an insteon device off in ISY using REST

 

Program: c:\program files\internet explorer\iexplore.exe

Parameters: "http://admin:password@192.168.0.xx:9091/rest/nodes/xx xx xx 1/cmd/DOF"

 

Can anyone see why the command line doesn't work ?

Link to comment

The REST command was accepted. That suggests the issue is not REST but the ability of the ISY to control the specific device. Use the Admin Console to turn the device On and Off. The Admin Console uses the same Insteon commands as the REST DON and DOF requests.

 

Run Tools | Diagnostics | Event Viewer with Level 3 while the Admin Console On and Off commands (or the REST DOF) are being executed. If it is only an Off issue that is generally the load being controlled is generating interference when On to prevent the Off command from being received.

Link to comment

Well I did some thinking and came within reach of victory but the ISY reacts oddly to my solution. Explanation is very difficult, but I'll do my best.

 

I use mControl for high level control of ISY. I finally realized that I don't need to create REST commands in mControl macros to turn insteon devices off and on, I can use built-in mControl "ISY Automation" commands. Turning insteon devices off and on now works like a charm. So I've solved my initial problem, but...........

 

I still need to use mControl macros to send REST commands to ISY state variables changing their values between 0 and 1. I use these ISY state variables to control whether or not programs held in ISY folders will run. Unfortunately, the ISY state variables stop being changable by the mControl REST commands if I manually turn a insteon device off, which was on. Strangely if I run the REST command line for changing ISY state variables directly from internet explorer, the ISY state variables change their value as instructed. The only way I've been able to get the mControl macros for changing the ISY state variable values working again is to reboot the computer hosting mControl.

 

I seem to have stumbled into a problem way beyond my expertise. I don't understand why IE command line always works but mControl macro with same command ( "http://admin:password@192.168.0.xx:9091/rest/vars/set/2/5/0") stops working.

Link to comment

Okay, I finally got something to work.

 

I went back to my original plan of executing the device off command using REST in a mControl macro. It indeed does work :)

 

Also as long as I "manually" toggle the status of the Insteon devices using ISY, I have no problems.

 

Problems with mControl writing to the State Variable only occur if I use the mControl "ISY Automation" macros for "manually" toggling the status of the Insteon device.

 

Conclusion: Strange things can happen when you use mControl "ISY Automation" macros for devices that are also controlled by ISY programs

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...