[OBSOLETE] Virtual HTTP Switch/Button Creator

did you find how make it works using https??? im trying to make https webs requests for a mini split IR controller named “Cuby”

the API (HubAction) does not work with https

Hello, i got the device handler to work but the smart app throws an error "something went wrong. Please try to install smart app again "

Can someone please tell me if they have faced this?

The error it’s at ide or app?

The error occurs in the app when I after populating the two fields I.e. Button name and hub, I press done and it throws up that error.

Ok. I’ll check on that.

to get around the issue, you can manually add a device in IDE and assign it with the device handler

Yes, that’s what I have been doing. It’s not a big deal but would be great if you could find time to see what the underlying cause is :pray:t4:

I’m trying to set up a http switch for PiCore:

But it does not work; logs:

e61c87c2-2229-4534-9278-159c80b541a1 11:21:48 AM: debug Parse returned ManufacturerSpecificReport(productTypeId: 260, manufacturerId: 881, manufacturerName: null, productId: 189)
9eae1f6c-59e8-4477-99d1-b9735d3144d4 11:21:41 AM: debug Multi-sensor (Mila) illuminance is 100lux
af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 11:21:38 AM: debug Event data successfully posted to SharpTools.io
af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 11:21:38 AM: debug Event data successfully posted to SharpTools.io
af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 11:21:37 AM: debug updateDevice, params: [appId:af0e4bba-89f4-49de-bd7b-edeb69ce5ce5, param1:devices, param2:204068d2-6a32-4b62-a145-aeb59f7a699d, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi, id:204068d2-6a32-4b62-a145-aeb59f7a699d], request: [arguments:null, command:on]
204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug GET status.html?p0=play HTTP/1.1
Accept: */*
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 172.16.0.241:9000
Content-Type: application/x-www-form-urlencoded

204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug The method is GET
204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug The Header is [HOST:172.16.0.241:9000, Content-Type:application/x-www-form-urlencoded]
204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug path is: status.html?p0=play
204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug The device id configured is: PICORE-1-PLAY
204068d2-6a32-4b62-a145-aeb59f7a699d 11:21:38 AM: debug ---Sending command--- status.html?p0=play

Try adding a leading slash to the path.

/status.html?p0=stop

Great catch @joshua_lyon but no cigar;

af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 1:22:18 PM: debug Event data successfully posted to SharpTools.io
af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 1:22:18 PM: debug Event data successfully posted to SharpTools.io
af0e4bba-89f4-49de-bd7b-edeb69ce5ce5 1:22:17 PM: debug updateDevice, params: [appId:af0e4bba-89f4-49de-bd7b-edeb69ce5ce5, param1:devices, param2:204068d2-6a32-4b62-a145-aeb59f7a699d, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi, id:204068d2-6a32-4b62-a145-aeb59f7a699d], request: [arguments:null, command:on]
204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug GET /status.html?p0=play HTTP/1.1
Accept: */*
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 172.16.0.241:9000
Content-Type: application/x-www-form-urlencoded

204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug The method is GET
204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug The Header is [HOST:172.16.0.241:9000, Content-Type:application/x-www-form-urlencoded]
204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug path is: /status.html?p0=play
204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug The device id configured is: PICORE-1-PLAY
204068d2-6a32-4b62-a145-aeb59f7a699d 1:22:18 PM: debug ---Sending command--- /status.html?p0=play

Posted some other thoughts over in the other thread in the SharpTools community. :slight_smile:

Thanks to @joshua_lyon I missed assigning the hub to the device. It works now albeit as a switch.