Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Worx Landroid

Markus Storm edited this page Jun 30, 2016 · 12 revisions

Worx Landroid

Worx - a company to manufacture garden and homeworking tools - is also offering a range of 'Landroid' robot lawn mowers. Some of the current models (M1000i a.k.a. WG796E.1 and M1500i a.k.a. WG797E) introduced end of 2014 feature onboard WiFi and app control. As the app is essentially just using HTTP and JavaScript, we can reuse this interface to integrate with openHAB.

MQTT based control

For a MQTT and Python based solution, check out this project. Currently it provides read-only values, but the author will add the start/stop actions soon, too.

HTTP binding based control

Use HTTP binding to directly query and control Landroids.

in items: (replace IP and use your Landroid PIN instead of "1234")

String Landroid_status "Landroid Status [%s]" <garden> (Rasenmaeher) { http="<[http://admin:[email protected]/jsondata.cgi:5000:REGEX(.*\"state\":\"(.*?)\",.*)]" } String Landroid_Command "Landroid action" <garden> (Rasenmaeher)

If you call the URL, output shows a number of parameters, state being just one of them. Feel free to pick those of interest and use a copy of the Landroid_Status item with a modifed regex.

in sitemap:

Text item=Landroid_status label="Landroid status [%s]" Switch item=Landroid_Command mappings=[11="Start", 12="Stop"]

put up a rule:

`rule "Landroid command" when Item Landroid_Command received command then /* Commands: 11 = start 12 = stop (& return to base) 13 = charging complete 14 = manual stop 15 = going home */

    val String URL = "http://admin:[email protected]/jsondata.cgi"

    var String jsondata = 'data=[[\"settaggi\",' + Landroid_Command.state.toString + ',1]]'


    logInfo("rules", "Sending command " + Landroid_Command.state + " to Landroid.")

    sendHttpPostRequest(URL, "application/x-www-form-urlencoded", jsondata)

end `

Installation


User Interfaces


Community

(link to openHAB forum)

Development



Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally