-
Notifications
You must be signed in to change notification settings - Fork 4
Retrieve commands for your device using the Gardena App
Christian Vorholt edited this page Jun 29, 2019
·
1 revision
Note: As of June 2019 this procedure does not work any more. If someone has a solution, please do not hesitate to contact me.
There are some devices that require sending special commands that are not supported by SMART data points. For exports, these are commands send by the HTTP POST command. These commands have to be described in the file "gardena_commands.json" in the lib folder. At the moment it contains the commands for a Sileno mower only. Since these commands have to be revealed by monitoring the connection between the Gardena app and the Gardena cloud server, I cannot test all of them. If you have a device that is not supported and you want to contribute, you could do the following on Android devices:
- Install the GARDENA Smart System App on the android phone, if not yet installed.
- Install an app for sniffing the traffic between the app and the web service on your phone. I like Packet Capture.
- Activate the sniffer and send a command to the device using the GARDENA Smart System app.
- Send me the retrieved JSON via Email or, even better, add the commands to gardena_commands.json for yourself and open a pull request. For example, a JSON send by the Gardena app may look like this:
POST /sg-1/devices/[DeviceID]/abilities/mower/command?locationId=[LocationID] HTTP/1.1
Host: sg-api.dss.husqvarnagroup.net
Connection: keep-alive
Content-Length: 52
Origin: https://sg-api.dss.husqvarnagroup.net
Content-Type: application/json; charset=UTF-8
Accept: application/json, text/javascript, */*; q=0.01
Authorization-Provider: husqvarna
X-Requested-With: XMLHttpRequest
Referer: https://sg-api.dss.husqvarnagroup.net/sg-1/index/android/
Accept-Encoding: gzip, deflate
Accept-Language: de-DE,en-US;q=0.9
{
"name": "park_until_further_notice",
"parameters": {}
}