openhab / openhab-addons

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

[gardena] Support for firmware 2.x is lacking in openHAB #7169

Closed CHTHSCH closed 1 year ago

CHTHSCH commented 4 years ago

Please see this thread https://community.openhab.org/t/gardena-binding-various-problems-errors/93358?u=chthsch where I documented a number of issues regarding the watering_computer in the Gardena binding.

Apologies, that I did not re-document here, what I had documented in the above mentioned thread.

andrexp commented 4 years ago

I have a suspicion. I have a normal Sileno and not a Sileno life. Maybe this mower sends another device type. I need a TRACE log when the binding starts. Please send the log by mail.

done.

gerrieg commented 4 years ago

@andrexp Thanks, as i suspected: "modelType": { "value": "GARDENA device" }

This is definitely wrong. I'll implement a workaround and inform Gardena.

tarabas73 commented 4 years ago

Sorry for confusing!

after deleting and define a new item, commandDuration is without error!

ascreator13 commented 4 years ago

Ive got the same problem. How do i use this fix? How do i update?

gerrieg commented 4 years ago

Added modelType workaround and other small bugfixes: Download

ascreator13 commented 4 years ago

woah thats easy. an i am compiling whole openhab addons now for an hour or so

ascreator13 commented 4 years ago

ok sorry. how do i install it? i first uninstalled the 2.4.0 one in the paper ui. but what then?

i copied it to addons but paper ui doesnt allow me to add things

andrexp commented 4 years ago

Added modelType workaround and other small bugfixes: Download

Great work @gerrieg, it works! After removing Gardena Account-Thing and re-adding it again I was able to discover my SILENO life mower. All properties I currently use were filled. Thank you!

andrexp commented 4 years ago

ok sorry. how do i install it? i first uninstalled the 2.4.0 one in the paper ui. but what then?

i copied it to addons but paper ui doesnt allow me to add things

Did you fix the permissions? chown openhab:openhab to binding-jar? What does the log-file say?

ascreator13 commented 4 years ago

oh i see i got this:

2020-04-22 15:22:35.914 [ERROR] [org.openhab.binding.gardena ] - FrameworkEvent ERROR - org.openhab.binding.gardena^M org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.gardena [223] Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"

<------>at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?] <------>at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1634) ~[?:?] <------>at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1614) ~[?:?] <------>at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1585) ~[?:?] <------>at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1528) ~[?:?] <------>at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[?:?] <------>at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) [?:?] <------>at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) [?:?]

andrexp commented 4 years ago

Yes, there is the problem: You have to fix the dependency. Which openHAB version do you use?

2020-04-22 15:22:35.914 [ERROR] [org.openhab.binding.gardena ] - FrameworkEvent ERROR - org.openhab.binding.gardena^M org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.gardena [223] Unresolved requirement: Import-Package: com.google.gson; version="[2.8.0,3.0.0)"

You could try to fix it manually as described over here: https://community.openhab.org/t/problem-dependencies/73037

Maybe you could also upgrade your OH version? I am not sure if this will fix this depenency problem automatically...

ascreator13 commented 4 years ago

ok i installed the recent version of openhab. the addon loads perfectly.

but now it asks me for an "The Gardena smart system integration API key"

andrexp commented 4 years ago

ok i installed the recent version of openhab. the addon loads perfectly.

but now it asks me for an "The Gardena smart system integration API key"

As @gerrieg wrote before you have to request an API key from official GARDENA cloud services. According to README of this binding.

ascreator13 commented 4 years ago

ok got the key. What do i do with the secret? but now i get the following message in paper ui: OFFLINE - COMMUNICATION_ERROR org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

password is correct

int5749 commented 4 years ago

ok got the key. What do i do with the secret? but now i get the following message in paper ui: OFFLINE - COMMUNICATION_ERROR org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

password is correct

HAve you read => https://github.com/gerrieg/openhab2-addons/blob/gardena/bundles/org.openhab.binding.gardena/README.md

Have you connected your api in dev-portal?

ascreator13 commented 4 years ago

Oh got it. i needed to do it with the things file. paper ui didnt work.

gerrieg commented 4 years ago

@ascreator13 I just tried it with paper ui, no problem.

cwihne commented 4 years ago

@gerrieg Thank you very much for the updated binding. I am successfully running sensor, watering computer and powerplug. May I ask for the unit of measurement of sensor's light intensity? Does Gardena explicitly report it in their docs or transmission? Earlier binding provided lux, now suggested Number:Intensity refers to W/m². But output is pretty high number, today ~80 KW/m² in Cologne, equivalent to 54,640,000 lx. At same time, astro binding reports a total of "just" ~700 W/m². Btw. I am aware that the light intensity measured by this sensor type is far from being precise.

Older binding reported also temperature at watering computer. Just like frost warning it is not part of API data, correct? Was somewhat interesting to see the temperature at sun lit wall of house.

gerrieg commented 4 years ago

light intensitiy is in lux

These properties will be provided by Gardena later: mower: timer_next_start water control: ambient_temperature and frost_warning

When they are available I can't say, but as soon as they are available I will adjust the binding accordingly

int5749 commented 4 years ago

@gerrieg Have you probably also heard/read if it's planned to report "Last Online" as timestamp? This as usefull sometimes and is not yet available for none of the devices.

andrexp commented 4 years ago

@gerrieg Today I really wanted to try out the new binding and got a new error. After I tried to start my SILENO life manually the following shows up in my log file:

18:15:22.779 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Maehroboter_Mow' received command ON
18:15:22.846 [DEBUG] [.internal.handler.GardenaThingHandler] - Received Gardena command: MowerCommand, START_SECONDS_TO_OVERRIDE
18:15:22.847 [INFO ] [arthome.event.ItemStatePredictedEvent] - Maehroboter_Mow predicted to become ON
18:15:22.858 [TRACE] [ing.gardena.internal.GardenaSmartImpl] - >>> PUT https://api.smart.gardena.dev/v1/command/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx data: {"data":{"id":"mcid","type":"MOWER_CONTROL","attributes":{"command":"START_SECONDS_TO_OVERRIDE","seconds":3600}}}
18:15:22.866 [DEBUG] [ing.gardena.internal.GardenaSmartImpl] - Gardena API token valid
18:15:22.873 [DEBUG] [ing.gardena.internal.GardenaSmartImpl] - Token expiration: accessToken: 2020-04-23T19:09:21.728+02:00[Europe/Berlin], refreshToken: 2020-05-02T15:05:16.492+02:00[Europe/Berlin]
18:15:23.427 [TRACE] [ing.gardena.internal.GardenaSmartImpl] - <<< status:502, {"errors":[{"id":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","status":"SG_BACKEND_ERROR","code":"502","title":"error communicating with the backend"}]}
18:15:23.433 [WARN ] [.internal.handler.GardenaThingHandler] - Error 502 Bad Gateway
org.openhab.binding.gardena.internal.exception.GardenaException: Error 502 Bad Gateway
    at org.openhab.binding.gardena.internal.GardenaSmartImpl.executeRequest(GardenaSmartImpl.java:201) ~[bundleFile:?]
    at org.openhab.binding.gardena.internal.GardenaSmartImpl.sendCommand(GardenaSmartImpl.java:382) ~[bundleFile:?]
    at org.openhab.binding.gardena.internal.handler.GardenaThingHandler.handleCommand(GardenaThingHandler.java:190) [bundleFile:?]
    at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]
    at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
    at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]
    at com.sun.proxy.$Proxy5210.handleCommand(Unknown Source) [?:?]
    at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:74) [bundleFile:?]
    at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?]
    at sun.reflect.GeneratedMethodAccessor182.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]
    at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
    at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_152]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_152]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_152]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_152]
Caused by: org.openhab.binding.gardena.internal.exception.GardenaException: Error 502 Bad Gateway
    at org.openhab.binding.gardena.internal.GardenaSmartImpl.executeRequest(GardenaSmartImpl.java:193) ~[bundleFile:?]
    ... 19 more

Nothing happens. My mower does not start.

int5749 commented 4 years ago

light intensitiy is in lux

So Number:Intensity is wrong as this - according to openHAB Docu - is valued in W/m²

It possible to convert => A watt per square centimeter at 555 nm (W·cm⁻²) is the derived SI unit of illuminance and luminous emittance, measuring luminous flux per unit area and equal to 6,830,000 lux. The wavelength of 555 nanometers, which is in the middle of the visible-light spectrum, corresponds to the frequency of 540 terahertz.

But if value is Lux already which suit to mine as this is currently at 2847 => 2,8klx

Regards

int5749 commented 4 years ago

Nothing happens. My mower does not start.

Hi, how about your smart gateway? Is this connected properly? Meaning both LED are Green, no flashing and no RED? Because I have it ocassional that my gateway is not connected properly - likely because of to much testing - but all is working fine once both LED are green => Connection succesfull

andrexp commented 4 years ago

Yes, it is. Everything else, e.g. getting battery percentage and mower state, is working.

scalmes commented 4 years ago

Yes, it is. Everything else, e.g. getting battery percentage and mower state, is working.

Hello I have the same issue with my mower (brand new Sileno City). All status indicators and battery percentage working well (I am plotting it to get a nice graph of the mowing cycles), but the 4 switch items (manual start, park, resume schedule, pause schedule) do not seem to do anything? I am also getting the Gateway error when I try to use the manual start switch. All the switches go back to 0 after a few seconds (I assume this is wanted behaviour?). The park switch is also not working after a manual start using the Gardena app. Thanks for the good work!

andrexp commented 4 years ago

@scalmes Maybe you could post also some lines out of your log file for debug purposes

int5749 commented 4 years ago

I imagine the difference between WateringComputer:valve#duration and WateringComputer:valve_commands#commandDuration

Is it "only" about 1st is read-only and 2nd can be changed??

gerrieg commented 4 years ago

@int5749 Last Online: Use the latest timestamp of each timestamp channel

Number:Intensity Thank you for the hint, i will change it

WateringComputer:valve#duration Is the value the API is sending. Does not count to 0, you have to do this with a rule

WateringComputer:valve_commands#commandDuration This is a local value that is sent via the command. So first set the commandDuration and then open the value with the start_seconds_to_override Switch I will describe this even better in the readme

@andrexp & @scalmes This is a Gardena backend error. Does it still exist? If yes i can forward it to Gardena.

int5749 commented 4 years ago

@gerrieg just recognized a small cosmetic topic Translation of activity differs between Irrigation and Water Control Irrigation Ventil geschlossen

Water Control VENTIL GESCHLOSSEN

Mayby you like to correct this with next build?

snakeru commented 4 years ago

Gardena is now aware of the problem with some mowers (was reported by a few users in this thread) and will be working on fixing it.

cwihne commented 4 years ago

Can someone point me to Gardena's feature request thread or portal? I'd like to suggest API support of boolean info for winter break "Winterschlaf" per device, to react occordingly in rules etc.

gerrieg commented 4 years ago

I have a water control and the text is Ventil geschlossen. It's the same line in the i18n file as for the irrigation control.

snakeru commented 4 years ago

@cwihne I don't know about such thread, sorry. But your feature request is now reported, too.

scalmes commented 4 years ago

Maybe you could post also some lines out of your log file for debug purposes

Here is the error I get when I try to start the mower manually:

11:47:04.310 [WARN ] [.internal.handler.GardenaThingHandler] - Error 502 Bad Gateway org.openhab.binding.gardena.internal.exception.GardenaException: Error 502 Bad Gateway at org.openhab.binding.gardena.internal.GardenaSmartImpl.executeRequest(GardenaSmartImpl.java:201) ~[bundleFile:?] at org.openhab.binding.gardena.internal.GardenaSmartImpl.sendCommand(GardenaSmartImpl.java:382) ~[bundleFile:?] at org.openhab.binding.gardena.internal.handler.GardenaThingHandler.handleCommand(GardenaThingHandler.java:190) [bundleFile:?] at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?] at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?] at com.sun.proxy.$Proxy3995.handleCommand(Unknown Source) [?:?] at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:74) [bundleFile:?] at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?] at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_242] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242] Caused by: org.openhab.binding.gardena.internal.exception.GardenaException: Error 502 Bad Gateway at org.openhab.binding.gardena.internal.GardenaSmartImpl.executeRequest(GardenaSmartImpl.java:193) ~[bundleFile:?] ... 19 more

int5749 commented 4 years ago

I have a water control and the text is Ventil geschlossen. It's the same line in the i18n file as for the irrigation control.

Yes, wording is the same, but in my Water Control all is in upper letters, while in Irrigation it's start with capital and continues in lower letters. Is this both same for you?

oliverwehrens commented 4 years ago

Thanks @gerrieg, my sensor is recognized again and is fully working with my items.

Both my watering computer and ic24 are online as reported by the Paper UI but do not have any channels. I see in the TRACE output no obvious problem. If I restart the binding I see my given names from the App for the ic24 valves in the response from Gardena. So I assume the connection works, yet it has no channels.

I configure everything via a things file. I removed the old gardena binding, removed old things file, added new binding to the addons folder, added the new things file, restarted in between.

Did anybody had similar problems (and knows how to solve?)

gerrieg commented 4 years ago

@int5749 yes, it's the same, see the translation file

@oliverwehrens

but do not have any channels

Do you mean that PaperUI does not display the channels or that you can't bind a channel to an Item? Try to manually add an Item, e.g common#batteryLevel

brononius commented 4 years ago

So first set the commandDuration and then open the value with the start_seconds_to_override Switch I will describe this even better in the readme

Hello, first of all, great work! After using this binding with my new gardena smart sensor / water control, most info is getting in.

I just have an issue with the 'send' command. To test, I send 1 (minute?) to commandDuration, and then a ON to start_seconds_to_override, but it's like Gardena doesn't like the 'Duration time.

when Item ValveStartXmin received update then sendCommand(ValveDurCmd, 1) sendCommand(ValveStart, ON) end`

I'm always getting back a 'changed from 0.0 m to 60.0 m' from the duration after the 'CLOSED to MANUAL_WATERING'?

2020-04-25 09:53:26.266 - Item 'ValveDurCmd' received command 1 2020-04-25 09:53:26.269 - Item 'ValveStart' received command ON 2020-04-25 09:53:26.270 - ValveDurCmd predicted to become 1 2020-04-25 09:53:26.272 - ValveStart predicted to become ON 2020-04-25 09:53:26.274 - ValveDurCmd changed from 0 to 1 2020-04-25 09:53:26.275 - ValveStart changed from OFF to ON 2020-04-25 09:53:31.606 - ValveStart changed from ON to OFF 2020-04-25 09:53:31.608 - ValveAct changed from CLOSED to MANUAL_WATERING 2020-04-25 09:53:31.609 - ValveActTime changed from 2020-04-25T09:38:43.150+0200 to 2020-04-25T09:53:29.080+0200 2020-04-25 09:53:31.609 - ValveDur changed from 0.0 m to 60.0 m 2020-04-25 09:53:31.609 - ValveDurCmd changed from 1 to 60 `

oliverwehrens commented 4 years ago

@int5749 yes, it's the same, see the translation file

@oliverwehrens

but do not have any channels

Do you mean that PaperUI does not display the channels or that you can't bind a channel to an Item? Try to manually add an Item, e.g common#batteryLevel

My bad, the Thing name changed to water_control and irrigation_control and stayed the same for sensor. I was overlooking this. Now it works. Thanks again for the work!

int5749 commented 4 years ago

That's weird. Any idea/hint where the difference might come from?

Gardena-Binding

Things are configured in same way and both are showing "CLOSED" as value 🤔

int5749 commented 4 years ago

I have just recognized another phenomenon Icons which are assigned in .items files are properly used for irrigation and water control, but not for all items of sensor. As soon I do assign them in .sitemap, they are used :-/ This is for sure not an urgent topic, just sharing my experience on this. Do anyone else experence same behavior or is it working for someone else with sensor.

Seems that not all items are effected, but at least soilhumidity, soil- and ambientTemp. are on my end.

gerrieg commented 4 years ago

@brononius I just tried it, works for me. Check your channel mapping for the duration item. Make sure ValveDurCmd is mapped to valve_commands#commandDuration and ValveDur to valve#duration.

@int5749 Strange thing with the uppercase message ... are you perhaps using a map in the item?

brononius commented 4 years ago

Should be ok. Or I must be missing something. :$

Number:Time ValveDur "Duur [%d m]" { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve#duration" } Number:Time ValveDurCmd "Duur [%d]" { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#commandDuration" } Switch ValveStart "Start" { channel="gardena:water_control:fc4f3582:a1a30cdf-6a40-49c4-9c1f-1abc49758161:valve_commands#start_seconds_to_override" }

sendCommand(ValveDurCmd, 2) sendCommand(ValveStart, ON)

int5749 commented 4 years ago

sendCommand(ValveDurCmd, 2) sendCommand(ValveStart, ON) Hmm, I usually use

ValveDurCmd.sendCommand(2)
ValveStart.sendCommand(ON)
int5749 commented 4 years ago

@gerrieg No, I don't use any map there nor does any map contain something about Valves/Ventile This is the weird stuff

brononius commented 4 years ago

the ValveDurCmd.sendCommand gives me the same endresult.

0:28:50.009 [ome.event.ItemCommandEvent] - Item 'ValveDurCmd' received command 1 20:28:50.016 [ome.event.ItemCommandEvent] - Item 'ValveStart' received command ON 20:28:50.020 [nt.ItemStatePredictedEvent] - ValveDurCmd predicted to become 1 20:28:50.023 [nt.ItemStatePredictedEvent] - ValveStart predicted to become ON 20:28:50.025 [vent.ItemStateChangedEvent] - ValveDurCmd changed from 60 to 1 20:28:50.026 [vent.ItemStateChangedEvent] - ValveStart changed from OFF to ON

ps I'll install tomorrow a test server, and try it from scratch...

brononius commented 4 years ago

With a new OH installation on a test server, and only Gardena binding 2.5.5.202004221227, I'm encountering the same issue.

Below an error I noticed now. I've just noticed this also in my 'production' installation.

2020-04-26 07:31:07.292 [WARN ] [internal.handler.GardenaThingHandler] - org.eclipse.smarthome.core.library.types.DecimalType cannot be cast to org.eclipse.smarthome.core.library.types.QuantityType java.lang.ClassCastException: org.eclipse.smarthome.core.library.types.DecimalType cannot be cast to org.eclipse.smarthome.core.library.types.QuantityType at org.openhab.binding.gardena.internal.handler.GardenaThingHandler.handleCommand(GardenaThingHandler.java:177) [bundleFile:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?] at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?] at com.sun.proxy.$Proxy157.handleCommand(Unknown Source) [?:?] at org.eclipse.smarthome.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:74) [bundleFile:?] at org.eclipse.smarthome.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:48) [bundleFile:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_242] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

jpgorganizer commented 4 years ago

@gerrieg Today I really wanted to try out the new binding and got a new error. After I tried to start my SILENO life manually the following shows up in my log file:

18:15:22.779 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Maehroboter_Mow' received command ON
18:15:22.846 [DEBUG] [.internal.handler.GardenaThingHandler] - Received Gardena command: MowerCommand, START_SECONDS_TO_OVERRIDE
18:15:22.847 [INFO ] [arthome.event.ItemStatePredictedEvent] - Maehroboter_Mow predicted to become ON
18:15:22.858 [TRACE] [ing.gardena.internal.GardenaSmartImpl] - >>> PUT https://api.smart.gardena.dev/v1/command/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx data: {"data":{"id":"mcid","type":"MOWER_CONTROL","attributes":{"command":"START_SECONDS_TO_OVERRIDE","seconds":3600}}}
18:15:22.866 [DEBUG] [ing.gardena.internal.GardenaSmartImpl] - Gardena API token valid
18:15:22.873 [DEBUG] [ing.gardena.internal.GardenaSmartImpl] - Token expiration: accessToken: 2020-04-23T19:09:21.728+02:00[Europe/Berlin], refreshToken: 2020-05-02T15:05:16.492+02:00[Europe/Berlin]
18:15:23.427 [TRACE] [ing.gardena.internal.GardenaSmartImpl] - <<< status:502, {"errors":[{"id":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","status":"SG_BACKEND_ERROR","code":"502","title":"error communicating with the backend"}]}
18:15:23.433 [WARN ] [.internal.handler.GardenaThingHandler] - Error 502 Bad Gateway
org.openhab.binding.gardena.internal.exception.GardenaException: Error 502 Bad Gateway

Nothing happens. My mower does not start.

Hi, did you solve this problem? I've got an equal error for an iobroker adapter https://forum.iobroker.net/post/420684

r jpgorganizer

andrexp commented 4 years ago

@jpgorganizer unfortunately, no. I am still waiting for the fix. It is a Gardena backend error as Gerhard said. @snakeru (Gardena employee) also got notice of the problem so we can hope for a fix in near future.

jpgorganizer commented 4 years ago

@andrexp thanks for your reply

I've been in contact with Gardena support yesterday and I've got the information that Gardena knows about that problem and is working on it. Gardena has classified this issue as a LIVE issue.