The easiest option would be Ifttt as it will not need any coding just create applets for each function you require using webhook and smartlife and create a iftt platform account.
Was just wandering if you had any update on retrieving the current status so it is reported correctly in Vera. I know you mentioned you don’t like the idea of polling, have you had any further thoughts?
I have create my own api for controlling Teckin switches, so I have the ability to use either polling or pushing. Does the http device support these now? I didn’t see any configuration options for it.
Nice work @therealdb. I find your work to be most help full in making things work with vera.
Some feature requests for future versions -
1 a master device to keep track of all http devces.
2 the ability to edit child device urls in master device.
3 the ability to post requests with json body { type: 'smarthome', payload: { entity: 'Lamp', action: 'setColor', value: '#FF00FF' }} with %s subsitutions.
Thinking about this, @ElCid, is GET enough, or do you need to make a POST?
I’m thinking about giving the flexibility to decide the method (defaulting to GET) and payload to send as body. do you also need to send headers?
it might become quite complicated, but I’m exploring this option as we speak.
The option to select GET or POST would be best as some api’s only work with POST requests. As to headers, they may be needed, as in authenication
maybe a change in variables
say-
Url = The url of the request
Request - Get or Post
Type - Form data or json
onData - the form or data body for on request with substitutions .
ToggleData - toggle data
offData - off data
Headers - any headers you may want in json name value form
I’m thinking about adding a second variable to every command, called something like TurnOnCommandParameters, and when present, just send it via curl as command line parameters. This should be easier and you can send whatever you want. I will still support replace into the parameters as well.
Since every request should potentially be different, every commands should have this option. Default will be no arguments specified, the HTTP call will be sent via GET as today.