Physical Switches

2017 · 5 replies · Devices

This discussion is 9 years old. It predates today's Roomie Remote X, and the app names, menus, features, pricing, and device details below have changed substantially since 2017. Treat it as historical reference — see Support and current compatibility for how things work today.

In short

Good Evening I would like to develop a wall switch that can be programmed to send commands to SimpleControl via IP. — A member replied: “Take a look here specifically at the HTTP interface guide. I've used this to send commands from a multi button Insteon switch through my controller and on to Simple Control. Works quite well.”

QuestionGNO-Accessories 2017-12 · older version

Good Evening

I would like to develop a wall switch that can be programmed to send commands to SimpleControl via IP.

The input could be from physical switches or a touch screen.

I have been thinking of the Raspberry Pi with a PoE input. (I have network cable to each light switch) but could also be connected via wifi

The idea would be that a specific button would be say "Sky TV" which would start the activity Sky TV and then there would also be a room off button.

Can SimpleControl accept IP inputs from a device which is not in their system?

Thank You

daveman918 2017-12 · older version

Take a look here https://simplecontrol.com/knowledgebase/setup-guides/ specifically at the HTTP interface guide. I've used this to send commands from a multi button Insteon switch through my controller and on to Simple Control. Works quite well.

Dave

GNO-Accessories 2017-12 · older version

Hi Dave.

Thats going to keep me entertained for many hours!!!!

Thanks!

![04|690x366](/uploads/db3074/original/1X/32dd25a3818b7da30d22f96a0de02cb98193752e.png)

GNO-Accessories 2017-12 · older version

So i have successfully run the GET commands but I'm unable to successfully run any POST commands.

I'm currently running the commands from a MacBook Pro in Terminal. Ultimately will be running from a Arduino but want to get the commands working first!

Good GET Commands that have returned results for my complete set up.

curl -X GET http://192.168.1.11:47147/api/v1/activities

curl -X GET http://192.168.1.11:47147/api/v1/devices

Post commands that I have not had success with

Send Commands

curl -X POST ‘http://192.168.1.11:47147/api/v1/sendcommands' -X POST -d ‘{ "delay"

: "1000", "commands" : [ { "type" : "command", "params" : { "command" : “MUTE” , "device" : “89CBF3F5-8277-4415-98A7-8CA3FE673E82” } }

] }’

{

"status" : "success",

"data" : {

},

"code" : 200 }

Run Acctivity

curl -x POST http://192.168.1.11:47147/api/v1/runactivity -d { “activity_uuid":"553B6548-51A4-40DB-B5AC-95565C139F82" }

{

"status" : “success",

"data" : {

},

"code" : 200

}

Any thoughts on how to get the POST commands working would be greatly appreciated.

Thank You

GNO-Accessories 2017-12 · older version

Afternoon

I'm now able to get the POST commands working from the "Simple REST Client" Plugin on Google Chrome. The data looks like this;

URL - http://192.168.1.11:47147/api/v1/runactivity

Method - POST

Data - {"activity_uuid" : "B3BE9EB5-2771-4FE8-ADD1-A3140B6E01A6" }

URL - http://192.168.1.11:47147/api/v1/sendcommands

Method - POST

Data - {"commands" : [ { "type" : "command", "params" : { "command" : "VOLUME UP" , "device" : "BC5918A0-2B18-4922-82A4-D7CBDA406606" }}]}

Now its down to getting the Arduino the send these commands on to the SimpleHub in the right format when a button is pressed!

mberg87 2019-03 · older version

Did you get this setup? Ive managed to control my activities in SimpleControl from Home Assistant. However, the devices wont work. with the sendcommands call. It returns Success but nothing happens. I ended up using the iTach component for Home Assistant to send IR codes directly, which works.

Related threads

Today's Roomie controls 400,000+ devices.

Roomie Remote X brings TVs, receivers, streamers, lights, and whole-home audio into one app on iPhone, iPad, Mac, and Apple TV.

Download Roomie Remote X