mongoose-os-apps / shelly-homekit

Apple HomeKit firmware for Shelly's
Other
1.84k stars 131 forks source link

Shelly 2 - Pulsating output on AC input operation #698

Closed omerduzyol closed 3 years ago

omerduzyol commented 3 years ago

Hi,

First of all, thanks to everyone who contributed to this lovely project! I made a setup to control the speed of MVHR ventilation unit using my Shelly 2 controller. Please refer to diagram below:

image

Used the recent version of homekit firmware and configured both switches like below:

HAP Service Type: Switch
Input Mode: Toggle
Initial State: Input
Auto Off: False

Everything works well if override switches are not connected or, turned on (closed) but when I turn off the override switches (open circuit) output starts pulsating and I can hear that from the relay contacts very quickly toggling. I'm not sure if I'm doing something wrong here or is that related to Shelly 2 etc.

Also, tried using the input as detached, and I saw the input keep turning off and on (not sure if there is any frequency) within the home app.

Btw, keeping Shelly toggled for a few times causing device reset 🤦🏻 I temporarily disabled the input from the settings.

Any help appreciated.

Thanks!

timoschilling commented 3 years ago

Only to be sure, do you really have Shelly2 or a Shelly2.5?

timoschilling commented 3 years ago

Your diagram LGTM, but when I turn off the override switches (open circuit) output starts pulsating sound like there is a mistake in your wiring or the diagram didn't match the reality.

omerduzyol commented 3 years ago

Only to be sure, do you really have Shelly2 or a Shelly2.5?

it's shelly 2, not 2.5 :)

I checked all the wiring and it seemed there is no other connections other than the override switches.

rojer commented 3 years ago

can you open the debug log (link in the "System" section of the UI) and reproduce the issue? then post the log here, i'd like to take a look.

omerduzyol commented 3 years ago

@rojer please find the log below:

6020242123 shelly_debug.cpp:227    No log file, sending new entries
6027739154 shelly_main.cpp:543     Up 6027.72, HAP 0/3/12 ns 3, RAM: 21408/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: -1.000; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000
6034129091 shelly_input.cpp:76     Input 1: change (state 1)
6034161127 shelly_input.cpp:76     Input 1: change (state 0)
6034208469 shelly_input.cpp:76     Input 1: change (state 1)
6034241280 shelly_input.cpp:76     Input 1: change (state 0)
6034246570 shelly_input.cpp:76     Input 1: double (state 0)
6034251673 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6034301715 shelly_input.cpp:76     Input 1: change (state 1)
6034360996 shelly_input.cpp:76     Input 1: change (state 0)
6034408470 shelly_input.cpp:76     Input 1: change (state 1)
6034441374 shelly_input.cpp:76     Input 1: change (state 0)
6034446580 shelly_input.cpp:76     Input 1: double (state 0)
6034451679 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6034501869 shelly_input.cpp:76     Input 1: change (state 1)
6034560973 shelly_input.cpp:76     Input 1: change (state 0)
6034608149 shelly_input.cpp:76     Input 1: change (state 1)
6034641431 shelly_input.cpp:76     Input 1: change (state 0)
6034646653 shelly_input.cpp:76     Input 1: double (state 0)
6034651747 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6034701962 shelly_input.cpp:76     Input 1: change (state 1)
6034761148 shelly_input.cpp:76     Input 1: change (state 0)
6034808801 shelly_input.cpp:76     Input 1: change (state 1)
6034841547 shelly_input.cpp:76     Input 1: change (state 0)
6034846798 shelly_input.cpp:76     Input 1: double (state 0)
6034851889 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6034901914 shelly_input.cpp:76     Input 1: change (state 1)
6034981094 shelly_input.cpp:76     Input 1: change (state 0)
6035010093 shelly_input.cpp:76     Input 1: change (state 1)
6035063194 shelly_input.cpp:76     Input 1: change (state 0)
6035068406 shelly_input.cpp:76     Input 1: double (state 0)
6035073500 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6035102528 shelly_input.cpp:76     Input 1: change (state 1)
6035161470 shelly_input.cpp:76     Input 1: change (state 0)
6035208844 shelly_input.cpp:76     Input 1: change (state 1)
6035241605 shelly_input.cpp:76     Input 1: change (state 0)
6035246850 shelly_input.cpp:76     Input 1: double (state 0)
6035251941 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6035302589 shelly_input.cpp:76     Input 1: change (state 1)
6035403440 shelly_input.cpp:76     Input 1: change (state 0)
6035462055 shelly_input.cpp:76     Input 1: change (state 1)
6035521136 shelly_input.cpp:76     Input 1: change (state 0)
6035526294 shelly_input.cpp:76     Input 1: double (state 0)
6035531381 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6035562622 shelly_input.cpp:76     Input 1: change (state 1)
6035621055 shelly_input.cpp:76     Input 1: change (state 0)
6035669904 shelly_input.cpp:76     Input 1: change (state 1)
6035701289 shelly_input.cpp:76     Input 1: change (state 0)
6035706581 shelly_input.cpp:76     Input 1: double (state 0)
6035711671 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6035739024 shelly_main.cpp:543     Up 6035.72, HAP 0/3/12 ns 3, RAM: 19812/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: 0.010; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000
6035769413 shelly_input.cpp:76     Input 1: change (state 1)
6035801184 shelly_input.cpp:76     Input 1: change (state 0)
6035848244 shelly_input.cpp:76     Input 1: change (state 1)
6035881718 shelly_input.cpp:76     Input 1: change (state 0)
6035886981 shelly_input.cpp:76     Input 1: double (state 0)
6035892062 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6035942223 shelly_input.cpp:76     Input 1: change (state 1)
6036001402 shelly_input.cpp:76     Input 1: change (state 0)
6036048484 shelly_input.cpp:76     Input 1: change (state 1)
6036081620 shelly_input.cpp:76     Input 1: change (state 0)
6036086859 shelly_input.cpp:76     Input 1: double (state 0)
6036091957 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6036142348 shelly_input.cpp:76     Input 1: change (state 1)
6036201212 shelly_input.cpp:76     Input 1: change (state 0)
6036248709 shelly_input.cpp:76     Input 1: change (state 1)
6036281631 shelly_input.cpp:76     Input 1: change (state 0)
6036286858 shelly_input.cpp:76     Input 1: double (state 0)
6036291940 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6036342205 shelly_input.cpp:76     Input 1: change (state 1)
6036401372 shelly_input.cpp:76     Input 1: change (state 0)
6036448771 shelly_input.cpp:76     Input 1: change (state 1)
6036481986 shelly_input.cpp:76     Input 1: change (state 0)
6036487195 shelly_input.cpp:76     Input 1: double (state 0)
6036492290 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6036542593 shelly_input.cpp:76     Input 1: change (state 1)
6036601927 shelly_input.cpp:76     Input 1: change (state 0)
6036649445 shelly_input.cpp:76     Input 1: change (state 1)
6036682213 shelly_input.cpp:76     Input 1: change (state 0)
6036687463 shelly_input.cpp:76     Input 1: double (state 0)
6036692549 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6036848011 shelly_input.cpp:76     Input 1: change (state 1)
6036882275 shelly_input.cpp:76     Input 1: change (state 0)
6036908739 shelly_input.cpp:76     Input 1: change (state 1)
6036941615 shelly_input.cpp:76     Input 1: change (state 0)
6036946799 shelly_input.cpp:76     Input 1: double (state 0)
6036951894 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037002584 shelly_input.cpp:76     Input 1: change (state 1)
6037061524 shelly_input.cpp:76     Input 1: change (state 0)
6037109158 shelly_input.cpp:76     Input 1: change (state 1)
6037141293 shelly_input.cpp:76     Input 1: change (state 0)
6037146572 shelly_input.cpp:76     Input 1: double (state 0)
6037151655 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037202530 shelly_input.cpp:76     Input 1: change (state 1)
6037261411 shelly_input.cpp:76     Input 1: change (state 0)
6037309181 shelly_input.cpp:76     Input 1: change (state 1)
6037341554 shelly_input.cpp:76     Input 1: change (state 0)
6037346765 shelly_input.cpp:76     Input 1: double (state 0)
6037351855 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037402969 shelly_input.cpp:76     Input 1: change (state 1)
6037461622 shelly_input.cpp:76     Input 1: change (state 0)
6037488015 shelly_input.cpp:76     Input 1: change (state 1)
6037521782 shelly_input.cpp:76     Input 1: change (state 0)
6037526976 shelly_input.cpp:76     Input 1: double (state 0)
6037532055 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037582993 shelly_input.cpp:76     Input 1: change (state 1)
6037641849 shelly_input.cpp:76     Input 1: change (state 0)
6037670779 shelly_input.cpp:76     Input 1: change (state 1)
6037702072 shelly_input.cpp:76     Input 1: change (state 0)
6037707292 shelly_input.cpp:76     Input 1: double (state 0)
6037712383 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037762810 shelly_input.cpp:76     Input 1: change (state 1)
6037821787 shelly_input.cpp:76     Input 1: change (state 0)
6037848929 shelly_input.cpp:76     Input 1: change (state 1)
6037883103 shelly_input.cpp:76     Input 1: change (state 0)
6037888323 shelly_input.cpp:76     Input 1: double (state 0)
6037893418 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6037922540 shelly_input.cpp:76     Input 1: change (state 1)
6037981435 shelly_input.cpp:76     Input 1: change (state 0)
6038029038 shelly_input.cpp:76     Input 1: change (state 1)
6038061818 shelly_input.cpp:76     Input 1: change (state 0)
6038067024 shelly_input.cpp:76     Input 1: double (state 0)
6038072111 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6038122525 shelly_input.cpp:76     Input 1: change (state 1)
6038181496 shelly_input.cpp:76     Input 1: change (state 0)
6038209229 shelly_input.cpp:76     Input 1: change (state 1)
6038241308 shelly_input.cpp:76     Input 1: change (state 0)
6038246499 shelly_input.cpp:76     Input 1: double (state 0)
6038251594 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6038302275 shelly_input.cpp:76     Input 1: change (state 1)
6038361366 shelly_input.cpp:76     Input 1: change (state 0)
6038408832 shelly_input.cpp:76     Input 1: change (state 1)
6038441857 shelly_input.cpp:76     Input 1: change (state 0)
6038447047 shelly_input.cpp:76     Input 1: double (state 0)
6038452126 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6038502213 shelly_input.cpp:76     Input 1: change (state 1)
6038561274 shelly_input.cpp:76     Input 1: change (state 0)
6038608722 shelly_input.cpp:76     Input 1: change (state 1)
6038641870 shelly_input.cpp:76     Input 1: change (state 0)
6038647080 shelly_input.cpp:76     Input 1: double (state 0)
6038652175 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6038702301 shelly_input.cpp:76     Input 1: change (state 1)
6038781557 shelly_input.cpp:76     Input 1: change (state 0)
6038808221 shelly_input.cpp:76     Input 1: change (state 1)
6038841641 shelly_input.cpp:76     Input 1: change (state 0)
6038846910 shelly_input.cpp:76     Input 1: double (state 0)
6038851992 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6039048977 shelly_input.cpp:76     Input 1: change (state 1)
6039081350 shelly_input.cpp:76     Input 1: change (state 0)
6039109999 shelly_input.cpp:76     Input 1: change (state 1)
6039141757 shelly_input.cpp:76     Input 1: change (state 0)
6039146990 shelly_input.cpp:76     Input 1: double (state 0)
6039152079 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6039202162 shelly_input.cpp:76     Input 1: change (state 1)
6039281320 shelly_input.cpp:76     Input 1: change (state 0)
6039310128 shelly_input.cpp:76     Input 1: change (state 1)
6039341754 shelly_input.cpp:76     Input 1: change (state 0)
6039346983 shelly_input.cpp:76     Input 1: double (state 0)
6039352066 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6039402260 shelly_input.cpp:76     Input 1: change (state 1)
6039481331 shelly_input.cpp:76     Input 1: change (state 0)
6039528975 shelly_input.cpp:76     Input 1: change (state 1)
6039561859 shelly_input.cpp:76     Input 1: change (state 0)
6039567044 shelly_input.cpp:76     Input 1: double (state 0)
6039572139 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6039768983 shelly_input.cpp:76     Input 1: change (state 1)
6039801522 shelly_input.cpp:76     Input 1: change (state 0)
6039849019 shelly_input.cpp:76     Input 1: change (state 1)
6039881457 shelly_input.cpp:76     Input 1: change (state 0)
6039886701 shelly_input.cpp:76     Input 1: double (state 0)
6039891788 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6040069022 shelly_input.cpp:76     Input 1: change (state 1)
6040101574 shelly_input.cpp:76     Input 1: change (state 0)
6040149115 shelly_input.cpp:76     Input 1: change (state 1)
6040181816 shelly_input.cpp:76     Input 1: change (state 0)
6040187189 shelly_input.cpp:76     Input 1: double (state 0)
6040192279 shelly_hap_stateles:166 Input 1: HAP event (mode 0): 1
6043739343 shelly_main.cpp:543     Up 6043.72, HAP 0/3/12 ns 3, RAM: 21408/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: 3.529; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000
6051739056 shelly_main.cpp:543     Up 6051.72, HAP 0/3/12 ns 3, RAM: 21408/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: 11.529; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000
6059739225 shelly_main.cpp:543     Up 6059.72, HAP 0/3/12 ns 3, RAM: 21408/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: 19.529; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000
6067739127 shelly_main.cpp:543     Up 6067.72, HAP 0/3/12 ns 3, RAM: 21408/38664; st 0; 0.1: st:1 in_st:0 inm:3 ininv:0; 3.1: svt:3 inv:0 st:0 m:0 lea: 27.529; 0.2: st:0 in_st:1 inm:3 ininv:0; 10.2: svt:10 inv:0 st:1 m:0 lea: -1.000

I detached the input and configured it like below, otherwise, it resets the config

image

timoschilling commented 3 years ago

Looks like an hardware issue or a miss configured input. Are you sure that you have an momentary switch? Have you tried the other switch modes?

rojer commented 3 years ago

looks like some major noise on the input. doesn't happen with input 2, right?

omerduzyol commented 3 years ago

Looks like an hardware issue or a miss configured input. Are you sure that you have an momentary switch? Have you tried the other switch modes?

Actually, I was messing around with different switch modes to see if there will be any difference or not.

looks like some major noise on the input. doesn't happen with input 2, right?

That's what I was thinking as well. The wire is not connected anywhere when all the override switches are off (open circuit). Would that be an EMF messing with the wiring? I suppose that should be filtered when Shelly operating in 220 AC mode.

omerduzyol commented 3 years ago

Forgot to mention, I don't have input 2 connected to any wire and disabled. But that doesn't happen even if I activate it. Didn't try to switch inputs tbh. I also ordered a new Shelly 2.5 and will give a try with that see how that works.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Comment or this will be closed in 7 days.

github-actions[bot] commented 3 years ago

This issue has now been closed, as no update was provided after it was marked stale. Feel free to provide updates to reopen this issue.