Worx Landroid S with openHAB

Hi @virtualzone,

i try to get the bridge working. But i get IoBrokerAdapter Error -> wrong email or password!

homeautomation:~/landroid-bridge$ node dist/server.js
[2018-07-25T12:25:27.144] [INFO] server.ts - Starting Landroid Bridge…
[2018-07-25T12:25:27.150] [INFO] server.ts - Setting port to 3000…
[2018-07-25T12:25:27.347] [INFO] Mqtt - Connecting to MQTT Broker…
[2018-07-25T12:25:27.380] [INFO] App - Adding static files path /home/homeautomation/landroid-bridge/www
[2018-07-25T12:25:27.382] [INFO] Scheduler - Skipping scheduler initialization (not enabled)
[2018-07-25T12:25:27.395] [INFO] LandroidS - Initializing Landroid Cloud Service…
[2018-07-25T12:25:27.460] [ERROR] Mqtt - MQTT error: [object Object]
[2018-07-25T12:25:27.657] [ERROR] IoBrokerAdapter - wrong email or password!
[2018-07-25T12:25:27.659] [ERROR] App - Unhandled exception: [object Object]
[2018-07-25T12:25:28.475] [ERROR] Mqtt - MQTT error: [object Object]
[2018-07-25T12:25:29.479] [ERROR] Mqtt - MQTT error: [object Object]
[2018-07-25T12:25:30.484] [ERROR] Mqtt - MQTT error: [object Object]
[2018-07-25T12:25:31.488] [ERROR] Mqtt - MQTT error: [object Object]
[2018-07-25T12:25:32.492] [ERROR] Mqtt - MQTT error: [object Object]

Which email or password from the config.json file does he mean? From the section “landroid-s”?


“landroid-s”: {
“enable”: true,
“email”: “xxx@xxx.xx”,
“pwd”: “xxx”
},
“mqtt”: {
“enable”: true,
“url”: “mqtt://xxx@xxx@localhost”,
“topic”: “landroid”

Thanks you in advance.

Hi @curro,

yes, the error message “wrong email or password” refers to the settings from the “landroid-s” section. Please make sure you’ve entered the correct credentials for your Landroid Cloud account here (the one you’re using in the mobile Landroid app) .

There also seems to be something wrong in your MQTT connection URL. Username and password are usually separated like this: mqtt://username:password@localhost

Hi,
thx for helping. The connection String was wrong. My mistake.
Now he tries to connect.

Sorry,
but i think i need your help again. Since yesterday he tries initialize the bridge. But he said, “mower not found, fallback to first mower”.

homeautomation@Skynet:~/Downloads/landroid-bridge$ node dist/server.js
[2018-07-29T09:38:04.669] [INFO] server.ts - Starting Landroid Bridge…
[2018-07-29T09:38:04.674] [INFO] server.ts - Setting port to 3000…
[2018-07-29T09:38:04.766] [INFO] Mqtt - Connecting to MQTT Broker…
[2018-07-29T09:38:04.818] [INFO] App - Adding static files path /home/homeautomation/Downloads/landroid-bridge/www
[2018-07-29T09:38:04.820] [INFO] Scheduler - Skipping scheduler initialization (not enabled)
[2018-07-29T09:38:04.834] [INFO] LandroidS - Initializing Landroid Cloud Service…
[2018-07-29T09:38:04.927] [INFO] Mqtt - Successfully connected to MQTT Broker!
[2018-07-29T09:38:05.251] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.xx API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-07-29T09:38:05.709] [INFO] IoBrokerAdapter - mower not found, fallback to first mower
[2018-07-29T09:39:04.836] [INFO] LandroidS - Could not finish initialization, retrying…
[2018-07-29T09:39:05.223] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.xx API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-07-29T09:39:05.614] [INFO] IoBrokerAdapter - mower not found, fallback to first mower
[2018-07-29T09:40:04.840] [INFO] LandroidS - Could not finish initialization, retrying…
[2018-07-29T09:40:05.217] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.xx API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-07-29T09:40:05.719] [INFO] IoBrokerAdapter - mower not found, fallback to first mower
[2018-07-29T09:41:04.842] [INFO] LandroidS - Could not finish initialization, retrying…
[2018-07-29T09:41:05.268] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.xx API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-07-29T09:41:05.748] [INFO] IoBrokerAdapter - mower not found, fallback to first mower
[2018-07-29T09:42:04.844] [INFO] LandroidS - Could not finish initialization, retrying…
[2018-07-29T09:42:05.275] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.xx API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-07-29T09:42:05.727] [INFO] IoBrokerAdapter - mower not found, fallback to first mower

What can i do?
My Model: WR105SI.1

The same is happening for me … Never used the Landroid bridge before, but I am getting the following errors after having set it up the day before:

[INFO] server.ts - Starting Landroid Bridge...
[INFO] server.ts - Setting port to 3000...
[INFO] Mqtt - Connecting to MQTT Broker...
[INFO] App - Adding static files path /opt/landroid-bridge/www
[INFO] Scheduler - Skipping scheduler initialization (not enabled)
[INFO] LandroidS - Initializing Landroid Cloud Service...
[DEBUG] IoBrokerAdapter - UUID: 9<redacted>
[DEBUG] IoBrokerAdapter - API token set to q<redacted>
[DEBUG] IoBrokerAdapter - post:{"email":"<redacted>","password":"<redacted>","uuid":"9<redacted>","type":"app","platform":"android"}
[DEBUG] IoBrokerAdapter - q<redacted>
[INFO] IoBrokerAdapter - Logged in as <redacted> API Token Set to : R<redacted>
[DEBUG] IoBrokerAdapter - Mqtt Server:  data.iot.eu-west-1.amazonaws.com
[DEBUG] IoBrokerAdapter - R<redacted>
[DEBUG] IoBrokerAdapter - AWS certificate done
[DEBUG] IoBrokerAdapter - R<redacted>
[INFO] IoBrokerAdapter - mower not found, fallback to first mower
[DEBUG] IoBrokerAdapter - Mac adress set to: F0<redacted>
[DEBUG] IoBrokerAdapter - Mqtt connected!
...
[INFO] LandroidS - Could not finish initialization, retrying...

Thanks!

@Hooch @curro:
I’ve committed a new version to GitHub and Docker Hub yesterday. Could you please give the new version a try and see if the error still occurs?
Thanks!

Hi,
thx for your help.
Now i get following output:

[2018-08-07T08:39:29.927] [INFO] server.ts - Starting Landroid Bridge…
[2018-08-07T08:39:29.934] [INFO] server.ts - Setting port to 3000…
[2018-08-07T08:39:30.070] [INFO] Mqtt - Connecting to MQTT Broker…
[2018-08-07T08:39:30.155] [INFO] App - Adding static files path /etc/openhab2/scripts/landroid-bridge/www
[2018-08-07T08:39:30.156] [INFO] Scheduler - Skipping scheduler initialization (not enabled)
[2018-08-07T08:39:30.164] [INFO] LandroidS - Initializing Landroid Cloud Service…
[2018-08-07T08:39:30.274] [INFO] Mqtt - Successfully connected to MQTT Broker!
[2018-08-07T08:39:30.599] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.de API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-08-07T08:39:31.044] [INFO] IoBrokerAdapter - mower 0 selected
[2018-08-07T08:39:31.044] [INFO] IoBrokerAdapter - undefined
[2018-08-07T08:39:31.045] [WARN] IoBrokerAdapter - product_id: 37 Plese make an issue on git with this product id
[2018-08-07T08:40:30.207] [INFO] LandroidS - Could not finish initialization, retrying…
[2018-08-07T08:40:30.474] [INFO] IoBrokerAdapter - Logged in as xxx@xxx.de API Token Set to : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[2018-08-07T08:40:31.438] [INFO] IoBrokerAdapter - mower 0 selected
[2018-08-07T08:40:31.438] [INFO] IoBrokerAdapter - undefined
[2018-08-07T08:40:31.439] [WARN] IoBrokerAdapter - product_id: 37 Plese make an issue on git with this product id

Where can i select the mower?

Best regards.

…so it works. I only have to wait a few miinutes.
Thank you so much.

It did not change anything. Still the same as in my initial reply.

@curro: How long did you have to wait before it started working?

Hi,
i waited up to 10 Minutes.

Did not help here unfortunately.

Seems to work now. I haven’t changed anything though.

Hi together,

I use the bridge to bring the Landroid Worx S into smartVISU. The status information and the landroid/set/start and landroid/set/stop work fine. But on the landroid/set/mow command I got an error message.

I tried the following command

mosquitto_pub -h 192.168.81.79 -t landroid/set/mow -m stop

I got following error

[2018-11-02T08:21:08.785] [INFO] Mqtt - Incoming MQTT message to topic landroid/set/mow: stop
[2018-11-02T08:21:08.785] [ERROR] LandroidS - Invalid MQTT payload for topic set/mow

Can anybody help.

Many thanks in advance.

Regards
Mirko

Hi, I also don’t understand how to get a working ON/OFF Button in OH to work with MQTT2-Binding.
With these settings I have no success:


Anyone has this working?

Hi i have this problem. Any idea?

[2019-04-10T16:25:35.753] [INFO] server.ts - Starting Landroid Bridge…
[2019-04-10T16:25:35.757] [INFO] server.ts - Setting port to 3000…
[2019-04-10T16:25:35.830] [INFO] Mqtt - Connecting to MQTT Broker…
[2019-04-10T16:25:35.832] [INFO] App - Adding static files path /root/landroid-bridge/www
[2019-04-10T16:25:35.832] [INFO] Scheduler - Skipping scheduler initialization (not enabled)
[2019-04-10T16:25:35.836] [INFO] LandroidS - Initializing Landroid Cloud Service…
[2019-04-10T16:25:35.838] [WARN] IoBrokerAdapter - landroid-cloud-2.js will be replaced in next version by mqttCloud.js and worxConfig.js. Reason: better handling of models and mqttCloud supports more brands by a diffent config see also: https://www.npmjs.com/package/iobroker.kress
[2019-04-10T16:25:35.882] [INFO] Mqtt - Successfully connected to MQTT Broker!
[2019-04-10T16:25:35.931] [INFO] Mqtt - Incoming MQTT message to topic landroid/set/: stop
[2019-04-10T16:25:35.931] [ERROR] LandroidS - Unknown MQTT topic: set/
[2019-04-10T16:25:36.244] [ERROR] App - Unhandled exception: SyntaxError: Unexpected token N in JSON at position 0

Landroid have changed their API.

There’s an Issue created for this on GitHub: https://github.com/weweave/landroid-bridge/issues/46

Thanks to the immediate response! I just didn’t understand whether to install the package or what to replace the mqttCloud.js file

You should need to do the following:

1: Edit package.json to change the referenced version of ioBroker.landroid-s from 2.5.4 to 2.5.5
2: Edit the src/LandroidS.ts file changing import * as LandroidCloud from "iobroker.landroid-s/lib/landroid-cloud-2"; to import * as LandroidCloud from "iobroker.landroid-s/lib/mqttCloud"; as noted in the pull request.
3: Execute npm run grunt to rebuild and pull the new stuff.

Sorry for a clarification I used landroid bridge to associate it with openhab …

thank you very much I succeeded!

1 Like