mongoose-os-apps / shelly-homekit

Apple HomeKit firmware for Shelly's
Other
1.76k stars 128 forks source link

2.12.1. Shelly plus 2pm calibration doesn’t work #1424

Open DanielZornhagen opened 1 month ago

DanielZornhagen commented 1 month ago

The Shelly Plus 2PM has been updated to the HomeKit version and defined as a Roller Shutter. During calibration, it only runs for a maximum of 5.09 seconds before ending the calibration. The maximum distance the shutter can move is about 30% of the total travel distance. New calibrations slightly change the maximum runtime. The same error occurs even after resetting and updating again. Turning off the power for several minutes does not affect the calibration time either. The input mode was set to separate - momentary, as it involves two push buttons. Version 2.12.1.

markirb commented 1 month ago

Can you post logs please?

DanielZornhagen commented 1 month ago

Where can I get the logs from?

santigvz commented 1 month ago

Exactly the same error here and also ir afecta to the wall switch which now can not move more than the 30%…

Also there is a reported error that does not allow to come back to the custom FW. Help appreciated!

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 3 weeks with no activity. Comment or this will be closed in 1 week.

DanielZornhagen commented 1 week ago

the problem still exists. Here is the log file:

80260214 shelly_debug.cpp:231 No log file, sending new entries 80267279 mgos_http_server.c:180 0x3ffce4d4 HTTP connection from 192.168.189.14:51103 82014535 shelly_main.cpp:483 Up 82.00, HAP 0/1/16 ns 1, RAM: 209300/196404; st 56; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 90014553 shelly_main.cpp:483 Up 90.00, HAP 0/1/16 ns 1, RAM: 209300/196404; st 55; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 96527903 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 96834580 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 98014520 shelly_main.cpp:483 Up 98.00, HAP 0/1/16 ns 1, RAM: 209300/196404; st 55; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 101751706 W (102397) wifi:idx:1 (ifx:0, 52:e6:36:4f:8e:51), tid:6, ssn:2, winSize:64 104616618 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 105742524 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 106014800 shelly_main.cpp:483 Up 106.00, HAP 0/1/16 ns 1, RAM: 209048/196404; st 55; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 106473904 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 107490622 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 108514786 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 109536180 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 110560754 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 111683082 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 112516311 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 113535389 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 114014606 shelly_main.cpp:483 Up 114.00, HAP 0/1/16 ns 1, RAM: 209048/196404; st 56; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 114558354 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 115489630 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 116494826 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 117518404 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 118557664 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 119772962 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 120488634 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 121718412 mg_rpc.c:315 Shelly.SetState via WS_in 192.168.189.14:51101 121726757 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 121796384 shelly_hap_window_c:330 WC 1: State: idle -> precal0 (0 -> 10) 121895992 shelly_hap_window_c:450 Begin calibration 122038667 mgos_sys_config.c:323 Saved to conf9.json 122044209 shelly_output.cpp:64 Output 1: off -> on (precal0) 122050106 shelly_hap_window_c:330 WC 1: State: precal0 -> cal0 (10 -> 11) 122069935 shelly_main.cpp:483 Up 122.06, HAP 0/1/16 ns 1, RAM: 207500/196404; st 56; 4.1: c:0 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 122395456 shelly_hap_window_c:466 WC 1: P0 = 0.000 123195393 shelly_hap_window_c:466 WC 1: P0 = 0.000 123408920 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 123995472 shelly_hap_window_c:466 WC 1: P0 = 0.000 124758312 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 124795554 shelly_hap_window_c:466 WC 1: P0 = 0.000 125507385 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 125595587 shelly_hap_window_c:466 WC 1: P0 = 0.000 126395512 shelly_hap_window_c:466 WC 1: P0 = 0.000 126448952 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 127096320 shelly_output.cpp:64 Output 1: on -> off (cal0) 127102330 shelly_hap_window_c:330 WC 1: State: cal0 -> postcal0 (11 -> 12) 127196948 shelly_hap_window_c:330 WC 1: State: postcal0 -> precal1 (12 -> 13) 127295660 shelly_output.cpp:64 Output 2: off -> on (precal1) 127301567 shelly_hap_window_c:330 WC 1: State: precal1 -> cal1 (13 -> 14) 127566613 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 127895503 shelly_hap_window_c:497 WC 1: P1 = 0.000 128476554 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 128695396 shelly_hap_window_c:497 WC 1: P1 = 0.000 129495447 shelly_hap_window_c:497 WC 1: P1 = 0.000 129508063 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 130014481 shelly_main.cpp:483 Up 130.00, HAP 0/1/16 ns 1, RAM: 209436/196404; st 56; 4.1: c:0 mp:0.00 ip:5.00 mt_ms:5090 cp:49.27 tp:49.27 md:0 lmd:2 130295424 shelly_hap_window_c:497 WC 1: P1 = 0.000 130524755 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 131095454 shelly_hap_window_c:497 WC 1: P1 = 0.000 131548498 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 131896754 shelly_hap_window_c:497 WC 1: P1 = 0.000 132396145 shelly_output.cpp:64 Output 2: on -> off (cal1) 132403662 shelly_hap_window_c:503 WC 1: calibration done, move_time 5089, move_power 0.000 132409572 shelly_hap_window_c:330 WC 1: State: cal1 -> postcal1 (14 -> 15) 132451212 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 132628663 mgos_sys_config.c:323 Saved to conf9.json 132635307 shelly_hap_window_c:350 WC 1: Tgt pos 49.27 -> 50.00 (postcal1) 132641263 shelly_hap_window_c:330 WC 1: State: postcal1 -> idle (15 -> 0) 132649850 shelly_hap_window_c:330 WC 1: State: idle -> move (0 -> 20) 132695299 shelly_output.cpp:64 Output 1: off -> on (move) 132701220 shelly_hap_window_c:330 WC 1: State: move -> rampup (20 -> 22) 132795489 shelly_hap_window_c:552 P = 0.00 -> 0.00 132801551 shelly_hap_window_c:330 WC 1: State: rampup -> moving (22 -> 23) 133297494 shelly_hap_window_c:340 WC 1: Cur pos 7.62 -> 9.59, P = 0.00 133493925 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 134097575 shelly_hap_window_c:340 WC 1: Cur pos 23.34 -> 25.31, P = 0.00 134518189 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 134897577 shelly_hap_window_c:340 WC 1: Cur pos 39.06 -> 41.03, P = 0.00 135397367 shelly_hap_window_c:350 WC 1: Tgt pos 50.00 -> 50.85 (fixup) 135402381 shelly_output.cpp:64 Output 1: on -> off (moving) 135408170 shelly_hap_window_c:330 WC 1: State: moving -> stop (23 -> 24) 135456301 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 135736823 mgos_sys_config.c:323 Saved to conf9.json 135743464 shelly_hap_window_c:330 WC 1: State: stop -> stopping (24 -> 25) 135754559 shelly_hap_window_c:330 WC 1: State: stopping -> idle (25 -> 0) 136873635 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 137592795 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 138014434 shelly_main.cpp:483 Up 138.00, HAP 0/1/16 ns 1, RAM: 209436/196404; st 56; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5089 cp:50.85 tp:50.85 md:0 lmd:1 138826204 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.189.14:51101 146014719 shelly_main.cpp:483 Up 146.00, HAP 0/1/16 ns 1, RAM: 209436/196404; st 56; 4.1: c:1 mp:0.00 ip:5.00 mt_ms:5089 cp:50.85 tp:50.85 md:0 lmd:1

markirb commented 2 days ago

The logs show that the measured power is always 0... :(

DanielZornhagen commented 7 hours ago

Is there a solution, how the problem can be solved?

markirb commented 6 hours ago

I am under the impression that you have the first Hardware Version of the device. Maybe Powermetering does not work there yet? Can you show me the output of http://A.B.C.D/rpc/Config.Get