Automower Binding (G2)

I just got the same problem last week. It has been working fine for several weeks and now it’s not able to connect. Is there a know issue?

I’m running openHAB 3.3.0.M6

I tied to install the Binding and the Bridge but without success.
My bridge is red…
I am using the official 3.2.0 build from openhab.
Is there a hint to get the bridge online?
Or could it be that this is a Husquarna problem???

brgds

Hulli

Hello Frank,

I think it has to do with this issue:

br. Tobi

Hello,

Does this binding still work?
I Got a key and secret on the Husqvarna website but i get an error

Any idea?

Hi @jpcolin,

the binding does work for me. Can you share some logs?

Best, Lui

Same here, works fine. Did you try refreshing/renewing the keys?

I tried, same error.

Is this correct the http://localhost?

where can i find those?

The binding works quiet fine for me - I can send command to the mower via the actions. However, the regular retrieval of the automower status information does not work as I get those error messages, see below. Anybody having the same issue or an idea how to fix?

java.lang.NullPointerException: Cannot invoke "org.openhab.binding.automower.internal.rest.api.automowerconnect.dto.Position.getLatitude()" because the return value of "org.openhab.binding.automower.internal.rest.api.automowerconnect.dto.MowerData.getLastPosition()" is null
	at org.openhab.binding.automower.internal.things.AutomowerHandler.updateChannelState(AutomowerHandler.java:317) ~[?:?]
	at org.openhab.binding.automower.internal.things.AutomowerHandler.updateAutomowerState(AutomowerHandler.java:215) ~[?:?]
	at org.openhab.binding.automower.internal.things.AutomowerHandler.lambda$0(AutomowerHandler.java:94) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]

Hi,
I am testing openHAB 5.0.0.M2 and the binding drops me an error “because reason is null”.
In 4.3.5 the binding is working as expected.

Anyone else with this problem?

2025-06-07 11:17:16.462 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'automower:automower:9f1b14c40d:6ef91cd9-6f8a-4adf-85d8-98687af07f68' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2025-06-07 11:17:18.706 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.NullPointerException: Cannot invoke "org.openhab.binding.automower.internal.rest.api.automowerconnect.dto.RestrictedReason.name()" because "reason" is null
	at org.openhab.binding.automower.internal.things.AutomowerHandler.restrictedState(AutomowerHandler.java:755) ~[?:?]
	at org.openhab.binding.automower.internal.things.AutomowerHandler.updateChannelState(AutomowerHandler.java:936) ~[?:?]
	at org.openhab.binding.automower.internal.things.AutomowerHandler.updateAutomowerState(AutomowerHandler.java:340) ~[?:?]
	at org.openhab.binding.automower.internal.things.AutomowerHandler.lambda$0(AutomowerHandler.java:112) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:?]
	at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]