Today I connected to the power a Shelly Plus 2PM.
I want add into my OH system. I have a shelly binding installed. Problem is, that first time there was information in the inbox, that device was idetected, but this message I deleted and I did in the WebUI of the shelly a system setup. After this, I can’t detect shelly device again. Maybe I switched off any function which is necessary for correct communication between OpenHab and Shelly. But WebUI is working correctly. Do you have any idea what must be set on ? Or how to find why OpenHab can’t detect my Shelly device ?
Thank you
Alex
here is log :
2024-12-05 21:14:08.326 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplus2pm-roller-6992d7ed63: Unable to refresh status: Unable to update status
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:678) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerFavorites(Shelly2ApiClient.java:488) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerSettings(Shelly2ApiClient.java:451) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiRpc.getDeviceProfile(Shelly2ApiRpc.java:193) ~[?:?]
at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.initializeThing(ShellyBaseHandler.java:319) ~[?:?]
at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.refreshStatus(ShellyBaseHandler.java:547) ~[?:?]
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) [?:?]
2024-12-05 21:14:08.332 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplus2pm-roller-6992d7ed63: Enabling channel cache (20 updates / 60s)
2024-12-05 21:15:08.335 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplus2pm-roller-6992d7ed63: Status update triggered thing initialization
2024-12-05 21:15:08.336 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplus2pm-roller-6992d7ed63: Start initializing for thing ShellyPlus 2PM Roller, type shellyplus2pm-roller, IP address 192.168.1.52, Gen2: true, CoIoT: false
2024-12-05 21:15:08.336 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-roller-6992d7ed63: Disconnect Rpc Socket on initialize
2024-12-05 21:15:08.337 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-roller-6992d7ed63: Disconnect Rpc Socket
2024-12-05 21:15:08.338 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-roller-6992d7ed63: Disconnecting WebSocket (/192.168.1.50:33230 -> /192.168.1.52:80)
2024-12-05 21:15:08.345 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-roller-6992d7ed63: WebSocket connection closed, status = 1006/Disconnected
2024-12-05 21:15:08.346 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-roller-6992d7ed63: Closing Rpc API (socket is disconnected, discovery=false)
2024-12-05 21:15:08.370 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-roller-6992d7ed63: Connect Rpc Socket (discovery = false)
2024-12-05 21:15:08.371 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-roller-6992d7ed63: Connect WebSocket, URI=ws://192.168.1.52/rpc
2024-12-05 21:15:08.421 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplus2pm-roller-6992d7ed63: Unable to refresh status: Unable to update status
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:678) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerFavorites(Shelly2ApiClient.java:488) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerSettings(Shelly2ApiClient.java:451) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiRpc.getDeviceProfile(Shelly2ApiRpc.java:193) ~[?:?]
at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.initializeThing(ShellyBaseHandler.java:319) ~[?:?]
at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.refreshStatus(ShellyBaseHandler.java:547) ~[?:?]
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) [?:?]
2024-12-05 21:15:08.426 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-roller-6992d7ed63: WebSocket connected /192.168.1.50:33692<-/192.168.1.52:80, Idle Timeout=2147483647
and error :
And discovery error :
2024-12-05 21:29:39.818 [DEBUG] [.discovery.ShellyBluDiscoveryService] - Starting BLU Discovery
2024-12-05 21:29:39.821 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyuni-34945478c1b1: Shelly device discovered: IP-Adress=192.168.1.51, type=shellyuni
2024-12-05 21:29:40.445 [INFO ] [discovery.ShellyDiscoveryParticipant] - shellyuni-34945478c1b1: Device 192.168.1.51 is protected and reports Access denied, check userId/password.
2024-12-05 21:29:40.446 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyuni-34945478c1b1: Adding Shelly , UID=shelly:shellyuni:34945478c1b1
2024-12-05 21:29:40.449 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyplus2pm-c82e180dcae4: Shelly device discovered: IP-Adress=192.168.1.52, type=shellyplus2pm
2024-12-05 21:29:40.470 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-c82e180dcae4: Connect Rpc Socket (discovery = true)
2024-12-05 21:29:40.471 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-c82e180dcae4: Connect WebSocket, URI=ws://192.168.1.52/rpc
2024-12-05 21:29:40.526 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-c82e180dcae4: WebSocket connected /192.168.1.50:40430<-/192.168.1.52:80, Idle Timeout=2147483647
2024-12-05 21:29:40.524 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellyplus2pm-c82e180dcae4: Discovery failed!
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:678) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerFavorites(Shelly2ApiClient.java:488) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillRollerSettings(Shelly2ApiClient.java:451) ~[?:?]
at org.openhab.binding.shelly.internal.api2.Shelly2ApiRpc.getDeviceProfile(Shelly2ApiRpc.java:193) ~[?:?]
at org.openhab.binding.shelly.internal.discovery.ShellyDiscoveryParticipant.createResult(ShellyDiscoveryParticipant.java:160) ~[?:?]
at org.openhab.core.config.discovery.mdns.internal.MDNSDiscoveryService.createDiscoveryResult(MDNSDiscoveryService.java:222) ~[?:?]
at org.openhab.core.config.discovery.mdns.internal.MDNSDiscoveryService.scan(MDNSDiscoveryService.java:164) ~[?:?]
at org.openhab.core.config.discovery.mdns.internal.MDNSDiscoveryService.lambda$0(MDNSDiscoveryService.java:138) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
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) [?:?]
2024-12-05 21:29:40.530 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-c82e180dcae4: Closing Rpc API (socket is connected, discovery=true)
2024-12-05 21:29:40.531 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-c82e180dcae4: Disconnect Rpc Socket
2024-12-05 21:29:40.532 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplus2pm-c82e180dcae4: Disconnecting WebSocket (/192.168.1.50:40430 -> /192.168.1.52:80)
2024-12-05 21:29:40.536 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplus2pm-c82e180dcae4: WebSocket connection closed, status = 1006/Disconnected
upgrade of OH to version 4.2.3 solved my problem