anne_hh
(Anne W)
August 25, 2024, 11:04am
1
Hello everybody,
my Shelly Manager says:
Exception:java.lang.NullPointerException: Cannot invoke “String.isEmpty()” because “mode” is null
Check openhab.log for details.
Unfortunately there’s nothing in the openhab log nor in syslog. Any idea where i could search?
I’m running openHAB 4.2.1 on Ubuntu 22.04.1
Oliver2
(Oliver)
August 27, 2024, 10:35am
3
Try removing and reinstalling the binding
anne_hh
(Anne W)
August 27, 2024, 10:43am
4
Did that already, tried also rebooting.
Oliver2
(Oliver)
August 27, 2024, 10:55am
5
Ok. And your binding is active und running, as can be seen in openhab console?
Did you also try the latest snapshot binding from markus github page?
anne_hh
(Anne W)
August 27, 2024, 1:24pm
6
Seems active, yes
Snapshot binding i can try, will see how that works and come back
anne_hh
(Anne W)
August 28, 2024, 6:59am
7
Now it’s working again, for no obvious reason
Thanks so much for looking into that.
schmidmuc
(Thomas)
September 6, 2024, 7:20pm
8
Face the same issue on openHAB 4.3.0.M1 on Ubuntu 22.04.4 LTS
A re-installation of the Shelly binding did not solve the problem.
Opening the Shelly Manager gives the following error:
Exception:java.lang.NullPointerException: Cannot invoke “String.isEmpty()” because “mode” is null
Check openhab.log for details.
Larsen
(Locke)
September 6, 2024, 7:53pm
9
I noticed that too. For me it worked again after all Shelly-devices were connected to the wifi.
As long as devices were in status “pending” the manager didn’t start up.
1 Like
schmidmuc
(Thomas)
September 6, 2024, 8:01pm
10
Interesting, same here. Had one Button in state CONFIG PENDING. After disabling this, the Shelly Manager works.
1 Like
Larsen
(Locke)
September 6, 2024, 8:15pm
11
@markus7017 : sorry for pulling you in, but maybe you didn’t notice this issue with the Shelly manager that it’s not working if devices are pending.
@anne_hh : Maybe you could remove the [resolved] in the title to avoid confusion?
DrRSatzteil
(Thomas Lauterbach)
September 7, 2024, 10:52am
12
Just came here because I observe the same problem. Thanks for everyone involved figuring out the reason already
markus7017
(Markus Michels)
September 7, 2024, 4:44pm
13
turn the binding into DEBUG log
I suppose you‘ll see an exception in the log
please provide this information
Larsen
(Locke)
September 8, 2024, 5:18am
14
@markus7017 : You’re right. Here the log with the exception:
2024-09-08 07:07:42.307 [DEBUG] [nternal.manager.ShellyManagerServlet] - ShellyManagerServlet: HTTP/1.1 Request from 192.168.1.58:47530/shelly/manager?{}
2024-09-08 07:07:42.308 [DEBUG] [al.manager.ShellyManagerOverviewPage] - Generating overview for 10 devices
2024-09-08 07:07:42.322 [DEBUG] [al.manager.ShellyManagerOverviewPage] - ShellyManager: Load firmware version list for device type SHTRV-01
2024-09-08 07:07:42.323 [DEBUG] [y.internal.manager.ShellyManagerPage] - ShellyManager: Load firmware list from https://api.shelly.cloud/files/firmware/
2024-09-08 07:07:42.435 [DEBUG] [nternal.manager.ShellyManagerServlet] - ShellyManagerServlet: Exception uri=/shelly/manager, parameters={}
at org.openhab.binding.shelly.internal.manager.ShellyManagerPage.getFirmwareRepoEntry(ShellyManagerPage.java:417) ~[?:?]
at org.openhab.binding.shelly.internal.manager.ShellyManagerOverviewPage.fillFirmwareHtml(ShellyManagerOverviewPage.java:151) ~[?:?]
at org.openhab.binding.shelly.internal.manager.ShellyManagerOverviewPage.generateContent(ShellyManagerOverviewPage.java:114) ~[?:?]
at org.openhab.binding.shelly.internal.manager.ShellyManager.generateContent(ShellyManager.java:58) ~[?:?]
at org.openhab.binding.shelly.internal.manager.ShellyManagerServlet.service(ShellyManagerServlet.java:113) ~[?:?]
2024-09-08 07:07:42.439 [DEBUG] [nternal.manager.ShellyManagerServlet] - ShellyManagerServlet: org.openhab.binding.shelly.internal.manager.ShellyManagerPage$ShellyMgrResponse@69146a20
chuck2k
(Chuck2k)
September 28, 2024, 10:06am
15
Same here. State CONFIG PENDING on any Shelly thing kills Shelly Manager. (openHAB 4.2.1)