Shelly Binding

This is fixed with 3.4 M6: Fix default unit for Energy by J-N-K · Pull Request #3213 · openhab/openhab-core · GitHub

All is okay now with Shelly2-roller in OH3M6. Thank you bro :slight_smile:

With the recent update to 3.4.0.M6 i do not get any update on the shellyem3 items anymore.
I already cleaned the cache but that did not solve the issue.

The thing and item configuration have not been changed. The are text based.
All other shelly are still working .
Anybody else facing issues with shellyem3 thing type

16:22:13.330 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Thing name derived from UID shelly:shellyem3:zaehlerkeller
16:22:13.330 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Using userId admin from bindingConfig
16:22:13.331 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Device config: IP address=192.168.1.91, HTTP user/password=admin/***, update interval=60
16:22:13.331 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Configured Events: Button: false, Switch (on/off): false, Push: false, Roller: true, Sensor: true, CoIoT: true, Enable AutoCoIoT: true
16:22:13.331 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Start initializing for thing Energiemessung, type shellyem3, IP address 192.168.1.91, Gen2: false, CoIoT: true
16:22:13.331 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyem3:zaehlerkeller' changed from INITIALIZING to UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus.
16:22:13.439 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Auto-CoIoT is enabled, disabling action urls
16:22:13.440 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Starting CoIoT (autoCoIoT=true/true)
16:22:13.440 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: Starting CoAP Listener
16:22:13.474 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: Using CoAP device description from successful HTTP /cit/d
16:22:13.474 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Device Description for shellyem3-zaehlerkeller: {"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"emeter_0"},{"I":3,"D":"emeter_1"},{"I":4,"D":"emeter_2"},{"I":5,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":5},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":4105,"T":"P","D":"power","U":"W","L":2},{"I":4106,"T":"E","D":"energy","U":"Wh","L":2},{"I":4107,"T":"E","D":"energyReturned","U":"Wh","L":2},{"I":4108,"T":"V","D":"voltage","U":"V","L":2},{"I":4109,"T":"I","D":"current","U":"A","L":2},{"I":4110,"T":"S","D":"powerFactor","R":["0/1","-1"],"L":2},{"I":4205,"T":"P","D":"power","U":"W","L":3},{"I":4206,"T":"E","D":"energy","U":"Wh","L":3},{"I":4207,"T":"E","D":"energyReturned","U":"Wh","L":3},{"I":4208,"T":"V","D":"voltage","U":"V","L":3},{"I":4209,"T":"I","D":"current","U":"A","L":3},{"I":4210,"T":"S","D":"powerFactor","R":["0/1","-1"],"L":3},{"I":4305,"T":"P","D":"power","U":"W","L":4},{"I":4306,"T":"E","D":"energy","U":"Wh","L":4},{"I":4307,"T":"E","D":"energyReturned","U":"Wh","L":4},{"I":4308,"T":"V","D":"voltage","U":"V","L":4},{"I":4309,"T":"I","D":"current","U":"A","L":4},{"I":4310,"T":"S","D":"powerFactor","R":["0/1","-1"],"L":4},{"I":6102,"T":"A","D":"overpower","R":["0/1","-1"],"L":1}]}
16:22:13.475 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id=1: relay_0
16:22:13.475 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id=2: emeter_0
16:22:13.476 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id=3: emeter_1
16:22:13.476 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id=4: emeter_2
16:22:13.476 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id=5: device
16:22:13.476 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: Adding 21 sensor definitions
16:22:13.477 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=5
16:22:13.477 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 1101: output, Type=S, Range=0/1, Links=1
16:22:13.477 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4105: power, Type=P, Range=null, Links=2
16:22:13.477 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4106: energy, Type=E, Range=null, Links=2
16:22:13.478 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4107: energyReturned, Type=E, Range=null, Links=2
16:22:13.478 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4108: voltage, Type=V, Range=null, Links=2
16:22:13.478 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4109: current, Type=I, Range=null, Links=2
16:22:13.478 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4110: powerFactor, Type=S, Range=0/1;-1, Links=2
16:22:13.479 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4205: power, Type=P, Range=null, Links=3
16:22:13.479 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4206: energy, Type=E, Range=null, Links=3
16:22:13.479 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4207: energyReturned, Type=E, Range=null, Links=3
16:22:13.479 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4208: voltage, Type=V, Range=null, Links=3
16:22:13.480 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4209: current, Type=I, Range=null, Links=3
16:22:13.480 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4210: powerFactor, Type=S, Range=0/1;-1, Links=3
16:22:13.480 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4305: power, Type=P, Range=null, Links=4
16:22:13.480 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4306: energy, Type=E, Range=null, Links=4
16:22:13.480 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4307: energyReturned, Type=E, Range=null, Links=4
16:22:13.481 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4308: voltage, Type=V, Range=null, Links=4
16:22:13.481 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4309: current, Type=I, Range=null, Links=4
16:22:13.481 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 4310: powerFactor, Type=S, Range=0/1;-1, Links=4
16:22:13.481 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller:    id 6102: overpower, Type=A, Range=0/1;-1, Links=1
16:22:13.482 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Initializing device shellyem3-8caab561944a, type SHEM-3, Hardware: Rev: prod-2020-1, batch 1; Firmware: v1.12.1-ga9117d3 / 20221027-110030
16:22:13.482 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Shelly settings info for shellyem3-8caab561944a: {"device":{"type":"SHEM-3","mac":"8CAAB561944A","hostname":"shellyem3-8CAAB561944A","num_outputs":1,"num_meters":0,"num_emeters":3,"report_period":1},"wifi_ap":{"enabled":false,"ssid":"shellyem3-8CAAB561944A","key":""},"wifi_sta":{"enabled":true,"ssid":"kreutzer","ipv4_method":"static","ip":"192.168.1.91","gw":"192.168.1.1","mask":"255.255.255.0","dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":false,"threshold":-70},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellyem3-8CAAB561944A","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"WP","fw":"20221027-110030/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-110030/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T11:00:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Zurich","lat":47.448490,"lng":8.211500,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":true,"tz_dst_auto":true,"time":"16:22","unixtime":1671031333,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["out_on_url","out_off_url","over_power_url","under_power_url","over_power_url","under_power_url","over_power_url","under_power_url","over_power_url","under_power_url","n_mismatch_url"]},"hwinfo":{"hw_revision":"prod-2020-1", "batch_id":1},"cf_output":0,"relays":[{"name":null,"ison":false,"has_timer":false,"default_state":"off","auto_on":0.00,"auto_off":0.00,"schedule":false,"schedule_rules":[]}],"emeters":[{"name":null,"appliance_type":"General","max_power":0,"range_extender":1},{"name":null,"appliance_type":"General","max_power":0,"range_extender":1},{"name":null,"appliance_type":"General","max_power":0,"range_extender":1}],"emeter_n":{"range_extender":1,"mismatch_threshold":1.00},"eco_mode_enabled":true}
16:22:13.483 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Device hasRelays:true (numRelays=1),isRoller:false (numRoller=0),isDimmer:false,numMeter=3,isEMeter:true), ext. Switch Add-On: n/a,isSensor:false,isDS:false,hasBattery:false,isSense:false,isMotion:false,isLight:false,isBulb:false,isDuo:false,isRGBW2:false,inColor:false,alwaysOn:true, updatePeriod:70sec
16:22:13.483 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Thing successfully initialized.
16:22:13.485 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Update status job started, interval=20*3=60sec.
16:22:13.486 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyem3:zaehlerkeller' changed from UNKNOWN (CONFIGURATION_PENDING): Initialisierung oder Gerät im Schlafmodus. to ONLINE
16:22:14.052 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Message from /192.168.1.91:5683 (MID=11841): {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]}
16:22:14.052 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Version 2 detected
16:22:14.053 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Sensor data {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]} (serial=34087)
16:22:14.053 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
16:22:14.054 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#currentWatts updated with 576.82 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.054 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#voltage updated with 232.8 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.054 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter2#currentWatts updated with 379.11 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.055 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter2#voltage updated with 234.7 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.055 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter3#currentWatts updated with 374.16 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.055 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter3#voltage updated with 235.6 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.056 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel relay#output updated with OFF (type class org.openhab.core.library.types.OnOffType).
16:22:14.056 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 18 channels updated from CoIoT status, serial=34087
16:22:14.056 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Message from /192.168.1.91:5683 (MID=11841): {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]}
16:22:14.058 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Sensor data {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]} (serial=34087)
16:22:14.058 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
16:22:14.075 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Message from /192.168.1.91:5683 (MID=45378): {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]}
16:22:14.076 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Sensor data {"G":[[0,9103,0],[0,1101,0],[0,4105,576.82],[0,4106,409338.6],[0,4107,0.0],[0,4108,232.80],[0,4109,3.28],[0,4110,0.76],[0,4205,379.11],[0,4206,177966.9],[0,4207,148.5],[0,4208,234.68],[0,4209,2.53],[0,4210,0.63],[0,4305,374.16],[0,4306,187899.8],[0,4307,0.0],[0,4308,235.63],[0,4309,2.55],[0,4310,0.62],[0,6102,0]]} (serial=34087)
16:22:14.076 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
16:22:14.077 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#currentWatts updated with 576.82 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.077 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#voltage updated with 232.8 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.078 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter2#currentWatts updated with 379.11 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.078 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter2#voltage updated with 234.7 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.079 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter3#currentWatts updated with 374.16 W (type class org.openhab.core.library.types.QuantityType).
16:22:14.079 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter3#voltage updated with 235.6 V (type class org.openhab.core.library.types.QuantityType).
16:22:14.079 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 17 channels updated from CoIoT status, serial=34087
16:22:15.237 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint [slaveId=1, functionCode=READ_MULTIPLE_REGISTERS, start=32064, length=31, maxTries=3]). Will try again soon. Error was I/O error, so resetting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: SocketTimeoutException Read timed out [operation ID ef7fcf7c-a2c5-44f5-b3e8-6f542f577155]
16:22:15.634 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Unable to refresh status: Status konnte nicht aktualisiert werden
java.lang.NullPointerException: null
        at org.openhab.binding.shelly.internal.provider.ShellyChannelDefinitions.createRelayChannels(ShellyChannelDefinitions.java:350) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyRelayHandler.createRelayChannels(ShellyRelayHandler.java:293) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyRelayHandler.updateRelays(ShellyRelayHandler.java:337) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyRelayHandler.updateDeviceStatus(ShellyRelayHandler.java:202) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.refreshStatus(ShellyBaseHandler.java:522) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
        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:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]

I’m experiencing the same issue with the Shelly 3EM. But only for total consumption, power factor and current (which also has the wrong unit V instead of A).

yes can confirm this.
it started with the total accumulated kWh that were not updated.
then i though it may be related to the cache and then after cache clean all items from 3EM are not updating .
The error indicates that something got broken with the channel definition.

added a bug report here

1 Like

I updated from 3.4 snapshot somewhere begin November to current and I get a lot of these warnings which I didn’t have before:

Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.

2 Likes

Yes I have the same issue with both my 3EM’s.

It looks like only the device channel is still there. meter1, meter2 and meter3 are gone.

The top part are the previous available channels, the bottom part the current available channels.

I had the same issue with being flooded with warnings. It was suggested to just restart OH and it worked for me to stop the flood, at least for the moment.

restarting and cleaning cache did not solve it.
I updated to RC1 and now get these messages

17:27:24.760 [WARN ] [b.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.

Something is wrong here, my items do not get any update due to the null pointer exception reported in the bug report
I do get the IoT data from the shelly and bundle is decoding it , but channels are not updated

17:29:31.369 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
17:29:31.369 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
17:29:31.369 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: CoIoT Sensor data {"G":[[0,9103,2],[0,1101,0],[0,4105,91.82],[0,4106,477717.4],[0,4107,0.0],[0,4108,233.05],[0,4109,0.40],[0,4110,1.00],[0,4205,0.00],[0,4206,221344.0],[0,4207,148.5],[0,4208,235.10],[0,4209,0.01],[0,4210,0.03],[0,4305,0.00],[0,4306,234268.6],[0,4307,0.0],[0,4308,234.88],[0,4309,0.01],[0,4310,-0.02],[0,6102,0]]} (serial=39628)
17:29:31.370 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#currentWatts updated with 91.82 W (type class org.openhab.core.library.types.QuantityType).
17:29:31.370 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 21 CoAP sensor updates received
17:29:31.371 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter1#voltage updated with 233.1 V (type class org.openhab.core.library.types.QuantityType).
17:29:31.371 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter2#voltage updated with 235.1 V (type class org.openhab.core.library.types.QuantityType).
17:29:31.372 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Channel meter3#voltage updated with 234.9 V (type class org.openhab.core.library.types.QuantityType).
17:29:31.372 [DEBUG] [elly.internal.api1.Shelly1CoapHandler] - shellyem3-zaehlerkeller: 8 channels updated from CoIoT status, serial=39628
17:29:33.341 [DEBUG] [ly.internal.handler.ShellyBaseHandler] - shellyem3-zaehlerkeller: Unable to refresh status: Status konnte nicht aktualisiert werden

I want to use “Shelly Plus H&T” - but my actually used snapshot 3.4.0 has only 2 channels. Is a chance this will implemented next?

It was said in Release discussion to lower the log level to ERROR to remove these warnings. However I tried entries in the Console using log:set but doesn’t do the trick?

Any suggestions how to set the log level here?
Or do I have to restart OH for it to change the logging?

log:set ERROR org.openhab.binding.shelly

Restart should not be needed.

The log entries seems to be generated from b.core.thing.binding.BaseThingHandler.
But even though setting it to level ERROR it still spits out the warnings.
The ERROR setting on org.openhab.binding.shelly does not work either.

There are various builds of the binding out there? Are you referring to the version coming with the OH 3.4 release? This also include a NPE fix for devices without an external add-on switch.

Hi, the shelly binding is working great, and the shelly manager is very helpful, thanks for all the hard work put into it.

I am experiencing a strange issue with my shelly TRVs, where intermittently the current profile is not updated correctly. I have about 17 TRVs installed, and I am changing the profile by sending the command to a group, where all of them are contained. When changing the profile from 1 to 2, it works reliable on all devices, but when I am changing back from 2 to 1 after a few days, some devices fail to update their profile.

Interestingly, the item state is updated, so in OpenHAB it looks like the profile has been changed correctly, but when you log into the device directly, you can see that the old profile is still active.

I already checked the logs, but couldn’t find anything unusual, all shellys get an ItemCommandEvent, then an ItemStatePredictedEvent and the ItemStateChangedEvent afterwards. Devices which update the profile correctly fire an additional ItemStateChangedEvent, when the target temperature has been changed.

2022-12-18 12:00:00.299 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'gHaupthaus_Profil' received command 1.0
2022-12-18 12:00:00.317 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausSaal2_Profil' received command 1.0
2022-12-18 12:00:00.330 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausSaal1_Profil' received command 1.0
2022-12-18 12:00:00.345 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausSaal4_Profil' received command 1.0
2022-12-18 12:00:00.354 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausSaal3_Profil' received command 1.0
2022-12-18 12:00:00.363 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausWCLinks_Profil' received command 1.0
2022-12-18 12:00:00.371 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausWCRechts_Profil' received command 1.0
2022-12-18 12:00:00.401 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausHimmelbettzimmer_Profil' received command 1.0
2022-12-18 12:00:00.410 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausKinderzimmer_Profil' received command 1.0
2022-12-18 12:00:00.448 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausWeltliteraturzimmer2_Profil' received command 1.0
2022-12-18 12:00:00.457 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausKrimizimmer_Profil' received command 1.0
2022-12-18 12:00:00.514 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausWeltliteraturzimmer_Profil' received command 1.0
2022-12-18 12:00:00.528 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausSimmelzimmer_Profil' received command 1.0
2022-12-18 12:00:00.541 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausBadRechts_Profil' received command 1.0
2022-12-18 12:00:00.549 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'HaupthausBadLinks_Profil' received command 1.0
2022-12-18 12:00:00.550 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausSaal2_Profil' predicted to become 1.0
2022-12-18 12:00:00.582 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausSaal1_Profil' predicted to become 1.0
2022-12-18 12:00:00.593 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausSaal4_Profil' predicted to become 1.0
2022-12-18 12:00:00.602 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausSaal3_Profil' predicted to become 1.0
2022-12-18 12:00:00.611 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausWCLinks_Profil' predicted to become 1.0
2022-12-18 12:00:00.619 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausWCRechts_Profil' predicted to become 1.0
2022-12-18 12:00:00.628 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausHimmelbettzimmer_Profil' predicted to become 1.0
2022-12-18 12:00:00.685 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausKinderzimmer_Profil' predicted to become 1.0
2022-12-18 12:00:00.694 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausWeltliteraturzimmer2_Profil' predicted to become 1.0
2022-12-18 12:00:00.703 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausKrimizimmer_Profil' predicted to become 1.0
2022-12-18 12:00:00.714 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausWeltliteraturzimmer_Profil' predicted to become 1.0
2022-12-18 12:00:00.723 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausSimmelzimmer_Profil' predicted to become 1.0
2022-12-18 12:00:00.732 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausBadRechts_Profil' predicted to become 1.0
2022-12-18 12:00:00.747 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'HaupthausBadLinks_Profil' predicted to become 1.0
2022-12-18 12:00:00.756 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal2_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.760 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal1_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.762 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal4_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.763 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal3_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.765 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWCLinks_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.766 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWCRechts_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.767 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausHimmelbettzimmer_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.768 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausKinderzimmer_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.770 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWeltliteraturzimmer2_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.771 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausKrimizimmer_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.773 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWeltliteraturzimmer_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.774 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSimmelzimmer_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.775 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadRechts_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.782 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadLinks_Profil' changed from 2.0 to 1.0
2022-12-18 12:00:00.941 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadRechts_Zieltemperatur' changed from 19 °C to 5 °C
2022-12-18 12:00:00.942 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadRechts_Temperatur' changed from 21.5 °C to 21.4 °C
2022-12-18 12:00:01.025 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausHimmelbettzimmer_Zieltemperatur' changed from 17 °C to 5 °C
2022-12-18 12:00:01.136 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal2_Zieltemperatur' changed from 21 °C to 5 °C
2022-12-18 12:00:01.139 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal2_Temperatur' changed from 21 °C to 20.9 °C
2022-12-18 12:00:01.349 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausKinderzimmer_Zieltemperatur' changed from 17 °C to 5 °C
2022-12-18 12:00:01.526 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal3_Zieltemperatur' changed from 21 °C to 5 °C
2022-12-18 12:00:01.557 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadLinks_Zieltemperatur' changed from 19 °C to 5 °C
2022-12-18 12:00:01.558 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausBadLinks_Temperatur' changed from 19.6 °C to 19.5 °C
2022-12-18 12:00:02.011 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWCRechts_Zieltemperatur' changed from 19 °C to 5 °C
2022-12-18 12:00:02.013 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWCRechts_Temperatur' changed from 18.5 °C to 18.4 °C
2022-12-18 12:00:03.199 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWeltliteraturzimmer_Zieltemperatur' changed from 17 °C to 5 °C
2022-12-18 12:00:03.241 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWeltliteraturzimmer2_Zieltemperatur' changed from 17 °C to 10 °C
2022-12-18 12:00:03.254 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausWeltliteraturzimmer2_Temperatur' changed from 17.3 °C to 17.2 °C
2022-12-18 12:00:03.259 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausKrimizimmer_Zieltemperatur' changed from 17 °C to 5 °C
2022-12-18 12:00:03.261 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausKrimizimmer_Temperatur' changed from 17.8 °C to 17.6 °C
2022-12-18 12:00:03.619 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal1_Zieltemperatur' changed from 21 °C to 5 °C
2022-12-18 12:00:03.621 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'HaupthausSaal1_Temperatur' changed from 20.8 °C to 20.7 °C

You can see in the log, that Saal4, Simmelzimmer and WCLinks got lost, they didn’t apply the profile update and didn’t update the target temperature.

Is there any additional logging/tracing I can activate to find out what is going wrong? How it is possible, that ItemStateChangedEvent is fired for the profile, although it was not changed on the device? This should never happen, right?

Turn on trace with:

openhab-cli console

enter password(default=habopen)

log:set trace org.openhab.binding.shelly

to return to default enter

log:set default org.openhab.binding.shelly

I start using Shelly Plus H&T V0.12. Setup does work, also data transfer ok while in setup mode,
But not for “Small wake-up” (Shelly): After the device goes to sleep mode and 5 min after this, if the set thresholds were reached, the device measures and updates the display and send data to the cloud/MQTT/outbound socket with the status.
This does not work for me. I never receive current data, thresholds are met for sure.

Hi, is there anything known with shelly 2.5 as rollershutter on OH 3.4 stable? Somehow randomly the position control jumps to either 0 or 100 if I select values between, but just randomly!?
I even do not know how to trace the root cause. I have a virtual second item and a rule to invert the position (0 open, 100 closed) but this was working since a year with zero issues.

Attached al log where you see I tried to change from 89 (almost closed) to 81 with the item ShellyEGGaesteWCRolloRollerpos. The item ShellyEGGaesteWCRolloRollerposInverted is controlling the binding and translates via rule.

Group            gShellyEGGaesteWCRollo                                 "Rollo"                                              <blinds>         (gGaesteWC)                                   ["Blinds"]
Rollershutter    ShellyEGGaesteWCRolloGoogle                            "Gäste WC Rollo"                                     <blinds>         (gShellyEGGaesteWCRollo)                                                 {ga="Blinds" , channel="shelly:shelly25-roller:e8db84aa8062:roller#control"}
Rollershutter    ShellyEGGaesteWCRolloControl                           "Steuerung"                                          <blinds>         (gShellyEGGaesteWCRollo)                      ["Control","Opening"]      {channel="shelly:shelly25-roller:e8db84aa8062:roller#control",autoupdate="false"}
Dimmer           ShellyEGGaesteWCRolloRollerposInverted                 "Position Inverted [%d %%]"                          <blinds>         (gShellyEGGaesteWCRollo)                                                 {channel="shelly:shelly25-roller:e8db84aa8062:roller#rollerpos",autoupdate="false"}
Dimmer           ShellyEGGaesteWCRolloRollerpos                         "Verdunklung [%d %%]"                                <blinds>         (gShellyEGGaesteWCRollo)                      ["Setpoint","Opening"]     {listWidget="oh-slider-item"[min=0,max=100,step=1,scale=true, releaseOnly=true,iconUseState=true, scaleSteps=10,label=true]}
Switch           ShellyEGGaesteWCRolloClosed                            "(Teil-)geschlossen"                                 <blinds>         (gShellyEGGaesteWCRollo)                      ["OpenState","Opening"]    {listWidget="oh-label-item", stateDescription=""[options="ON=Unten,OFF=Oben"],widgetOrder="0"}

Rules

// Rollo GaesteWC
rule "Rollo GaesteWC Wert einlesen"
when
    Item ShellyEGGaesteWCRolloRollerposInverted changed
then
    // Status einlesen
    if (ShellyEGGaesteWCRolloRollerposInverted.state <99) {
        ShellyEGGaesteWCRolloClosed.postUpdate(ON)
    } else {
        ShellyEGGaesteWCRolloClosed.postUpdate(OFF)
    }
    */
    // Filter auf sinnvollen Wertebereich
    if (ShellyEGGaesteWCRolloRollerposInverted.state >= 0 && ShellyEGGaesteWCRolloRollerposInverted.state <=100) {
        ShellyEGGaesteWCRolloRollerpos.postUpdate(100.0 - (ShellyEGGaesteWCRolloRollerposInverted.state as Number))
    }
end
rule "Rollo GaesteWC Ansteuerung"
when
    Item ShellyEGGaesteWCRolloRollerpos changed
then
    // Filter auf sinnvollen Wertebereich
    if (ShellyEGGaesteWCRolloRollerpos.state >= 0 && ShellyEGGaesteWCRolloRollerpos.state <=100) {
        ShellyEGGaesteWCRolloRollerposInverted.sendCommand(100.0 - (ShellyEGGaesteWCRolloRollerpos.state as Number))
    }
end
2022-12-23 20:23:58.666 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'ShellyEGGaesteWCRolloRollerpos' received command 81
2022-12-23 20:23:58.670 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerpos' changed from 89.0 to 81
2022-12-23 20:23:58.678 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' received command 19.0
2022-12-23 20:23:58.680 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'ShellyEGGaesteWCRolloRollerposInverted' predicted to become 19.0
2022-12-23 20:23:58.684 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' changed from 11 to 19.0
2022-12-23 20:23:59.138 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' changed from 19.0 to 81
2022-12-23 20:23:59.142 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloGoogle' changed from 89 to 81
2022-12-23 20:23:59.144 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloControl' changed from 89 to 81
2022-12-23 20:23:59.148 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' changed from 81 to 19
2022-12-23 20:23:59.274 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' changed from 19 to 0
2022-12-23 20:23:59.280 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloGoogle' changed from 81 to 0
2022-12-23 20:23:59.282 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloControl' changed from 81 to 0
2022-12-23 20:23:59.287 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' changed from 0 to 100
2022-12-23 20:23:59.294 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloClosed' changed from ON to OFF
2022-12-23 20:23:59.301 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyEGGaesteWCRolloRollerpos' changed from 81.0 to 0.0
2022-12-23 20:23:59.307 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'ShellyEGGaesteWCRolloRollerposInverted' received command 100.0
2022-12-23 20:23:59.309 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'ShellyEGGaesteWCRolloRollerposInverted' predicted to become 100.0

Any idea?

Thanks and enjoy holidays :wink:

1 Like

I have the same problem: I’ve made a post about it here

I think it is related to a recent change in the binding code, but I’m not sure why the change was made…

Thanks for the hint. Is this a bug or a feature they want?