ok, we have
2020-09-12 16:27:45.851 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Message from /192.168.x.xx:5683 (MID=30290): {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":3108,"T":"S","D":"dwIsOpened","R":["0/1","-1"],"L":1},{"I":3109,"T":"S","D":"tilt","U":"deg","R":["0/180","-1"],"L":1},{"I":6110,"T":"A","D":"vibration","R":["0/1","-1"],"L":1},{"I":3106,"T":"L","D":"luminosity","U":"lux","R":["U32","-1"],"L":1},{"I":3110,"T":"S","D":"luminosityLevel","R":["dark/twilight/bright","unknown"],"L":1},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":1},{"I":3102,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/alarm","unknown"],"L":2}]}
2020-09-12 16:27:45.853 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Version 2 detected
2020-09-12 16:27:45.855 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Device Description for SHDW-2#xxxxxxxxx#2: {"blk":[{"I":1,"D":"sensor_0"},{"I":2,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":2},{"I":3108,"T":"S","D":"dwIsOpened","R":["0/1","-1"],"L":1},{"I":3109,"T":"S","D":"tilt","U":"deg","R":["0/180","-1"],"L":1},{"I":6110,"T":"A","D":"vibration","R":["0/1","-1"],"L":1},{"I":3106,"T":"L","D":"luminosity","U":"lux","R":["U32","-1"],"L":1},{"I":3110,"T":"S","D":"luminosityLevel","R":["dark/twilight/bright","unknown"],"L":1},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":1},{"I":3102,"T":"T","D":"extTemp","U":"F","R":["-67/257","999"],"L":1},{"I":3115,"T":"S","D":"sensorError","R":"0/1","L":1},{"I":3111,"T":"B","D":"battery","R":["0/100","-1"],"L":2},{"I":9102,"T":"EV","D":"wakeupEvent","R":["battery/button/periodic/poweron/sensor/alarm","unknown"],"L":2}]}
2020-09-12 16:27:45.856 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id=1: sensor_0
2020-09-12 16:27:45.857 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id=2: device
2020-09-12 16:27:45.859 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: Adding 11 sensor definitions
2020-09-12 16:27:45.860 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2020-09-12 16:27:45.861 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3108: dwIsOpened, Type=S, Range=0/1;-1, Links=1
2020-09-12 16:27:45.862 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3109: tilt, Type=S, Range=0/180;-1, Links=1
2020-09-12 16:27:45.863 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 6110: vibration, Type=A, Range=0/1;-1, Links=1
2020-09-12 16:27:45.864 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3106: luminosity, Type=L, Range=U32;-1, Links=1
2020-09-12 16:27:45.865 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3110: luminosityLevel, Type=S, Range=dark/twilight/bright;unknown, Links=1
2020-09-12 16:27:45.866 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3101: extTemp, Type=T, Range=-55/125;999, Links=1
2020-09-12 16:27:45.867 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3102: extTemp, Type=T, Range=-67/257;999, Links=1
2020-09-12 16:27:45.868 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3115: sensorError, Type=S, Range=0/1, Links=1
2020-09-12 16:27:45.869 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 3111: battery, Type=B, Range=0/100;-1, Links=2
2020-09-12 16:27:45.870 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/alarm;unknown, Links=2
2020-09-12 16:27:48.024 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxxxxxx: Updating sensor
2020-09-12 16:27:48.105 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxxxxxx: Updating DW state with close
2020-09-12 16:27:48.110 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-xxxxxxxxx: Channel battery#batteryLevel updated with 100.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-09-12 16:27:51.226 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxxxxxx: Updating sensor
2020-09-12 16:27:51.331 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxxxxxx: Updating DW state with close
2020-09-12 16:27:51.334 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-xxxxxxxxx: Channel battery#batteryLevel updated with 100.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-09-12 16:27:59.985 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Message from /192.168.x.xx:5683 (MID=56275): {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]}
2020-09-12 16:27:59.987 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Sensor data {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]} (serial=512)
2020-09-12 16:27:59.989 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 11 CoAP sensor updates received
2020-09-12 16:27:59.993 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-xxxxxxxxx: Channel battery#batteryLevel updated with 100.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-09-12 16:27:59.997 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 1 channels updated from CoIoT status, serial=512
2020-09-12 16:28:15.036 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Message from /192.168.x.xx:5683 (MID=56276): {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]}
2020-09-12 16:28:15.038 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Sensor data {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]} (serial=512)
2020-09-12 16:28:15.040 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 11 CoAP sensor updates received
2020-09-12 16:28:15.042 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-xxxxxxxxx: Channel battery#batteryLevel updated with 100.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-09-12 16:28:15.044 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 1 channels updated from CoIoT status, serial=512
2020-09-12 16:28:30.094 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Message from /192.168.x.xx:5683 (MID=56277): {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]}
2020-09-12 16:28:30.095 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: CoIoT Sensor data {"G":[[0,9103,0],[0,3108,0],[0,3109,-1],[0,6110,-1],[0,3106,15],[0,3110,"dark"],[0,3101,27.00],[0,3102,80.60],[0,3115,0],[0,3111,100],[0,9102,["button","sensor"]]]} (serial=512)
2020-09-12 16:28:30.096 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 11 CoAP sensor updates received
2020-09-12 16:28:30.099 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-xxxxxxxxx: Channel battery#batteryLevel updated with 100.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2020-09-12 16:28:30.100 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-xxxxxxxxx: 1 channels updated from CoIoT status, serial=512
2020-09-12 16:28:45.340 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-xxxxxxxxx: Enabling channel cache (20 updates / 60s)
2020-09-12 16:33:23.200 [DEBUG] [discovery.ShellyDiscoveryParticipant] - ServiceInfo [ServiceInfoImpl@11364983 name: 'shellydw2-xxxxxxxxx._http._tcp.local.' address: '(null):80' status: 'DNS: JmDNS-/192.168.y.yy [/192.168.y.yy] state: probing 1 task: null', has NO data, empty]
I see incoming CoAP messages, but only indicating sensor status = false
id 3108: dwIsOpened, Type=S, Range=0/1;-1, Links=1
when you search for 3108, you’ll only find “[0,3108,0]” - this indicates sensor closed
Do you see CoAP messages when opening and closing the window?
run tail -f openhan.log and watch what happens when you open/close the window multiple times
The binding will not indicate “sensor open” unless you see “[0,3108,1]”
You could also check http://<device-ip>/status when the window is open.
For this you need to wake up the device by pressing the button