I just got a bunch of new shellys and run into some troubles adding some devices.
openhab> bundle:list | grep -i Shelly
274 x Active x 80 x 3.4.3 x openHAB Add-ons :: Bundles :: Shelly Binding Gen1+2
- Shellyplus Smoke:
Scanning for devices did never bring up the smoke sensor, so I manually added it by IP address. unfortunately it stays in “configuration pending” mode, even if I wake it up.
when disabling/enabling the Thing, I see a new thing poping up in the log, but it is a “shellyunknown” device. if adding this one I do not see any channels…
2023-04-14 10:21:59.693 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellysmoke:shellysmoke_01' changed from UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus. to UNINITIALIZED
2023-04-14 10:21:59.704 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellysmoke:shellysmoke_01' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
2023-04-14 10:22:01.808 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellysmoke:shellysmoke_01' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2023-04-14 10:22:03.821 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellysmoke:shellysmoke_01' changed from INITIALIZING to UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus.
==> /var/log/openhab/openhab.log <==
2023-04-14 10:22:13.287 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'shelly:shellyunknown:80646fd06ecc' to inbox.
==> /var/log/openhab/events.log <==
2023-04-14 10:22:13.287 [INFO ] [openhab.event.InboxAddedEvent ] - Discovery Result with UID 'shelly:shellyunknown:80646fd06ecc' has been added.
- Shelly Plus H&T:
is detected fine, but never leaves the “config pending” state. wakeup does not help. I’m also unable to add the Alarm Channel. there is no profile available… what does that mean?
TRACE log from the H&T after disable/enable Thing:
2023-04-14 18:04:35.797 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Stopping Thing
2023-04-14 18:04:35.799 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Shutting down
2023-04-14 18:04:35.802 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Shelly statusJob stopped
2023-04-14 18:04:35.804 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplusht-08b61fcc2bd4: Closing Rpc API (socket is connected, discovery=false)
2023-04-14 18:04:35.805 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplusht-08b61fcc2bd4: Disconnecting WebSocket (/192.168.10.10:47276 -> /192.168.10.111:80)
2023-04-14 18:04:35.807 [TRACE] [helly.internal.api2.Shelly2RpcSocket] - shellyplusht-08b61fcc2bd4: Rpc connection closed: 1006 - Disconnected
2023-04-14 18:04:35.814 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplusht-08b61fcc2bd4: WebSocket connection closed, status = 1006/Disconnected
2023-04-14 18:04:37.817 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Using userId admin from bindingConfig
2023-04-14 18:04:37.818 [TRACE] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: updateInterval = 900s -> skipCount = 300
2023-04-14 18:04:37.819 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Device config: IP address=192.168.10.111, HTTP user/password=admin/***, update interval=900
2023-04-14 18:04:37.819 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Configured Events: Button: false, Switch (on/off): true, Push: true, Roller: true, Sensor: true, CoIoT: false, Enable AutoCoIoT: true
2023-04-14 18:04:37.821 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Start initializing for thing shellyplusht-08b61fcc2bd4 - 192.168.10.111, type shellyplusht, IP address 192.168.10.111, Gen2: true, CoIoT: false
2023-04-14 18:04:37.825 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP GET for http://192.168.10.111/shelly
2023-04-14 18:04:37.846 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP Response 200: {"name":null,"id":"shellyplusht-08b61fcc2bd4","mac":"08B61FCC2BD4","model":"SNSN-0013A","gen":2,"fw_id":"20220608-072353/plushtprod2-g4f32651","ver":"plushtprod2","app":"PlusHT","auth_en":false,"auth_domain":null}
2023-04-14 18:04:37.847 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplusht-08b61fcc2bd4: Connect Rpc Socket (discovery = false)
2023-04-14 18:04:37.849 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplusht-08b61fcc2bd4: Connect WebSocket, URI=ws://192.168.10.111/rpc
2023-04-14 18:04:37.859 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP POST for http://192.168.10.111/rpc {"id":1919625966,"src":"shellyplusht-08b61fcc2bd4","method":"Shelly.GetConfig"}
2023-04-14 18:04:37.908 [DEBUG] [helly.internal.api2.Shelly2RpcSocket] - shellyplusht-08b61fcc2bd4: WebSocket connected /192.168.10.10:47100<-/192.168.10.111:80, Idle Timeout=2147483647
2023-04-14 18:04:37.911 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP Response 200: {"id":1919625966,"src":"shellyplusht-08b61fcc2bd4","dst":"shellyplusht-08b61fcc2bd4","result":{"ble":{"enable":false},"cloud":{"enable":true,"server":"shelly-5-eu.shelly.cloud:6022/jrpc"},"devicepower:0":null,"ht_ui":{"temperature_unit":"C"},"humidity:0":{"id":0, "name":null, "report_thr":5},"mqtt":{"enable":false,"server":null,"client_id":"shellyplusht-08b61fcc2bd4","user":null,"topic_prefix":"shellyplusht-08b61fcc2bd4","rpc_ntf":true,"status_ntf":false},"sys":{"device":{"name":null,"mac":"08B61FCC2BD4","fw_id":"20220608-072353/plushtprod2-g4f32651","discoverable":true},"location":{"tz":"Europe/Vienna","lat":48.181140,"lon":16.390870},"debug":{"mqtt":{"enable":false},"websocket":{"enable":false},"udp":{"addr":null}},"ui_data":null,"rpc_udp":{"dst_addr":null,"listen_port":null},"sntp":{"server":"time.google.com"},"sleep":{"wakeup_period":43200},"cfg_rev":8},"temperature:0":{"id":0, "name":null, "report_thr_C": 0.5},"wifi":{"ap":{"ssid":"ShellyPlusHT-08B61FCC2BD4","is_open":true, "enable":false},"sta":{"ssid":"WatchDog_202208","is_open":false, "enable":true, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"sta1":{"ssid":null,"is_open":true, "enable":false, "ipv4mode":"dhcp","ip":null,"netmask":null,"gw":null,"nameserver":null},"roam":{"rssi_thr":-80,"interval":60}}}}
2023-04-14 18:04:37.914 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP GET for http://192.168.10.111/shelly
2023-04-14 18:04:37.935 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP Response 200: {"name":null,"id":"shellyplusht-08b61fcc2bd4","mac":"08B61FCC2BD4","model":"SNSN-0013A","gen":2,"fw_id":"20220608-072353/plushtprod2-g4f32651","ver":"plushtprod2","app":"PlusHT","auth_en":false,"auth_domain":null}
2023-04-14 18:04:37.937 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP POST for http://192.168.10.111/rpc {"id":503178496,"src":"shellyplusht-08b61fcc2bd4","method":"WS.GetConfig"}
2023-04-14 18:04:37.963 [TRACE] [shelly.internal.api.ShellyHttpClient] - shellyplusht-08b61fcc2bd4: HTTP Response 200: {"id":503178496,"src":"shellyplusht-08b61fcc2bd4","dst":"shellyplusht-08b61fcc2bd4","error":{"code":404,"message":"No handler for WS.GetConfig"}}
2023-04-14 18:04:37.965 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Unable to initialize: POST http://192.168.10.111/rpc > No handler for WS.GetConfig, retrying later
2023-04-14 18:04:37.966 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellyplusht-08b61fcc2bd4: Update status job started, interval=300*3=900sec.
2023-04-14 18:05:11.784 [TRACE] [helly.internal.api2.Shelly2RpcSocket] - shellyplusht-08b61fcc2bd4: Rpc connection closed: 1006 - Disconnected
2023-04-14 18:05:11.803 [DEBUG] [g.shelly.internal.api2.Shelly2ApiRpc] - shellyplusht-08b61fcc2bd4: WebSocket connection closed, status = 1006/Disconnected
2023-04-14 18:07:15.505 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@23905182 name: 'ShellyPlusHT-08B61FCC2BD4._http._tcp.local.' address: '(null):80' status: 'DNS: 192-168-10-10.local. [192.168.10.10/192.168.10.10] state: probing 1 task: null', has NO data, empty]