Shelly Binding

If I try to force an installation by:

bundle:install https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-3.4.3-SNAPSHOT.jar

I get the following error message:

Bundle IDs: 
Error executing command: Error installing bundles:
        Unable to install bundle https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-3.4.3-SNAPSHOT.jar:
        org.osgi.framework.BundleException: Error occurred installing a bundle.

EDIT:
There is something seriously wrong:
I stoped oh, cleaned cache, restarted pi.
In the log file I can see that shelly devices started to send their data (item linked channels). However, OH restarts without my interaction. After the second restart californium has been deinstalled by the system

IFF you clear the cache the installed feature gets removed

  • use feature:install without the url
  • then copy jar
  • verify with bundle:list, check that Shelly binding is active

I just tried it with the 4.0.0-SNAPSHOT and it works

you need to add ?raw=true to the url
https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-3.4.3-SNAPSHOT.jar?raw=true
I won’t recommend to intall it directly from GitHub. Copy to local file and then to the adding folder

Hello Shelly Binding users,

is there anyone using the Shelly TRV and has an opinion on the following topic:

Should “schedule” and “selectedProfile” be independent properties, so you can change one without affecting the other, or should they be coupled, so when you chose a profile, schedule will automatically be enabled?

Currently it looks like it is a mix of both - disabling the schedule does not change the profile, but when you change the profile, schedule will get enabled. In the last release of the Shelly binding the selectedProfile did allow the value “0”, to disable the schedule. This is similar as in the Shelly-UI itself, where you have single dropdown, which has “Disabled” as its first entry. With the current release of the Shelly binding this possibility has been removed - selectedProfile can no longer be set to “0”, even if the schedule is disabled, selectedProfile still does return the last selected profile. This feels wrong to me.

I would expect these properties to be coupled and a “disabled” state option to exist for selectedProfile. This way the most common cases (displaying the current schedule and selecting a schedule with the possibility to disable it) are easy to achieve. This means if schedule is set to false, selectedProfile will be set to 0/disabled. If a different selectedProfile is chosen, schedule will be automatically set to true. If selectedProfile is set to 0, also schedule will be changed to false.

Regards,
Malte

Interesting question. I’m curious to read what others will say. In my case i don’t use those features on the device, but rather implement them in Openhab itself (via rules, for example).

@markus7017 just tried to install the 3.4.3 snapshot on my 3.4.2 installation (the 3.4.2 bundle in your list is not updated, right?).

  • uninstalled the included shelly binding
  • feature:install openhab-transport-coap

Bundle list contains:

282 │ Active │ 80 │ 3.4.3.202302261653 │ openHAB Add-ons :: Bundles :: Shelly Binding Gen1+2
283 │ Active │ 80 │ 0.3.0.v20220506-1020 │ EdDSA-Java
284 │ Active │ 80 │ 2.7.4 │ Californium (Cf) Core
285 │ Active │ 80 │ 2.7.4 │ Californium (Cf) Element Connector
286 │ Active │ 80 │ 2.7.4 │ Californium (Cf) OSGi
287 │ Active │ 80 │ 2.7.4 │ Scandium (Sc) Core

But the shelly binding does not start correctly:

2023-03-01 08:45:17.922 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.shelly-3.4.3-SNAPSH
OT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.shelly [282]
Unresolved requirement: Import-Package: org.eclipse.californium.core; version=“[2.7.0,3.0.0)”

    at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.17.200.jar:?]
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.17.200.jar:?]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.7.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.7.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.7.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.7.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.7.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.7.4]

What did I miss?

You missed to read the 4th post above of your post. Markus provided a suggestion. I do not know if it is working as I have reverted back to 3.4.2

Hmm, strange. I verified dependencies of the 3.4.3-SNAPSHOT and it shows Californium 2.7.4

[INFO]    org.eclipse.californium:californium-core:jar:2.7.4:provided -- module californium.core (auto)
[INFO]    org.eclipse.californium:californium-legal:jar:2.7.4:provided -- module californium.legal (auto)
[INFO]    org.eclipse.californium:scandium:jar:2.7.4:provided -- module scandium (auto)
[INFO]    org.eclipse.californium:element-connector:jar:2.7.4:provided -- module element.connector (auto)

which is correct.

Maybe try an openhab-cli clean-cache. Sometimes there are left-overs after uninstalling bindings (remove the jar in adding before).
The next OH restart takes a while, wait until completely initialized .
and then again " feature:install openhab-transport-coap" + copy jar to adding

you need ?raw=true if you are using curl etc. to download a binary from gitlab via deep url
I recommend to do the manual download from the gitlab UI if there is no need for (e.g. running on a headless host).

I updated READMEbeta to include some more information.

Hi Markus,
I wasn’t able to get the binding running.
Copying the jar file does not work (binding does not appear in bundle:list) neither does

bundle:install https://github.com/markus7017/myfiles/blob/master/shelly/org.openhab.binding.shelly-3.4.3-SNAPSHOT.jar?raw=true

I used the file jar which you published half an hour ago.

Could somebody who has 3.4.2 installed give me a hint if the latest binding is running on your side so that I know if it is just me? Thanks.

I updated the DEV build

  • Fixed a mixup of 3.4.3 build, which could “binding doesn’t show up”
  • Fix: Wrong precision for current. Even if 3 digits are displayed in the channel, the binding rounded on 1 digit before updating the channel. This affects EM, 3EM and all Plus/Pro relays.
  • Fix NPE when opening Shelly Manager (Action Page)
  • New channel sensor#open for TRC. Indicates if the windows is open. However, the TRV doesn’t provide this indication via CoAP, which means it takes up to 1min before the channel gets the update - even better than noting

@atetzner Did you verified the fix? Are your buttons working again?

@igi gave a heads-up that the links above pointed to the wrong versions, here are the correct ones:


3.4.3-DEV Gen1/Plus/Pro | 4.0.0-DEV Gen1/Plus/Pro | README | READMEbeta
Avdanced Users - Shelly Manager - Bugs/Features - API Doc | Firmware Index - Firmware Archive


Note: The DEV build is always newer than the version in the official Distro or Milestone builds

Sorry @markus7017 for the late response - first I was busy and unable to test and then I read about the problems with starting the bundle JAR …

I just tried your DEV build from the post above:

openhab> bundle:list | grep -i shelly                                                                                                                                                                              
303 │ Active │  80 │ 3.4.3.202303051921     │ openHAB Add-ons :: Bundles :: Shelly Binding Gen1+2

It may be, that my problem isn’t that bad as with 3.4.2 but I am not sure. First test with the DEV build triggered my testing rule for the button press with the third button press. (My rule logs with [INFO ] [g.openhab.core.model.script.MMButton] - Pressed)

Log
2023-03-06 21:55:27.816 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 21:55:27.816 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 21:55:27.816 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 21:55:27.816 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 21:55:27.823 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=34358): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:55:27.824 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 21:55:27.824 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 21:55:27.934 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Using CoAP device description from successful HTTP /cit/d
2023-03-06 21:55:27.934 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for shellybutton1-3c6105f44d2d: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 21:55:27.935 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 21:55:27.936 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 21:55:27.936 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 21:55:27.936 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 21:55:27.937 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 21:55:27.937 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 21:55:27.938 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 21:55:27.938 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 21:55:27.938 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 21:55:27.939 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 21:55:27.939 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Device description for SHBTN-2#3C6105F44D2D#2 restored: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 21:55:27.939 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for SHBTN-2#3C6105F44D2D#2: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 21:55:27.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 21:55:27.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 21:55:27.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 21:55:27.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 21:55:27.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 21:55:27.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 21:55:27.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 21:55:27.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 21:55:27.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 21:55:27.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 21:55:27.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 21:55:27.943 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 21:55:27.943 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 21:55:27.943 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 21:55:27.984 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 21:55:27.985 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 21:55:28.032 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 21:55:28.033 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=34359): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:55:28.033 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 21:55:28.033 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 21:55:28.034 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 21:55:28.068 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=56836): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:55:28.069 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,165],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 21:55:28.069 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 21:55:28.184 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 21:55:28.185 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 21:55:28.191 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 21:55:28.191 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 21:55:28.701 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 21:55:28.701 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 21:55:28.702 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 21:55:28.702 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 21:55:28.703 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 21:55:28.703 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener
2023-03-06 21:55:28.752 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Using CoAP device description from successful HTTP /cit/d
2023-03-06 21:55:28.753 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for shellybutton1-3c6105f44d2d: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 21:55:28.754 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 21:55:28.754 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 21:55:28.755 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 21:55:28.755 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 21:55:28.756 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 21:55:28.756 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 21:55:28.756 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 21:55:28.757 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 21:55:28.757 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 21:55:28.757 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 21:55:28.905 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Auto-CoIoT is enabled, disabling action urls
2023-03-06 21:55:28.906 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Starting CoIoT (autoCoIoT=true/true)
2023-03-06 21:55:28.906 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 21:55:28.907 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener
2023-03-06 21:55:28.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Using CoAP device description from successful HTTP /cit/d
2023-03-06 21:55:28.940 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for shellybutton1-3c6105f44d2d: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 21:55:28.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 21:55:28.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 21:55:28.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 21:55:28.941 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 21:55:28.942 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 21:55:28.943 [DEBUG] [.shelly.internal.api1.Shelly1HttpApi] - shellybutton1-3c6105f44d2d: Set Sensor Reporting URL
2023-03-06 21:55:28.943 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Initializing device shellybutton1-3c6105f44d2d, type SHBTN-2, Hardware: Rev: prod-2020-10, batch 1; Firmware: v1.12.1-ga9117d3 / 20221027-094830
2023-03-06 21:55:28.943 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Shelly settings info for shellybutton1-3c6105f44d2d: {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 21:55:28.943 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Device hasRelays:false (numRelays=0),isRoller:false (numRoller=0),isDimmer:false,numMeter=0,isEMeter:false), ext. Switch Add-On: n/a,isSensor:true,isDS:false,hasBattery:true (low battery threshold=20%),isSense:false,isMotion:false,isLight:false,isBulb:false,isDuo:false,isRGBW2:false,inColor:false,alwaysOn:false, updatePeriod:43260sec
2023-03-06 21:55:28.944 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Thing successfully initialized.
2023-03-06 21:55:29.025 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 21:55:29.026 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).





[ Button pressed ]

2023-03-06 21:55:59.719 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=26997): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,166],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:55:59.720 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 21:55:59.721 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,166],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 21:55:59.722 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 21:55:59.723 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 2 channels updated from CoIoT status, serial=256
2023-03-06 21:55:59.921 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=26998): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,166],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:55:59.922 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,166],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 21:55:59.922 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received




[ Button pressed ]

2023-03-06 21:56:17.030 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:20.409 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
k2023-03-06 21:56:26.489 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:29.561 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:35.641 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:38.713 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:44.793 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 21:56:47.865 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later



[ Button pressed ]

2023-03-06 21:57:00.252 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=49265): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,167],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:57:00.252 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,167],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 21:57:00.252 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 21:57:00.252 [DEBUG] [y.internal.api1.Shelly1CoIoTProtocol] - shellybutton1-3c6105f44d2d: Trigger event S
2023-03-06 21:57:00.253 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Update button state with S/SHORT_PRESSED
2023-03-06 21:57:00.253 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Send event status#button to channel SHORT_PRESSED
2023-03-06 21:57:00.253 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 1 channels updated from CoIoT status, serial=256
2023-03-06 21:57:00.254 [INFO ] [g.openhab.core.model.script.MMButton] - Pressed
2023-03-06 21:57:00.463 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=49266): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,167],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 21:57:00.463 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,167],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 21:57:00.463 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received

But after an OH restart, it worked just with the nineth button press … :frowning_face:

Log
[ Button pressed ]

2023-03-06 22:02:28.903 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 22:02:28.904 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 22:02:28.904 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 22:02:28.904 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly device discovered: IP-Adress=192.168.101.194, type=shellybutton1
2023-03-06 22:02:28.908 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=59567): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:02:28.908 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:02:28.909 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:02:29.014 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Using CoAP device description from successful HTTP /cit/d
2023-03-06 22:02:29.014 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for shellybutton1-3c6105f44d2d: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 22:02:29.015 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 22:02:29.016 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 22:02:29.016 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 22:02:29.017 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 22:02:29.017 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 22:02:29.017 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 22:02:29.018 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 22:02:29.018 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 22:02:29.018 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 22:02:29.019 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 22:02:29.019 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Device description for SHBTN-2#3C6105F44D2D#2 restored: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 22:02:29.019 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for SHBTN-2#3C6105F44D2D#2: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 22:02:29.019 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 22:02:29.020 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 22:02:29.020 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 22:02:29.020 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 22:02:29.021 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 22:02:29.021 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 22:02:29.021 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 22:02:29.021 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 22:02:29.022 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 22:02:29.022 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 22:02:29.022 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:02:29.023 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:02:29.023 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:02:29.024 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:02:29.117 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=59568): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:02:29.118 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:02:29.118 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:02:29.215 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 22:02:29.216 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 22:02:29.238 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=61628): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:02:29.239 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,168],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:02:29.240 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:02:29.245 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 22:02:29.246 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 22:02:29.372 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 22:02:29.373 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 22:02:29.375 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Shelly settings : {"device":{"type":"SHBTN-2","mac":"3C6105F44D2D","hostname":"shellybutton1-3C6105F44D2D","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellybutton1-3C6105F44D2D","key":""},"wifi_sta":{"enabled":true,"ssid":"Link","ipv4_method":"static","ip":"192.168.101.194","gw":"192.168.101.22","mask":"255.255.255.0","dns":"192.168.101.22"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellybutton1-3C6105F44D2D","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":false},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"multimedia-button.wohnzimmer.i","fw":"20221027-094830/v1.12.1-ga9117d3","discoverable":true,"build_info":{"build_id":"20221027-094830/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T09:48:30Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":null,"lat":500.000000,"lng":500.000000,"tzautodetect":true,"tz_utc_offset":0,"tz_dst":false,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["shortpush_url","longpush_url","double_shortpush_url","triple_shortpush_url"]},"hwinfo":{"hw_revision":"prod-2020-10","batch_id":1},"sleep_mode":{"period":12,"unit":"h"},"led_status_disable":false,"longpush_duration_ms":{"max":800},"multipush_time_between_pushes_ms":{"max":500},"remain_awake":0,"inputs":[{"name":null}]}
2023-03-06 22:02:29.375 [DEBUG] [discovery.ShellyDiscoveryParticipant] - shellybutton1-3c6105f44d2d: Adding Shelly multimedia-button.wohnzimmer.i, UID=shelly:shellybutton2:3c6105f44d2d
2023-03-06 22:02:31.886 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:02:31.887 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:02:31.887 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:02:31.889 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:02:31.889 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:02:31.889 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener


[ Just wait ]


2023-03-06 22:03:01.891 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later



[ Button pressed ]

2023-03-06 22:03:27.212 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=59924): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,169],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:03:27.213 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:03:27.213 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,169],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:03:27.214 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:03:27.215 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:03:27.216 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:03:27.217 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:03:27.413 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=59925): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,169],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:03:27.414 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,169],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:03:27.415 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:03:28.894 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:03:28.894 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:03:28.895 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:03:28.895 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:03:28.896 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener
2023-03-06 22:03:43.899 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later



[ Button pressed ]

2023-03-06 22:04:02.228 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=24166): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,170],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:02.229 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:04:02.229 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,170],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:04:02.230 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:02.231 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:04:02.231 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:04:02.232 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:04:02.433 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=24167): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,170],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:02.434 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,170],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:04:02.435 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:04.901 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:04:04.902 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:04:04.902 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:04:04.904 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:04:04.904 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener



[ Button pressed ]

2023-03-06 22:04:19.436 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=56722): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,171],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:19.437 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:04:19.437 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,171],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:04:19.438 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:19.439 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:04:19.440 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:04:19.440 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:04:19.637 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=56723): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,171],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:19.638 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,171],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:04:19.638 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:19.907 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 22:04:19.931 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=61631): {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 22:04:19.932 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Device Description for SHBTN-2#3C6105F44D2D#2: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L/SS/SSS",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3112,"T":"S","D":"charger","R":["0/1","-1"],"L":2},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/ext_power","unknown"],"L":2}]}
2023-03-06 22:04:19.932 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=1: sensor_0
2023-03-06 22:04:19.933 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id=2: device
2023-03-06 22:04:19.933 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Adding 7 sensor definitions
2023-03-06 22:04:19.933 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2023-03-06 22:04:19.934 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2102: inputEvent, Type=EV, Range=S/L/SS/SSS;, Links=1
2023-03-06 22:04:19.934 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 2103: inputEventCnt, Type=EVC, Range=U16, Links=1
2023-03-06 22:04:19.934 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3115: sensorError, Type=S, Range=0/1, Links=1
2023-03-06 22:04:19.935 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3112: charger, Type=S, Range=0/1;-1, Links=2
2023-03-06 22:04:19.935 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 3111: battery, Type=B, Range=0/100;-1, Links=2
2023-03-06 22:04:19.936 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d:    id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/ext_power;unknown, Links=2
2023-03-06 22:04:22.911 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:04:22.912 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:04:22.913 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:04:22.913 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:04:22.914 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener



[ Button pressed ]

2023-03-06 22:04:47.456 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=45564): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,172],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:47.456 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:04:47.457 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,172],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:04:47.457 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:47.457 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:04:47.457 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:04:47.458 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:04:47.661 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=45565): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,172],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:04:47.662 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,172],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:04:47.663 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:04:52.915 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 22:04:55.916 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:04:55.917 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:04:55.917 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:04:55.919 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:04:55.919 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener




[ Button pressed ]

2023-03-06 22:05:09.305 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 22:05:09.717 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=55498): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,173],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:05:09.718 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:05:09.719 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,173],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:05:09.719 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:05:09.720 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:05:09.721 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:05:09.722 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:05:09.918 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=55499): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,173],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:05:09.918 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,173],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:05:09.918 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:05:12.307 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:05:12.308 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:05:12.308 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:05:12.309 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:05:12.310 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener
2023-03-06 22:05:25.689 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later




[ Button pressed ]

2023-03-06 22:08:35.331 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=9892): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,174],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:08:35.332 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:08:35.332 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,174],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:08:35.333 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:08:35.334 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:08:35.335 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:08:35.335 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:08:35.501 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=9893): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,174],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:08:35.502 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,174],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:08:35.503 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:08:37.712 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Status update triggered thing initialization
2023-03-06 22:08:37.713 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Start initializing for thing Wohnzimmer, Multimedia Button, type shellybutton1, IP address 192.168.101.194, Gen2: false, CoIoT: true
2023-03-06 22:08:37.713 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Stopping CoAP Listener
2023-03-06 22:08:37.714 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoAP Request was canceled
2023-03-06 22:08:37.714 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: Starting CoAP Listener




[ Button pressed ]

2023-03-06 22:08:42.641 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=24546): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,175],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:08:42.642 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Version 2 detected
2023-03-06 22:08:42.642 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,175],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:08:42.642 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:08:42.643 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ereignis gefiltert: BUTTON
2023-03-06 22:08:42.643 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Channel battery#batteryLevel updated with 79 % (type class org.openhab.core.library.types.QuantityType).
2023-03-06 22:08:42.643 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 5 channels updated from CoIoT status, serial=256
2023-03-06 22:08:42.845 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=24547): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,175],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:08:42.846 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,175],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=512)
2023-03-06 22:08:42.846 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received




[ Button pressed ]

2023-03-06 22:08:52.717 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Ignore API Timeout, retry later
2023-03-06 22:08:52.744 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Message from /192.168.101.194:5683 (MID=7972): {"G":[[0,9103,0],[0,2102,"S"],[0,2103,176],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]}
2023-03-06 22:08:52.745 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: CoIoT Sensor data {"G":[[0,9103,0],[0,2102,"S"],[0,2103,176],[0,3115,0],[0,3112,0],[0,3111,79],[0,9102,["button"]]]} (serial=256)
2023-03-06 22:08:52.746 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 7 CoAP sensor updates received
2023-03-06 22:08:52.746 [DEBUG] [y.internal.api1.Shelly1CoIoTProtocol] - shellybutton1-3c6105f44d2d: Trigger event S
2023-03-06 22:08:52.747 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Update button state with S/SHORT_PRESSED
2023-03-06 22:08:52.747 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellybutton1-3c6105f44d2d: Send event status#button to channel SHORT_PRESSED
2023-03-06 22:08:52.748 [DEBUG] [lly.internal.api1.Shelly1CoapHandler] - shellybutton1-3c6105f44d2d: 1 channels updated from CoIoT status, serial=256
2023-03-06 22:08:52.778 [INFO ] [g.openhab.core.model.script.MMButton] - Pressed

If it helps, I can also activate TRACE log, just let me know.

In some post above, I read that the Shelly binding is associating coap messages with the OH things according to their IP address. Therefore, I tried reconfiguring a button thing in OH and directly use it’s IP instead of its local DNS name, but this didn’t help (fourth button press was registered and there seemd to be a bigger delay between button presses and logging in OH).

Update to updated DEV build and then
provide a TRACE log and don’t delete lines in between
I suppose the API timeout relates to /settings

The button also has an option to keep it alive for 0-5sec after wakeup. Try to set this value to 2sec in the device UI.

Providing logs from my productive OH instance seems not sensible as there are over 40 Shelly things configured and I suppose the relevant log lines would be hard to filter out.

Therefore I have put up a temporary OH instance with just one Shelly button thing configured. After configuring a keep alive of 2s for the button, I could reproducably get SHORT_PRESSED events for the third button press - the first two presses are still missing.

After raising the keep alive time, I tried to reproduce the behaviour of my testing instance with my productive OH instance, but there the problem persisted :frowning_face:

As even the testing instance gets the coap messages of all shellies, it logs a lot of sensitive information. I will therefore send you the logs from my testing instance by direct message, @markus7017 . If this still doesn’t help, I can also send you logs from my productive instance.

Hello,
Im currently deploying a new clean OpenHAB setup and im using some Shelly Plus 2 PM for covers.
I started with a clean OpenHAB Setup (3.4.2, via deb, ubuntu 22.04, openjdk11)
The Instance is clean (freshly deployed LXC Container, only the official shelly addon installed).

Now to my issue: having the shelly plus configured in Relay mode, everything is fine.
However as soon as i try to bind one in cover mode, it doesnt work.
It goes into error state every time.
(Both tested from a fresh new template VM).

In the OpenHAB Log, there a NPE

java.lang.NullPointerException: null
        at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.updateRollerStatus(Shelly2ApiClient.java:363) ~[?:?]
        at org.openhab.binding.shelly.internal.api2.Shelly2ApiClient.fillDeviceStatus(Shelly2ApiClient.java:183) ~[?:?]
        at org.openhab.binding.shelly.internal.api2.Shelly2ApiRpc.getStatus(Shelly2ApiRpc.java:552) ~[?:?]
        at org.openhab.binding.shelly.internal.api2.Shelly2ApiRpc.getDeviceProfile(Shelly2ApiRpc.java:261) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.initializeThing(ShellyBaseHandler.java:286) ~[?:?]
        at org.openhab.binding.shelly.internal.handler.ShellyBaseHandler.lambda$0(ShellyBaseHandler.java:188) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        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:1128) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
        at java.lang.Thread.run(Thread.java:829) [?:?]

I didnt find much in currently open issues.

Can someone help me?

It seems like that some objects are missing in cover mode in the Status request

id	0
source	"timeout"
state	"stopped"
apower	0
voltage	229.6
current	0
pf	0
aenergy	
total	4.188
temperature	
tC	49.9
tF	121.9
pos_control	true
current_pos	95

this is my return value of a getStatus on a shelly plus 2pm with newest firmware

        if (cs.aenergy != null) {
            sm.total = emeter.total = cs.aenergy.total;
            sm.counters = cs.aenergy.byMinute;
            sm.timestamp = (long) cs.aenergy.minuteTs;
        }

Thats the code snipped of the Shelly2ApiClient.java where the issue occures
(en detail it occures at the assignment of the Timestamp)

hope this helps in the debugging

Just as Headsup and maybe for the Infopage:
I found the issue.
I blocked NTP in my firewall for the shellys ( or didnt allow it initially)
Without a correct time, the timestamp in the shelly is NULL (when you request it over the system rpc)
and hence the shelly does not send the energy timestamp. (wich breaks things in blinds/cover mode with the binding)
With correctly configured NTP server, everything works with the official repository.

As long term solution, maybe a warning/information should be added in the addon’s documentation.
Or the other way would be to make the binding more fault tolerant, so it doesnt take minuteTS as mandatory ?

Have a nice day :wink:

1 Like

I updated to openHAB 4.0.0 Milestone 1 and since then I cannot access the shelly manager anymore. Is there something which I have overlooked?
image