This is a small Node.JS library that allows integrating Worx Landroid robotic mowers with various home automation systems for logging/charting Landroid status such as battery percentage and notifications for Landroid alarms.
The library is assumed to work with any Landroid sporting WiFi; both the 2015-2016 models with an on device RESTful API (such as WG796E and WG797E) and the 2017 models with a cloud service (such as WR201SI, WR105SE and WR110MI). Testing has mainly been performed with WG796E firmware version 12.1 and 12.6. Please report any breaking changes to the API.
(The installation instructions make reference to .bat files. If you are not on Windows, you are assumed to know what to do...)
Regardless of the home automation system you are planning to use, you need to do the following:
- Install Node.JS. Make sure you allow
npm
to be on yourPATH
. - Clone this Git repo -
git clone https://github.com/mjiderhamn/worx-landroid-nodejs.git
(First install Git if not already installed). Or by all means use the GitHub Windows client. - Run
install.bat
to download dependencies. - Edit the cloned
config.js
. Should be self explanatory. Although you may want to wait with this step until you have installed your home automation software, since you will need some details from that installation. NOTE! Make sure not to remove any quotations or commas!
If you plan to use Home Assistant, follow the installation instructions at https://home-assistant.io/getting-started/.
- 2015-2016 models: To start sending Landroid information to Home Assistant run
landroid2home-assistant.bat
- 2017 models:
- Make sure you have OpenSSL installed (see below), either on your
PATH
or with the environment variableOPENSSL_BIN
pointing to the executable. - To start sending Landroid information to Home Assistant run
landroid-cloud2home-assistant.bat
.
- Make sure you have OpenSSL installed (see below), either on your
For tips setting up push notifications, see here.
If you plan to use Domoticz home automation system, follow these additional steps:
- Set up some MQTT broker/service, such as Mosquitto
- Note that on Windows you may need to install OpenSSL, see http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/readme-windows.txt linking to the URL in the OpenSSL section below.
- Install Domoticz on some supported hardware (PC, Raspberry Pi, ...).
- To start sending Landroid information to Domoticz:
- 2015-2016 models: Run
landroid2domoticz.bat
- 2017 models:
- Make sure you have OpenSSL installed (see below), either on your
PATH
or with the environment variableOPENSSL_BIN
pointing to the executable. - Run
landroid-cloud2domoticz.bat
.
- Make sure you have OpenSSL installed (see below), either on your
- Use your browser and navigate to Utility in the Domoticz UI.
The documentation of the API has been moved here. Some documentation for newer (2017) models can be found here.
For some setups you need to haven OpenSSL installed. For Windows, this might be helpful: http://slproweb.com/products/Win32OpenSSL.html