bloob00k / domoticz

0 stars 0 forks source link

Problem reading data #3

Closed dbrb2 closed 3 years ago

dbrb2 commented 3 years ago

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:43:58.015 Status: (Heating) Started. 2021-01-15 18:43:58.098 Status: (Heating) Entering work loop. 2021-01-15 18:43:58.099 Status: (Heating) Initialized version 1.0.0, author 'bluebook' 2021-01-15 18:43:58.227 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:43:58.227 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:43:58.227 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:43:58.227 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices 2021-01-15 18:44:08.100 (Heating) Pushing 'onHeartbeatCallback' on to queue 2021-01-15 18:44:08.147 (Heating) Processing 'onHeartbeatCallback' message 2021-01-15 18:44:08.147 (Heating) Calling message handler 'onHeartbeat'. 2021-01-15 18:44:18.134 (Heating) Pushing 'onHeartbeatCallback' on to queue 2021-01-15 18:44:18.178 (Heating) Processing 'onHeartbeatCallback' message 2021-01-15 18:44:18.178 (Heating) Calling message handler 'onHeartbeat'. 2021-01-15 18:44:28.136 (Heating) Pushing 'onHeartbeatCallback' on to queue 2021-01-15 18:44:28.186 (Heating) Processing 'onHeartbeatCallback' message 2021-01-15 18:44:28.186 (Heating) Calling message handler 'onHeartbeat'. 2021-01-15 18:44:38.138 (Heating) Pushing 'onHeartbeatCallback' on to queue 2021-01-15 18:44:38.156 (Heating) Processing 'onHeartbeatCallback' message 2021-01-15 18:44:38.156 (Heating) Calling message handler 'onHeartbeat'. 2021-01-15 18:44:48.188 (Heating) Pushing 'onHeartbeatCallback' on to queue 2021-01-15 18:44:48.193 (Heating) Processing 'onHeartbeatCallback' message 2021-01-15 18:44:48.193 (Heating) Calling message handler 'onHeartbeat'. 2021-01-15 18:44:58.406 (Heating) 65 46 69 6c 65 6e 61 6d 65 22 3a 22 31 30 35 45 2d 30 34 30 eFilename":"105E-040 2021-01-15 18:44:58.407 (Heating) 31 2d 30 30 30 30 32 37 31 35 2d 30 30 30 30 2d 30 30 30 30 1-00002715-0000-0000 2021-01-15 18:44:58.407 (Heating) 2e 7a 69 67 62 65 65 22 7d 2c 7b 22 69 64 22 3a 33 2c 22 46 .zigbee"},{"id":3,"F 2021-01-15 18:44:58.407 (Heating) 69 72 6d 77 61 72 65 46 69 6c 65 6e 61 6d 65 22 3a 22 31 30 irmwareFilename":"10 2021-01-15 18:44:58.407 (Heating) 35 45 2d 30 34 30 31 2d 30 30 30 30 32 37 31 35 2d 30 30 30 5E-0401-00002715-000 2021-01-15 18:44:58.407 (Heating) 31 2d 30 30 30 31 2e 7a 69 67 62 65 65 22 7d 2c 7b 22 69 64 1-0001.zigbee"},{"id 2021-01-15 18:44:58.407 (Heating) 22 3a 34 2c 22 46 69 72 6d 77 61 72 65 46 69 6c 65 6e 61 6d ":4,"FirmwareFilenam 2021-01-15 18:44:58.407 (Heating) 65 22 3a 22 31 30 35 45 2d 30 34 34 31 2d 30 30 30 30 32 37 e":"105E-0441-000027 2021-01-15 18:44:58.407 (Heating) 31 35 2d 30 30 30 30 2d 30 30 30 30 2e 7a 69 67 62 65 65 22 15-0000-0000.zigbee" 2021-01-15 18:44:58.407 (Heating) 7d 2c 7b 22 69 64 22 3a 35 2c 22 46 69 72 6d 77 61 72 65 46 },{"id":5,"FirmwareF 2021-01-15 18:44:58.407 (Heating) 69 6c 65 6e 61 6d 65 22 3a 22 31 30 35 45 2d 30 34 34 31 2d ilename":"105E-0441- 2021-01-15 18:44:58.407 (Heating) 30 30 30 30 32 37 31 35 2d 30 30 30 31 2d 30 30 30 31 2e 7a 00002715-0001-0001.z 2021-01-15 18:44:58.407 (Heating) 69 67 62 65 65 22 7d 2c 7b 22 69 64 22 3a 36 2c 22 46 69 72 igbee"},{"id":6,"Fir 2021-01-15 18:44:58.407 (Heating) 6d 77 61 72 65 46 69 6c 65 6e 61 6d 65 22 3a 22 31 30 35 45 mwareFilename":"105E 2021-01-15 18:44:58.407 (Heating) 2d 30 34 45 31 2d 30 30 30 30 41 34 31 32 2d 30 30 30 30 2d -04E1-0000A412-0000- 2021-01-15 18:44:58.407 (Heating) 30 30 30 39 2e 7a 69 67 62 65 65 22 7d 2c 7b 22 69 64 22 3a 0009.zigbee"},{"id": 2021-01-15 18:44:58.408 (Heating) 37 2c 22 46 69 72 6d 77 61 72 65 46 69 6c 65 6e 61 6d 65 22 7,"FirmwareFilename" 2021-01-15 18:44:58.408 (Heating) 3a 22 31 30 35 45 2d 30 35 45 31 2d 30 30 30 30 30 30 31 37 :"105E-05E1-00000017 2021-01-15 18:44:58.408 (Heating) 2d 30 30 30 30 2d 30 30 30 39 2e 7a 69 67 62 65 65 22 7d 2c -0000-0009.zigbee"}, 2021-01-15 18:44:58.408 (Heating) 7b 22 69 64 22 3a 38 2c 22 46 69 72 6d 77 61 72 65 46 69 6c {"id":8,"FirmwareFil 2021-01-15 18:44:58.408 (Heating) 65 6e 61 6d 65 22 3a 22 31 30 35 45 2d 30 41 30 30 2d 30 30 ename":"105E-0A00-00 2021-01-15 18:44:58.408 (Heating) 30 30 37 44 30 30 2d 30 30 30 30 2d 30 30 30 30 2e 7a 69 67 007D00-0000-0000.zig 2021-01-15 18:44:58.408 (Heating) 62 65 65 22 7d 5d 2c 22 53 6d 61 72 74 56 61 6c 76 65 22 3a bee"}],"SmartValve": 2021-01-15 18:44:58.408 (Heating) 5b 7b 22 69 64 22 3a 31 2c 22 4d 6f 75 6e 74 69 6e 67 4f 72 [{"id":1,"MountingOr 2021-01-15 18:44:58.408 (Heating) 69 65 6e 74 61 74 69 6f 6e 22 3a 22 56 65 72 74 69 63 61 6c ientation":"Vertical 2021-01-15 18:44:58.408 (Heating) 22 2c 22 53 65 74 50 6f 69 6e 74 22 3a 31 38 30 2c 22 4d 65 ","SetPoint":180,"Me 2021-01-15 18:44:58.408 (Heating) 61 73 75 72 65 64 54 65 6d 70 65 72 61 74 75 72 65 22 3a 31 asuredTemperature":1 2021-01-15 18:44:58.408 (Heating) 37 39 2c 22 50 65 72 63 65 6e 74 61 67 65 44 65 6d 61 6e 64 79,"PercentageDemand 2021-01-15 18:44:58.408 (Heating) 22 3a 37 31 2c 22 57 69 6e 64 6f 77 53 74 61 74 65 22 3a 22 ":71,"WindowState":" 2021-01-15 18:44:58.408 (Heating) 43 6c 6f 73 65 64 22 7d 2c 7b 22 69 64 22 3a 32 2c 22 4d 6f Closed"},{"id":2,"Mo 2021-01-15 18:44:58.409 (Heating) 75 6e 74 69 6e 67 4f 72 69 65 0d 0a 34 30 30 0d 0a 6e 74 61 untingOrie..400..nta 2021-01-15 18:44:58.409 (Heating) 74 69 6f 6e 22 3a 22 56 65 72 74 69 63 61 6c 22 2c 22 53 65 tion":"Vertical","Se 2021-01-15 18:44:58.409 (Heating) 74 50 6f 69 6e 74 22 3a 2d 32 30 30 2c 22 4d 65 61 73 75 72 tPoint":-200,"Measur 2021-01-15 18:44:58.409 (Heating) 65 64 54 65 6d 70 65 72 61 74 75 72 65 22 3a 31 36 31 2c 22 edTemperature":161," 2021-01-15 18:44:58.409 (Heating) 50 65 72 63 65 6e 74 61 67 65 44 65 6d 61 6e 64 22 3a 30 2c PercentageDemand":0, 2021-01-15 18:44:58.409 (Heating) 22 57 69 6e 64 6f 77 53 74 61 74 65 22 3a 22 43 6c 6f 73 65 "WindowState":"Close 2021-01-15 18:44:58.409 (Heating) 64 22 7d 2c 7b 22 69 64 22 3a 33 2c 22 4d 6f 75 6e 74 69 6e d"},{"id":3,"Mountin 2021-01-15 18:44:58.409 (Heating) 67 4f 72 69 65 6e 74 61 74 69 6f 6e 22 3a 22 56 65 72 74 69 gOrientation":"Verti 2021-01-15 18:44:58.409 (Heating) 63 61 6c 22 2c 22 53 65 74 50 6f 69 6e 74 22 3a 2d 32 30 30 cal","SetPoint":-200 2021-01-15 18:44:58.409 (Heating) 2c 22 4d 65 61 73 75 72 65 64 54 65 6d 70 65 72 61 74 75 72 ,"MeasuredTemperatur 2021-01-15 18:44:58.409 (Heating) 65 22 3a 31 36 30 2c 22 50 65 72 63 65 6e 74 61 67 65 44 65 e":160,"PercentageDe 2021-01-15 18:44:58.409 (Heating) 6d 61 6e 64 22 3a 30 2c 22 57 69 6e 64 6f 77 53 74 61 74 65 mand":0,"WindowState 2021-01-15 18:44:58.409 (Heating) 22 3a 22 43 6c 6f 73 65 64 22 7d 2c 7b 22 69 64 22 3a 34 2c ":"Closed"},{"id":4, 2021-01-15 18:44:58.409 (Heating) 22 4d 6f 75 6e 74 69 6e 67 4f 72 69 65 6e 74 61 74 69 6f 6e "MountingOrientation 2021-01-15 18:44:58.409 (Heating) 22 3a 22 56 65 72 74 69 63 61 6c 22 2c 22 53 65 74 50 6f 69 ":"Vertical","SetPoi 2021-01-15 18:44:58.410 (Heating) 6e 74 22 3a 31 38 30 2c 22 4d 65 61 73 75 72 65 64 54 65 6d nt":180,"MeasuredTem 2021-01-15 18:44:58.410 (Heating) 70 65 72 61 74 75 72 65 22 3a 31 37 36 2c 22 50 65 72 63 65 perature":176,"Perce 2021-01-15 18:44:58.410 (Heating) 6e 74 61 67 65 44 65 6d 61 6e 64 22 3a 37 31 2c 22 57 69 6e ntageDemand":71,"Win 2021-01-15 18:44:58.410 (Heating) 64 6f 77 53 74 61 74 65 22 3a 22 43 6c 6f 73 65 64 22 7d 2c dowState":"Closed"}, 2021-01-15 18:44:58.410 (Heating) 7b 22 69 64 22 3a 35 2c 22 4d 6f 75 6e 74 69 6e 67 4f 72 69 {"id":5,"MountingOri 2021-01-15 18:44:58.410 (Heating) 65 6e 74 61 74 69 6f 6e 22 3a 22 56 65 72 74 69 63 61 6c 22 entation":"Vertical" 2021-01-15 18:44:58.410 (Heating) 2c 22 53 65 74 50 6f 69 6e 74 22 3a 32 31 30 2c 22 4d 65 61 ,"SetPoint":210,"Mea 2021-01-15 18:44:58.410 (Heating) 73 75 72 65 64 54 65 6d 70 65 72 61 74 75 72 65 22 3a 32 30 suredTemperature":20 2021-01-15 18:44:58.410 (Heating) 32 2c 22 50 65 72 63 65 6e 74 61 67 65 44 65 6d 61 6e 64 22 2,"PercentageDemand" 2021-01-15 18:44:58.410 (Heating) 3a 38 32 2c 22 57 69 6e 64 6f 77 53 74 61 74 65 22 3a 22 43 :82,"WindowState":"C 2021-01-15 18:44:58.410 (Heating) 6c 6f 73 65 64 22 7d 2c 7b 22 69 64 22 3a 37 2c 22 4d 6f 75 losed"},{"id":7,"Mou 2021-01-15 18:44:58.410 (Heating) 6e 74 69 6e 67 4f 72 69 65 6e 74 61 74 69 6f 6e 22 3a 22 56 ntingOrientation":"V 2021-01-15 18:44:58.410 (Heating) 65 72 74 69 63 61 6c 22 2c 22 53 65 74 50 6f 69 6e 74 22 3a ertical","SetPoint": 2021-01-15 18:44:58.410 (Heating) 2d 32 30 30 2c 22 4d 65 61 73 75 72 65 64 54 65 6d 70 65 72 -200,"MeasuredTemper 2021-01-15 18:44:58.410 (Heating) 61 74 75 72 65 22 3a 31 33 34 2c 22 50 65 72 63 65 6e 74 61 ature":134,"Percenta 2021-01-15 18:44:58.411 (Heating) 67 65 44 65 6d 61 6e 64 22 3a 30 2c 22 57 69 6e 64 6f 77 53 geDemand":0,"WindowS 2021-01-15 18:44:58.411 (Heating) 74 61 74 65 22 3a 22 43 6c 6f 73 65 64 22 7d 5d 2c 22 53 6d tate":"Closed"}],"Sm 2021-01-15 18:44:58.411 (Heating) 61 72 74 50 6c 75 67 22 3a 5b 7b 22 69 64 22 3a 38 2c 22 53 artPlug":[{"id":8,"S 2021-01-15 18:44:58.411 (Heating) 63 68 65 64 75 6c 65 49 64 22 3a 32 30 30 30 2c 22 4d 61 6e cheduleId":2000,"Man 2021-01-15 18:44:58.411 (Heating) 75 61 6c 53 74 61 74 65 22 3a 22 4f 6e 22 2c 22 4e 61 6d 65 ualState":"On","Name 2021-01-15 18:44:58.411 (Heating) 22 3a 22 50 6c 75 67 22 2c 22 4d 6f 64 65 22 3a 22 4d 61 6e ":"Plug","Mode":"Man 2021-01-15 18:44:58.411 (Heating) 75 61 6c 22 2c 22 41 77 61 79 41 63 74 69 6f 6e 22 3a 22 4f ual","AwayAction":"O 2021-01-15 18:44:58.411 (Heating) 66 66 22 2c 22 4f 75 74 70 75 74 53 74 61 74 65 22 3a 22 4f ff","OutputState":"O 2021-01-15 18:44:58.411 (Heating) 6e 22 2c 22 43 6f 6e 74 72 6f 6c 53 6f 75 72 63 65 22 3a 22 n","ControlSource":" 2021-01-15 18:44:58.411 (Heating) 46 72 6f 6d 4d 61 6e 75 61 6c 4d 6f 64 65 22 2c 22 53 63 68 FromManualMode","Sch 2021-01-15 18:44:58.411 (Heating) 65 64 75 6c 65 64 53 74 61 74 .. .. .. .. .. .. .. .. .. .. eduledStat 2021-01-15 18:44:58.412 (Heating) Processing 'ReadEvent' message 2021-01-15 18:44:58.412 (Heating) Received 310 bytes of data 2021-01-15 18:44:58.412 (Heating) 65 22 3a 22 4f 66 66 22 2c 22 43 75 72 72 65 6e 74 53 75 6d e":"Off","CurrentSum 2021-01-15 18:44:58.412 (Heating) 6d 61 74 69 6f 6e 44 65 6c 69 76 65 72 65 64 22 3a 31 31 37 mationDelivered":117 2021-01-15 18:44:58.412 (Heating) 35 32 2c 22 49 6e 73 74 61 6e 74 61 6e 65 6f 75 73 44 65 6d 52,"InstantaneousDem 2021-01-15 18:44:58.412 (Heating) 61 6e 64 22 3a 31 2c 22 54 61 72 67 65 74 53 74 61 74 65 22 and":1,"TargetState" 2021-01-15 18:44:58.412 (Heating) 3a 22 4f 6e 22 7d 5d 2c 22 44 65 76 69 63 65 43 61 70 61 62 :"On"}],"DeviceCapab 2021-01-15 18:44:58.412 (Heating) 69 6c 69 74 79 4d 61 74 72 69 78 22 3a 7b 22 52 6f 6f 6d 73 ilityMatrix":{"Rooms 2021-01-15 18:44:58.412 (Heating) 74 61 74 22 3a 74 72 75 65 2c 22 49 54 52 56 22 3a 74 72 75 tat":true,"ITRV":tru 2021-01-15 18:44:58.412 (Heating) 65 2c 22 53 6d 61 72 74 50 6c 75 67 22 3a 74 72 75 65 2c 22 e,"SmartPlug":true," 2021-01-15 18:44:58.412 (Heating) 55 46 48 22 3a 66 61 6c 73 65 2c 22 55 46 48 46 6c 6f 6f 72 UFH":false,"UFHFloor 2021-01-15 18:44:58.412 (Heating) 54 65 6d 70 53 65 6e 73 6f 72 22 3a 66 61 6c 73 65 2c 22 55 TempSensor":false,"U 2021-01-15 18:44:58.412 (Heating) 46 48 44 65 77 53 65 6e 73 6f 72 22 3a 66 61 6c 73 65 2c 22 FHDewSensor":false," 2021-01-15 18:44:58.412 (Heating) 48 41 43 54 22 3a 66 61 6c 73 65 0d 0a 34 32 0d 0a 2c 22 4c HACT":false..42..,"L 2021-01-15 18:44:58.413 (Heating) 41 43 54 22 3a 66 61 6c 73 65 2c 22 4c 69 67 68 74 22 3a 74 ACT":false,"Light":t 2021-01-15 18:44:58.413 (Heating) 72 75 65 2c 22 53 68 75 74 74 65 72 22 3a 66 61 6c 73 65 2c rue,"Shutter":false, 2021-01-15 18:44:58.413 (Heating) 22 4c 6f 61 64 43 6f 6e 74 72 6f 6c 6c 65 72 22 3a 74 72 75 "LoadController":tru 2021-01-15 18:44:58.413 (Heating) 65 7d 7d 0d 0a 30 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. e}}..0.... 2021-01-15 18:44:58.413 (Heating) Pushing 'onMessageCallback' on to queue 2021-01-15 18:44:58.413 (Heating) Processing 'DisconnectedEvent' message 2021-01-15 18:44:58.413 (Heating) Disconnect event received for 'wiserheat036662.lan:80'. 2021-01-15 18:44:58.413 (Heating) Pushing 'onDisconnectCallback' on to queue 2021-01-15 18:44:58.413 (Heating) Processing 'onMessageCallback' message 2021-01-15 18:44:58.414 (Heating) Calling message handler 'onMessage'. 2021-01-15 18:44:58.414 (Heating) onMessage called 2021-01-15 18:44:58.414 (Heating) Data length: 11330 2021-01-15 18:44:58.417 (Heating) Processing 'onDisconnectCallback' message 2021-01-15 18:44:58.417 (Heating) Calling message handler 'onDisconnect'. 2021-01-15 18:44:58.417 (Heating) onDisconnect called for Wiser 2021-01-15 18:44:58.416 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:44:58.416 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:44:58.416 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:44:58.417 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices Any thoughts...?

bloob00k commented 3 years ago

Interesting, thanks for the feedback. I will take a look later today - might need to get some more info from you.

On Fri, 15 Jan 2021 at 18:24, dbrb2 notifications@github.com wrote:

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:20:49.836 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices

Any thoughts...?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALT5CNODI3PFMAIRP7WQVTS2CB4VANCNFSM4WEN24MA .

bloob00k commented 3 years ago

Is this the only error that appears, or are there others? If it's the only one then it looks to be related to room stats. Do you have any still configured in the system? Did you remove one recently? Or if not, is it still able to communicate with the hub?

I can certainly make the error message go away, but if you do actually still have a room stat then there is a bigger problem we need to get to the bottom of.

On Sun, 17 Jan 2021 at 10:28, Paul Fletcher paul.fletcher@gmail.com wrote:

Interesting, thanks for the feedback. I will take a look later today - might need to get some more info from you.

On Fri, 15 Jan 2021 at 18:24, dbrb2 notifications@github.com wrote:

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:20:49.836 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices

Any thoughts...?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALT5CNODI3PFMAIRP7WQVTS2CB4VANCNFSM4WEN24MA .

dbrb2 commented 3 years ago

Hi, Sorry for the delay, been out for my allocated daily exercise under lockdown!

That is the only error I can see in the logs, having switched the output to debug. I am able to set state - for instance if I set a TRV to 20 degrees, it responds, and i can toggle the Drayton wiser smart plug - but I can not view the room temperatures,TRV setpoints, or switch state

Interestingly the one stat that does seem to work is "systemAway" - which shows as regularly being updated in the Domoticz dashboard.

On Sun, Jan 17, 2021 at 10:52 AM bloob00k notifications@github.com wrote:

Is this the only error that appears, or are there others? If it's the only one then it looks to be related to room stats. Do you have any still configured in the system? Did you remove one recently? Or if not, is it still able to communicate with the hub?

I can certainly make the error message go away, but if you do actually still have a room stat then there is a bigger problem we need to get to the bottom of.

On Sun, 17 Jan 2021 at 10:28, Paul Fletcher paul.fletcher@gmail.com wrote:

Interesting, thanks for the feedback. I will take a look later today - might need to get some more info from you.

On Fri, 15 Jan 2021 at 18:24, dbrb2 notifications@github.com wrote:

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:20:49.836 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices

Any thoughts...?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALT5CNODI3PFMAIRP7WQVTS2CB4VANCNFSM4WEN24MA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-761770346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFQ43RJHKOFR2JXI62JZTS2K6NLANCNFSM4WEN24MA .

bloob00k commented 3 years ago

OK that all actually makes sense - insofar as the error you are seeing would prevent all the other room-level devices from being updated as well.

I've pushed a new version which should fix the error you are seeing, and allow the other devices to be updated. I'm still not sure what is triggering this though, unless perhaps you removed a room stat.

Let's see what happens if you update to the latest; if everything now works as you expect then we are good, otherwise I will need more debug info I think.

After installing the new version you will need to restart the plugin. The most reliable way to do that is to restart Domoticz itself, but you can also do it by changing the debug level to something else.

On Sun, 17 Jan 2021 at 16:26, dbrb2 notifications@github.com wrote:

Hi, Sorry for the delay, been out for my allocated daily exercise under lockdown!

That is the only error I can see in the logs, having switched the output to debug. I am able to set state - for instance if I set a TRV to 20 degrees, it responds, and i can toggle the Drayton wiser smart plug - but I can not view the room temperatures,TRV setpoints, or switch state

Interestingly the one stat that does seem to work is "systemAway" - which shows as regularly being updated in the Domoticz dashboard.

On Sun, Jan 17, 2021 at 10:52 AM bloob00k notifications@github.com wrote:

Is this the only error that appears, or are there others? If it's the only one then it looks to be related to room stats. Do you have any still configured in the system? Did you remove one recently? Or if not, is it still able to communicate with the hub?

I can certainly make the error message go away, but if you do actually still have a room stat then there is a bigger problem we need to get to the bottom of.

On Sun, 17 Jan 2021 at 10:28, Paul Fletcher paul.fletcher@gmail.com wrote:

Interesting, thanks for the feedback. I will take a look later today - might need to get some more info from you.

On Fri, 15 Jan 2021 at 18:24, dbrb2 notifications@github.com wrote:

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:20:49.836 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices

Any thoughts...?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AALT5CNODI3PFMAIRP7WQVTS2CB4VANCNFSM4WEN24MA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-761770346, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABFQ43RJHKOFR2JXI62JZTS2K6NLANCNFSM4WEN24MA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-761838938, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALT5COFCGGMNB2YBR4LRLDS2MFTJANCNFSM4WEN24MA .

dbrb2 commented 3 years ago

Initially, it looks like this has done the trick!

What was the issue? Has the API changed in the last few weeks?

Cheers,

Ben

On Sun, Jan 17, 2021 at 6:46 PM bloob00k notifications@github.com wrote:

OK that all actually makes sense - insofar as the error you are seeing would prevent all the other room-level devices from being updated as well.

I've pushed a new version which should fix the error you are seeing, and allow the other devices to be updated. I'm still not sure what is triggering this though, unless perhaps you removed a room stat.

Let's see what happens if you update to the latest; if everything now works as you expect then we are good, otherwise I will need more debug info I think.

After installing the new version you will need to restart the plugin. The most reliable way to do that is to restart Domoticz itself, but you can also do it by changing the debug level to something else.

On Sun, 17 Jan 2021 at 16:26, dbrb2 notifications@github.com wrote:

Hi, Sorry for the delay, been out for my allocated daily exercise under lockdown!

That is the only error I can see in the logs, having switched the output to debug. I am able to set state - for instance if I set a TRV to 20 degrees, it responds, and i can toggle the Drayton wiser smart plug - but I can not view the room temperatures,TRV setpoints, or switch state

Interestingly the one stat that does seem to work is "systemAway" - which shows as regularly being updated in the Domoticz dashboard.

On Sun, Jan 17, 2021 at 10:52 AM bloob00k notifications@github.com wrote:

Is this the only error that appears, or are there others? If it's the only one then it looks to be related to room stats. Do you have any still configured in the system? Did you remove one recently? Or if not, is it still able to communicate with the hub?

I can certainly make the error message go away, but if you do actually still have a room stat then there is a bigger problem we need to get to the bottom of.

On Sun, 17 Jan 2021 at 10:28, Paul Fletcher paul.fletcher@gmail.com wrote:

Interesting, thanks for the feedback. I will take a look later today

might need to get some more info from you.

On Fri, 15 Jan 2021 at 18:24, dbrb2 notifications@github.com wrote:

Evening! Fantastically useful plugin. In the last week I have noticed that I can still issue commands to the wiser system using this plugin, and the system responds, but I seem to get no responses back.... The logs show:

2021-01-15 18:20:49.836 Error: (Heating) 'onMessage' failed 'KeyError'. 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 533 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 455 in '/home/domoticz/plugins/Wiser/plugin.py', function onMessage 2021-01-15 18:20:49.836 Error: (Heating) ----> Line 259 in '/home/domoticz/plugins/Wiser/plugin.py', function updateDevices

Any thoughts...?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AALT5CNODI3PFMAIRP7WQVTS2CB4VANCNFSM4WEN24MA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://github.com/bloob00k/domoticz/issues/3#issuecomment-761770346 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABFQ43RJHKOFR2JXI62JZTS2K6NLANCNFSM4WEN24MA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-761838938, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AALT5COFCGGMNB2YBR4LRLDS2MFTJANCNFSM4WEN24MA

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-761860139, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFQ44ICWNM4NPJKWL23EDS2MV65ANCNFSM4WEN24MA .

bloob00k commented 3 years ago

Hard to say. The code was fragile in that it expected there to always be a room stat. For whatever reason it seems that the hub is no longer providing a list of room stats. So either you never had one but it used to return an empty list (and now no longer returns a list at all), or you had one and then removed it so now it is not giving back a list. The first would be an API change, the second would be a change in your system.

If you don't have a registered room stat in the system I will go ahead and close this issue. If you do, then there is still more investigation to be done.

dbrb2 commented 3 years ago

Ah, that could be it....

I used to have a room thermometer. It was bundled up during decorating so is now likely in a box in storage somewhere far out of range

I didn't notice the correlation, but I'll bet the dates match!

Thanks for fixing it....

Ben

On Mon, 18 Jan 2021, 23:38 bloob00k, notifications@github.com wrote:

Hard to say. The code was fragile in that it expected there to always be a room stat. For whatever reason it seems that the hub is no longer providing a list of room stats. So either you never had one but it used to return an empty list (and now no longer returns a list at all), or you had one and then removed it so now it is not giving back a list. The first would be an API change, the second would be a change in your system.

If you don't have a registered room stat in the system I will go ahead and close this issue. If you do, then there is still more investigation to be done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bloob00k/domoticz/issues/3#issuecomment-762514715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFQ463Y2PJIXZT3UDXV7DS2TA7HANCNFSM4WEN24MA .

bloob00k commented 3 years ago

No problem, thanks for confirming. There've been a few other bugs like this, so at some point I must go through the code and make it generally more resilient.