OH 2.5.11
I have a strange case here with my second DW2.
It works completely fine with the Shelly App. Sensor reports OPEN/CLOSE flawlessly. It is ONLINE in Openhab, channels are defined.
When triggering a configuration change in PaperUI, all the channels report back.
When opening or closing the sensor, no push activity in Openhab - no entry in the DEBUG logs.
When comparing the config parameters of the non-working DW2 with the working DW2, I can see no difference. I like to add though, that the “working” DW2 does not consistantly work. Every now and then, the channels do not report open and close. What is the optimal configuration for DW2s to work with Opanhab?
Any help or idea is appreciated.
Debug log of the faulty device:
2021-01-03 14:45:03.311 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Initializing device shellydw2-483fda81f2cf, type SHDW-2, Hardware: Rev: , batch ; Firmware: v1.9.3 / 20201228-092556 (ad2bb4e3)
2021-01-03 14:45:03.314 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Shelly settings info for shellydw2-483fda81f2cf: {"device":{"type":"SHDW-2","mac":"MAC","hostname":"shellydw2-483FDA81F2CF","sleep_mode":true},"wifi_ap":{"enabled":false,"ssid":"shellydw2-483FDA81F2CF","key":""},"wifi_sta":{"enabled":true,"ssid":"SSID","ipv4_method":"static","ip":"<IP>","gw":"<GATEWAY>","mask":"255.255.255.0","dns":"<DNS>"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt": {"enable":false,"server":"<IP>","user":"","id":"shellydw2-483FDA81F2CF","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": {"update_period":15},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"ID"},"pin_code":"++(vtn","name":null,"fw":"20201228-092556/v1.9.3@ad2bb4e3","discoverable":false,"build_info":{"build_id":"20201228-092556/v1.9.3@ad2bb4e3","build_timestamp":"2020-12-28T09:25:56Z","build_version":"1.0"},"cloud":{"enabled":false,"connected":false},"timezone":"Europe/Berlin","lat":0.000000,"lng":0.000000,"tzautodetect":false,"tz_utc_offset":0,"tz_dst":true,"tz_dst_auto":true,"time":"","unixtime":0,"led_status_disable":false,"actions":{"active":false,"names":["dark_url","twilight_url","open_url","close_url","vibration_url","temp_over_url","temp_under_url"]},"dark_threshold":100,"twilight_threshold":300,"sleep_mode":{"period":6,"unit":"h"},"led_status_disable":false,"tilt_enabled":false,"tilt_calibrated":false,"vibration_enabled":false,"reverse_open_close":false,"lux_wakeup_enable":false,"sensors":{"temperature_threshold":1.0,"temperature_unit":"C"},"temperature_offset":0.0}
2021-01-03 14:45:03.316 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Device hasRelays:false (numRelays=0),isRoller:false (numRoller=0),isDimmer:false,numMeter=0,isEMeter:false),isSensor:true,isDS:true,hasBattery:true (low battery threshold=20%),isSense:false,isLight:false,isBulb:false,isDuo:false,isRGBW2:false,inColor:false,updatePeriod:21660sec
2021-01-03 14:45:03.452 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#uptime updated with 106 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:03.456 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#wifiSignal updated with 3 (type class org.eclipse.smarthome.core.library.types.DecimalType).
2021-01-03 14:45:03.459 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#internalTemp updated with 22 °C (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:03.462 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#updateAvailable updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:03.463 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#alarm updated with NONE (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:03.465 [DEBUG] [ng.shelly.internal.api.ShellyHttpApi] - shellydw2-483fda81f2cf: Set Sensor Reporting URL
2021-01-03 14:45:03.468 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Starting CoIoT (autoCoIoT=false/false)
2021-01-03 14:45:03.470 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: Stopping CoAP Listener
2021-01-03 14:45:03.472 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: CoAP Request was canceled
2021-01-03 14:45:03.474 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: Starting CoAP Listener
2021-01-03 14:45:03.478 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Thing successfully initialized.
2021-01-03 14:45:03.480 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Update status job started, interval=300*3=900sec.
2021-01-03 14:45:03.507 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: CoIoT Message from /<IP>:5683 (MID=58131): {"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}]}
2021-01-03 14:45:03.510 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: CoIoT Version 2 detected
2021-01-03 14:45:03.513 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: CoIoT Device Description for SHDW-2#483FDA81F2CF#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}]}
2021-01-03 14:45:03.518 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id=1: sensor_0
2021-01-03 14:45:03.520 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id=2: device
2021-01-03 14:45:03.522 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: Adding 11 sensor definitions
2021-01-03 14:45:03.524 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 9103: cfgChanged, Type=EVC, Range=U16, Links=2
2021-01-03 14:45:03.525 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3108: dwIsOpened, Type=S, Range=0/1;-1, Links=1
2021-01-03 14:45:03.527 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3109: tilt, Type=S, Range=0/180;-1, Links=1
2021-01-03 14:45:03.529 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 6110: vibration, Type=A, Range=0/1;-1, Links=1
2021-01-03 14:45:03.531 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3106: luminosity, Type=L, Range=U32;-1, Links=1
2021-01-03 14:45:03.532 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3110: luminosityLevel, Type=S, Range=dark/twilight/bright;unknown, Links=1
2021-01-03 14:45:03.534 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3101: extTemp, Type=T, Range=-55/125;999, Links=1
2021-01-03 14:45:03.536 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3102: extTemp, Type=T, Range=-67/257;999, Links=1
2021-01-03 14:45:03.538 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3115: sensorError, Type=S, Range=0/1, Links=1
2021-01-03 14:45:03.539 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 3111: battery, Type=B, Range=0/100;-1, Links=2
2021-01-03 14:45:03.541 [DEBUG] [elly.internal.coap.ShellyCoapHandler] - shellydw2-483fda81f2cf: id 9102: wakeupEvent, Type=EV, Range=battery/button/periodic/poweron/sensor/alarm;unknown, Links=2
2021-01-03 14:45:05.814 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#heartBeat updated with 2021-01-03T14:45:05.000+0100 (type class org.eclipse.smarthome.core.library.types.DateTimeType).
2021-01-03 14:45:05.816 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#deviceName updated with (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.817 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#statusLed updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:05.818 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#powerLed updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:05.821 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#uptime updated with 108 s (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:05.822 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#wifiSignal updated with 4 (type class org.eclipse.smarthome.core.library.types.DecimalType).
2021-01-03 14:45:05.895 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#wakeupReason updated with button (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.896 [INFO ] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Event triggered: BUTTON
2021-01-03 14:45:05.898 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#alarm updated with BUTTON (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.900 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#state updated with CLOSED (type class org.eclipse.smarthome.core.library.types.OpenClosedType).
2021-01-03 14:45:05.902 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#lastError updated with (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.905 [INFO ] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Event triggered:
2021-01-03 14:45:05.907 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel device#alarm updated with (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.910 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#temperature updated with 22.4 °C (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:05.912 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#lux updated with 763 lx (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:05.914 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#illumination updated with bright (type class org.eclipse.smarthome.core.library.types.StringType).
2021-01-03 14:45:05.916 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#tilt updated with -1 ° (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:05.918 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#vibration updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:05.920 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel battery#batteryLevel updated with 98.0 % (type class org.eclipse.smarthome.core.library.types.QuantityType).
2021-01-03 14:45:05.922 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel battery#lowBattery updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:05.923 [DEBUG] [lly.internal.util.ShellyChannelCache] - shellydw2-483fda81f2cf: Channel sensors#motion updated with OFF (type class org.eclipse.smarthome.core.library.types.OnOffType).
2021-01-03 14:45:05.925 [DEBUG] [y.internal.handler.ShellyBaseHandler] - shellydw2-483fda81f2cf: Unable to refresh status: Unable to update status