Shelly Binding

sounds good

please run a “bundle:list | grep Californium”
I noticed that the 2.7.4 change was merged today (not before), which means: M5 should bring 2.7.3
In this case the M5 build works on M3, M4 and M5

@markus7017 I checked that when I installed the binding and M5, and indeed it is 2.7.3.

I use a shellydw2, but the state will not always be updated in openhab.
So open or close messages are not updated.

This usually happens when the shellydw2 is in sleep mode, then openhab.log does not show any updates of open or close changes even in DEBUG mode.

The only way I was able to fix this issue was by disable the shelly binding for the shellydw2 and use mqtt instead. with mqtt i did not miss an event update since mor then 3 days yet.

Enabled debug for org.eclipse.californium.*, but there nothing in openhab.log

Here screenshots from OH. devices witch was add in OHM3 have HANDLER_MISSING_ERROR, if we add them in OHM5 we get CONFIGURATION_ERROR

image

use the latest DEV build for M5 (referring to Californium 2.7.3)

Check the device settings. It seems that device is in roller mode whereas the thing is a relay. Set the correct mode, delete the thing and rediscover

1 Like

Is Californium now built in to the binding or is feature:install openhab-transport-coap still required? Ive been running fine after manually installing openhab-transport-coap.

Yes, device is in roller mode and it is correct, it configured to control shutters and it was working in example OH3MP3. Support for shelly2-roller is gone as of OH3M4

Latest DEV build Californium 2.7.3:

image

Hi @markus7017,

I installed openhab 3.4M5 and I noticed that the internal temperature channel is missing on the Dimmer 2 when I was adding one as a new thing. It is also missing on your picture of the dimmer 2 channels.

On an old thing of a dimmer2, I still have an item linked to the internal temperature channel, but now it is stating (unknown) invalid link, but still is showing the temperature.
In the Shelly Manager the old thing and new thing is showing the internal temperature.

I already installed your new binding from github, it fixed some other small issues (like signal strength on some devices showing as 4.0 in stat of 4 resulting in not showing ‘excellent’). But still after removing the thing and adding it again the ‘Internal Temperature’ channel of the dimmer2 is still missing.

I have no problems with all other shelly’s which support internal temperature channels.

Hope you find something.

Kind regards Jeroen.

After updating to OpenHAB 3.4 M5 all the unit of all total energy channels of the Shelly 3EM and Shelly 1PM changed form kWh to Joule, which made a total mess with my calculated fields and rules.

Any ideas how this happened and can be reversed?

Thanks,
Sebastian

I had the same problem, i removed dimension from all my numbers.

As update to the problems connecting to the H&T Plus Devices:
(Afaik especially when running openHAB in a Docker Container)

  • @ffr proposed to set the outbound websocket manually to the IP of the docker-host
  • @markus7017 today i upgraded to the milestone-alpine image which includes openHAB 3.4.0.M6
  • @markus7017 then i “paused” all Shelly H&T Things, removed the battery of each device and put it to “SET-Mode” → During “SET-Mode” i then pushed the “play” button for each thing

With this procedure i now have the first time the state that all of my 4 Shelly H&T Plus Devices are online

I don’t know what happens if i reboot my server or something but i will keep an eye on it and give you updates if i see something interesting

Thank you for all the effort

EDIT:

What i already can say by now is, that the Humidity values im Getting are much higher than the ones shown on the device.

e.g.

  • Device = 54%
  • Item = 70,2

Item-config:

Number:Dimensionless         dSheHTBatrm_H_Deg                      "Luftfeuchtigkeit Badezimmer [%d %unit%]"                                                                                                                                                                               {channel="shelly:shellyplusht:441793d0e114:sensors#humidity"}

EDIT2:

I now recognized that a new firmware is also available and updated this device to 20221206-142534/0.12.0-gafc2404 which seemed to solve it and the right humidity is now shown in openHAB

EDIT3:

Days have passed and all of my shelly h&t plus things are back to “error: comm”

Hi @markus7017 and all others :slight_smile:
I updated OH (again) to latest Milestone-Release 3.4M6.
Since I did this my log is being flooded with messages like this:

022-12-12 16:38:24.551 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplug:2f55f1:device#alarm triggered RESTARTED
2022-12-12 16:38:33.540 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:38:36.623 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1pm:4e277cfa:device#alarm triggered RESTARTED
2022-12-12 16:38:48.728 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:38:54.379 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1l:84cca8adf45f:device#alarm triggered RESTARTED
2022-12-12 16:38:54.682 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1pm:4e277cfa:device#alarm triggered RESTARTED
2022-12-12 16:38:57.631 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplug:2f55f1:device#alarm triggered RESTARTED
2022-12-12 16:39:03.868 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:39:09.709 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplug:2f55f1:device#alarm triggered RESTARTED
2022-12-12 16:39:09.995 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:39:12.745 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1pm:4e277cfa:device#alarm triggered RESTARTED
2022-12-12 16:39:30.790 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1pm:4e277cfa:device#alarm triggered RESTARTED
2022-12-12 16:39:34.161 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:39:48.787 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplug:2f55f1:device#alarm triggered RESTARTED
2022-12-12 16:39:48.830 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1pm:4e277cfa:device#alarm triggered RESTARTED
2022-12-12 16:39:52.837 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyHT_Hum' changed from 70 to 70.5
2022-12-12 16:39:52.838 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ShellyHT_Temp' changed from 3 to 3.3
2022-12-12 16:39:52.837 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.
2022-12-12 16:39:52.837 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel device#heartBeat is linked although the handler was already disposed.
2022-12-12 16:39:52.837 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel device#wakeupReason is linked although the handler was already disposed.
2022-12-12 16:39:52.837 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel battery#batteryLevel is linked although the handler was already disposed.
2022-12-12 16:39:52.838 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel sensors#humidity is linked although the handler was already disposed.
2022-12-12 16:39:52.838 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel sensors#lastError is linked although the handler was already disposed.
2022-12-12 16:39:52.838 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel sensors#temperature is linked although the handler was already disposed.
2022-12-12 16:39:52.838 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel sensors#lastUpdate is linked although the handler was already disposed.
2022-12-12 16:39:52.969 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.
2022-12-12 16:39:53.248 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.
2022-12-12 16:39:53.248 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel device#heartBeat is linked although the handler was already disposed.
2022-12-12 16:39:54.425 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shelly1l:84cca8adf45f:device#alarm triggered RESTARTED
2022-12-12 16:39:56.246 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.
2022-12-12 16:39:56.246 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel device#heartBeat is linked although the handler was already disposed.
2022-12-12 16:39:57.929 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplug:2f55f1:device#alarm triggered RESTARTED
2022-12-12 16:39:58.330 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellyplugs:9d8ae8:device#alarm triggered RESTARTED
2022-12-12 16:39:59.246 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.
2022-12-12 16:39:59.247 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler of thing shelly:shellyht:999fe35659 tried checking if channel device#heartBeat is linked although the handler was already disposed.
2022-12-12 16:40:02.249 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler ShellyRelayHandler tried updating the thing status although the handler was already disposed.

Any ideas why this is happening and where it comes from?
regards, Kai

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