Control your Husqvarna automower using Automower connect API.
- php 5.x
- curl
include the husqvarna_api.class.php file in your own script. require_once("husqvarna_api.class.php");
$session_husqvarna = new husqvarna_api();
$session_husqvarna->login($account, $passwd);
$robots = $session_husqvarna->list_robots();
$status = $session_husqvarna->get_status("1708XXXX-17013YYYY"):
$position = $session_husqvarna->get_geofence("170811841-170130242"):
$session_husqvarna->control("1708XXXX-17013YYYY", 'START'):
The commande can be PARK, STOP, START
$session_husqvarna->logout();
The API and command line are not stable and can change at any time.
chrisz (@chrisz)