This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Official
Comments
Viktor thanks for you reaction
but sorry it isn't working I get the error unexpected token >
Aha! That's called a GET request, not a POST.
For this scenario you must use the HTTP GET JSON card with parameters:
1: https://my.zipato.com/zipato-web/remoting/attribute/set
2: {serial:'myserial', apiKey: 'mykey'}
The json formatted parameters will be converted to the querystring and are added to the url with a questionmark between.
it works indeed i used HTTP GET without the JSON part
What do you want to achieve ?
Could you give me a example?
Can i save the value received from a GET response to a BL Variable?
GET Url is:
http://<IP Address or mDNS Name>/zrap/chscan/ch1
And the Response Body:
Can i save the value 85 into a BL variable?
Thank you
Yes!
XML wil be parsed to JSON, and with that we can do a JSONpath query like $.ch2.val
But I have run into a scenario where I can't add the extra header to the request (IP camera that can not add extra headers). I would like to avoid having to completely disable this extra layer of security.
So, I was thinking. Is it possible to have an option that disables the authorization for specific incoming IP addresses or perhaps the complete LAN?
https://forum.athom.com/discussion/comment/19759/#Comment_19759
Here is the Logpage output, the output is "0" and thats is ok, only the app is giving the 0 as error.
Ah, you'll just need a little more complex jsonPath: $.chscan.ch2[0].val[0]
I'm going to try to poll my Foscam for motion alarms. Don't know if this is possible with this app?
When I use http://192.168.1.7:9999/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=xxxxxx&pwd=xxxxxx I get this as a response:
Is there any way I could filter out the <motionDetectAlarm>2</motionDetectAlarm> (1 is no alarm, 2 is motion alarm)?
I'll search through the topic to see what I can find then
Thanks! I'll give that a try. Hope I can get it working, don't fully understand it
Was reading through the entire topic, you saved me some time
Thanks again!
- POST trigger card
- POST XML action card
- JSON path logic cards (condition and action)
- New: Require authorisation on API calls, but accept white-listed IP-addresses (see settings page)
- More logging (when run from CLI or with Realtime Logpage)
This what I use now: Homey fw 1.1.2 and HTTP Get JSON card "http://domoticz-ip:port/json.htm" and "{type":"command","param":"switchlight","idx":123,"switchcmd":"On"}"
If I install v 1.3.3 via CLI everything works again.
[Edit]
I can confirm the issue of HansieNL. I have GET variable Step 1 flow that is not working anymore. I'm pretty sure it used to work before 1.5.0. The error on the card is "Value not found".
http://inlognaam:wachtwoord@ipadres/web/powerstate
{"newstate":4}