sihui
(SiHui)
December 13, 2022, 4:14pm
245
Sure, install ioBroker, it is just a curl one liner (pretty impressive),
install the MQTT client adapter (=Binding in openHAB), point it to your MQTT broker.
install the Worx adapter
configure a MQTT instance =(Thing in openHAB), configure a Worx instance, all datapoints (=Channels in openHAB) will be available right away.
Go to each Worx datapoint you intend to use and click the gear sign on the far right, activate MQTT for that datapoint and activate subscription and or publishing.
Create a generic MQTT Thing in openHAB and add channels for each ioBroker datapoint you intend to use.
Thatās it.
I have no idea as I used a separate lxc container on my Proxmox installation. I would suggest to use not the openHAB server as this is hopefully only a workaround until the binding gets fixed in openHAB.
1 Like
mito
(Micha T.)
December 14, 2022, 6:21am
246
Thank you so much for your explanation!
I am still not sure, whether I really want to install ioBroker in parallel to OpenHAB on the same Raspberry. If there is no sustainable solution with the Binding itself until March next year, I could give it a try - letās wait and seeā¦
Any update @nibi79 ? I think a fix of the openhab binding itself would be highly appreciated from many people!
1 Like
nibi79
(NB)
March 8, 2023, 9:36am
248
hi all,
please take a look at my post here:
opened 08:34AM - 21 Oct 22 UTC
bug
Hi,
Since around 1 week I got the blocked message in the binding. I tried to⦠wait 48 hours and also remove and add back the mower to my worx account without success. The Worx app operates normally.
Here is the log:
`2022-10-21 10:20:42.915 [ERROR] [d.internal.WorxLandroidBridgeHandler] - Connection blocked from Worx, please try again in 24h
2022-10-21 10:22:50.060 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://id.eu.worx.com/oauth/token
2022-10-21 10:22:50.692 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"token_type":"Bearer","expires_in":3600,"access_token":"***hidden for debug log***","refresh_token":"***hidden for debug log***"}
2022-10-21 10:22:50.696 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://api.worxlandroid.com/api/v2/users/me
2022-10-21 10:22:50.858 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"id":267139,"user_type":"customer","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2020-03-27 20:33:54","updated_at":"2022-10-21 04:45:35"}
2022-10-21 10:22:50.874 [INFO ] [d.internal.WorxLandroidBridgeHandler] - Start retrieving AWS certificate
2022-10-21 10:22:50.877 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://api.worxlandroid.com/api/v2/users/certificate
2022-10-21 10:22:51.024 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"id":160983,"pkcs12":"***hidden for debug log***","active":false,"created_at":"2020-04-10 11:21:16","updated_at":"2020-04-10 11:21:16"}
2022-10-21 10:22:51.034 [ERROR] [d.internal.WorxLandroidBridgeHandler] - Connection blocked from Worx, please try again in 24h
2022-10-21 10:23:43.735 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://id.eu.worx.com/oauth/token
2022-10-21 10:23:44.169 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"token_type":"Bearer","expires_in":3600,"access_token":"***hidden for debug log***","refresh_token":"***hidden for debug log***"}
2022-10-21 10:23:44.175 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://api.worxlandroid.com/api/v2/users/me
2022-10-21 10:23:44.236 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"id":267139,"user_type":"customer","push_notifications":true,"location":null,"mqtt_endpoint":"a1optpg91s0ydf-ats.iot.eu-west-1.amazonaws.com","actions_on_google_pin_code":null,"created_at":"2020-03-27 20:33:54","updated_at":"2022-10-21 04:45:35"}
2022-10-21 10:23:44.251 [INFO ] [d.internal.WorxLandroidBridgeHandler] - Start retrieving AWS certificate
2022-10-21 10:23:44.254 [DEBUG] [nternal.webapi.request.WebApiRequest] - URI: https://api.worxlandroid.com/api/v2/users/certificate
2022-10-21 10:23:44.387 [DEBUG] [nternal.webapi.request.WebApiRequest] - Worx Landroid WebApi Response: {"id":160983,"pkcs12":"***hidden for debug log***","active":false,"created_at":"2020-04-10 11:21:16","updated_at":"2020-04-10 11:21:16"}
2022-10-21 10:23:44.459 [ERROR] [d.internal.WorxLandroidBridgeHandler] - Connection blocked from Worx, please try again in 24h
`
Any idea?
and if possible, you can test this new version:
new AWS implmementation
I can confirm that the addon works with OH 3.4.1 and 3.4.2, but not with OH 3.2. I'm not sure if it works with other versions of OH, so please let me know if this version v3...
Currently, it looks like OH versions >= 3.3.0 are supported.
As always, your feedback is appreciated
4 Likes
mito
(Micha T.)
March 8, 2023, 11:40am
249
Great! Seems to work, the bridge is online again! I did not yet start the mower due to snow, but all values are already successfully received from the mower and shown in the sitemap!
Thank you so much for your efforts, nibi79!
1 Like
Today I upgraded OH to 3.4.2 and installed the binding.
It seems to be loaded, openhab-cli shows itās active:
290 ā Active ā 80 ā 3.4.1 ā openHAB Add-ons :: Bundles :: worxlandroid Binding
But the items canāt find the reference to the channel. Itās always unknown / invalid link.
My things definition:
Bridge worxlandroid:worxlandroidBridge:MyWorxBridge "MyWorx Bridge" [ webapiUsername="aa@aa.com", webapiPassword="aaa" ] {
Thing mower xyz "MyLandroid Shaun" [ refreshStatusInterval=3600, pollingInterval=3600 ]
}
My items:
Number LandroidBatteryLevel "Battery Level [%d %%]" <battery> (persistGroup, MowerBat, MowerBatStatus_Chart) {channel="worxlandroid:mower:MyWorxBridge:xyz:datBattery#batteryLevel"}
The webgui of OH tells me the Bridge & Thing are online. But when I look into the mower thing, there are no channels detected.
I had this running on OH 3.1 before without any issues. I didnāt change the config filesā¦
Any help appreciated!
sihui
(SiHui)
March 18, 2023, 6:27pm
251
foobar2605:
pollingInterval=3600
Maximum for pollingIntervall
is 599.
It is way better to use autodetected Things, you would have seen the max right away:
Thanks a lot for the quick reply.
That indeed helped.
About autodetection: I have all things defined in a config file. I would expect some error message when the thing file is loaded. Because I didnāt change the file migrating from OH 3.1 to OH3.4.2 and using the new binding.
Matt77
(Matt)
March 18, 2023, 7:00pm
253
may i ask where i could find this widget youāre using here?[quote=ācypresss, post:231, topic:95246, full:trueā]
Thatās strangeā¦
[/quote]
sihui
(SiHui)
March 18, 2023, 7:37pm
254
It is a desktop application from the German Worx forum, but that deskapp is broken at the moment:
Matt77
(Matt)
March 18, 2023, 11:31pm
255
Ahh ok and i thought it would be a openhab 3 widget.