openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

Binding Request: Worx Landroid S (Modell 2017) #2468

Closed Silencer80 closed 7 years ago

Silencer80 commented 7 years ago

Deleted on request from the manufacturer.

int5749 commented 7 years ago

Hi, I own the hardware as well and would be more than happy to contribute :-) I had iobroker installed but don't like to use different automation tools.

tj2000bch commented 7 years ago

Hi, I also interested on a binding for Landroid S Model 2017 and can test and debug.

Silencer80 commented 7 years ago

Deleted on request from the manufacturer.

Ontrackx commented 7 years ago

Hi, I also interested on a binding for Landroid S Model 2017 and can test.

Ontrackx commented 7 years ago

@Silencer80 , would you pleeease help me with your soulution via teamwiever? I always have troubles reciving certificates

tj2000bch commented 7 years ago

Is it possible to install a Mosquitto-Server as Bridge and as Broker on the same System? Can I have more than one config File on Mosquitto?

tj2000bch commented 7 years ago

Hi, I have the «pkcs12» Certifikate from my Landroid. { "pkcs12":"MIIRTERAzCCCV8G ………….B\/uxcECNtYBiY+Jv4V" } How can I convert this to a “.pem” file?

Silencer80 commented 7 years ago

Deleted on request from the manufacturer.

tj2000bch commented 7 years ago

@Silencer80 Hi Boris My only problem is, which part of the PKCS12 do i need to save in which file. In p12, pxf or cer? I tried it with Windows and a Base64 online decoder. Tobi

Ontrackx commented 7 years ago

Finally got this working to domotics (testing purposes) but battery is missing from 2017 model?

Certificate retrieved Fetching root CA Connecting to MQTT broker Connected to MQTT broker - subscribing to DB510/F0FE6B207FB4/commandOut Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0} Landroid status: {"state":"Home","errorMessage":null,"batteryPercentage":null,"totalMowingHours":35.8,"totalDistance":28249,"noOfAlarms":0}

whopperg commented 7 years ago

thanks @Silencer80 !!!

Here some notes for others to complete/clear up the how to:

Update: content of landroid_status.map:. put this file under /openhab2/conf/transform

0=Idle 
2=Start sequence
3=Leaving home
4=Follow wire
5=Searching home
6=Searching wire 
7=Mowing
8=Lifted
9=Trapped
10=Blade blocked
11=Debug
12=Remote control

content of landroid_error.map:. put this file under /openhab2/conf/transform

0=Everything is fine
1=Trapped
2=Lifted
3=Wire missing
4=Outside wire
5=Raining
6=Close door to mower
7=Close door to go home
8=Blade motor blocked
9=Wheel motor blocked
10=Trapped timeout
11=Upside down
12=Battery low
13=Reverse wire
14=Charge error
15=Timeout finding home

To Poll the Status more frequently, create a shell script (/opt/openhab2/etc/get_landroid_state.sh):

#!/bin/sh
mosquitto_pub --cafile /etc/mosquitto/ca_certificates/vs-ca.pem --cert /etc/mosquitto/certs/cert.pem --key /etc/mosquitto/certs/key.pem -h a1optpg91s0ydf.iot.eu-west-1.a$st-1.amazonaws.com -p 8883 -q 1 -d -t DB510/**YOUR_LANDROID_MAC_ADDRESS**/commandIn -i **YOUR_ANDROID_ID** -m '{}'

and add this to your crontab ( crontab -e) :

5 * * * * /opt/openhab2/etc/get_landroid_state.sh >/dev/null 2>&1

whopperg commented 7 years ago

Hey @Silencer80 , is it possible that you could upload or post your map and js files? This would be nice as i dont have any Clou what i should put in there ;-)

Thanks!

Silencer80 commented 7 years ago

Hey @All,

the manufacturer has informed me that this solution is bothering its systems. Above all, the polling function mentioned here by others causes considerable problems and costs.

So please do not use that anymore and refrain from polling.

Thank you! -Boris