Page 1 of 1

HTTP request with basic auth or SSL?

Posted: 23 Dec 2016 14:43
by phischmi
Hi all,
i'm quite new to the RaZberry but yet very impressed by it's capabilities :)
I switched from Homee as i wanted to reduce my smart home devices to a minimum.
I'm running the RaZberry with the newest Z-Way Software (2.2.5).

My question now is, how it is possible to make a simple http(s) request to address e.g. a switch in Z-Way?
Background is, that i have an Android app called EgiGeoZone to send a http(s) request when entering or leaving a defined zone. Those requests can be secured using basic authentification or SSL.

Is it possible to use such requests with the RaZberry / Z-Way?

For requests from HA-Bridge i'm using sth. like

Code: Select all

http://192.168.1.116:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_5-0-37/command/on
and a Base64 encoded http-header with "user:password".
This works great for HA-Bridge but is not possible to implement in EgiGeoZone.

Is there an alternative using basic auth, SSL certificates or even no auth?

I know there are many topics on this on the board, but i couldn't manage to find a solution working with an actual version of Z-Way :/

Thank you very much!


Regards

Philipp

Re: HTTP request with basic auth or SSL?

Posted: 02 Jan 2017 14:50
by Provo
A base64 encoded http-header with "user:password" is basic auth. ;) But you can also include your credentials in the URL like this, if your client supports it:

Code: Select all

http://username:password@192.168.1.116:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_5-0-37/command/on

Re: HTTP request with basic auth or SSL?

Posted: 06 Mar 2017 07:46
by lajaro
For requests from HA-Bridge i'm using...
Could you post an example (pic or step-by-step) of how you are creating the devices in ha-bridge? Despite passing the creds (both as part of the URL, and an encoded header, am only running into errors that the URL isn't found (but works with an authentication session through a browser).