Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgbwPM in white mode 4 channels doesn't work #1616

Open
stahlbox opened this issue Jan 20, 2025 · 11 comments
Open

rgbwPM in white mode 4 channels doesn't work #1616

stahlbox opened this issue Jan 20, 2025 · 11 comments

Comments

@stahlbox
Copy link

Hello,

I have the following problem with the Shelly rgbwPM:
I want to use it in white mode (4 channels) with 4 LED strips and 4 buttons (one for each channel) . The test installation was carried out with 2 LEDs on 2 channels with 2 buttons. I want to use one button for each LED and the Homekit control. As long as I use button 1 and only channel 1 in the Homekit, LED 1 works as it should. As soon as I use channel 2 via the button or Homekit, both channels switch at the same time. If channel 1 is off and I activate channel 2, channel 1 is also activated automatically. I can then only control both channels. Even if I then control channel 1, both channels are controlled.

The wiring is correct according to Shelly specifications in white mode and the circuit works perfectly with the Shelly software.

Input mode = momentary
initial state = last

Same thing after a hard reset.

Does anyone have any ideas?

@markirb
Copy link
Collaborator

markirb commented Jan 20, 2025

Currently not.

Can you please send logs when this happens?

@stahlbox
Copy link
Author

Hi, this is the result:

183159513 shelly_output.cpp:96 Output 1: 0.111001 (transition)
183165780 shelly_output.cpp:83 Duty: 0.105
183171228 shelly_output.cpp:96 Output 1: 0.105192 (transition)
183175822 shelly_output.cpp:83 Duty: 0.100
183181172 shelly_output.cpp:96 Output 1: 0.100095 (transition)
183187330 shelly_output.cpp:83 Duty: 0.094
183193076 shelly_output.cpp:96 Output 1: 0.094410 (transition)
183197713 shelly_output.cpp:83 Duty: 0.089
183203082 shelly_output.cpp:96 Output 1: 0.089157 (transition)
183210061 shelly_output.cpp:83 Duty: 0.084
183215906 shelly_output.cpp:96 Output 1: 0.083670 (transition)
183220644 shelly_output.cpp:83 Duty: 0.078
183226017 shelly_output.cpp:96 Output 1: 0.077701 (transition)
183231794 shelly_output.cpp:83 Duty: 0.072
183239043 shelly_output.cpp:96 Output 1: 0.072168 (transition)
183243713 shelly_output.cpp:83 Duty: 0.066
183249082 shelly_output.cpp:96 Output 1: 0.066160 (transition)
183254817 shelly_output.cpp:83 Duty: 0.061
183262052 shelly_output.cpp:96 Output 1: 0.060661 (transition)
183266757 shelly_output.cpp:83 Duty: 0.055
183272136 shelly_output.cpp:96 Output 1: 0.054641 (transition)
183277945 shelly_output.cpp:83 Duty: 0.049
183283880 shelly_output.cpp:96 Output 1: 0.049137 (transition)
183288545 shelly_output.cpp:83 Duty: 0.044
183293915 shelly_output.cpp:96 Output 1: 0.043743 (transition)
183299756 shelly_output.cpp:83 Duty: 0.038
183305503 shelly_output.cpp:96 Output 1: 0.038254 (transition)
183310169 shelly_output.cpp:83 Duty: 0.033
183315602 shelly_output.cpp:96 Output 1: 0.032933 (transition)
183321653 shelly_output.cpp:83 Duty: 0.027
183327053 shelly_output.cpp:96 Output 1: 0.027270 (transition)
183331868 shelly_output.cpp:83 Duty: 0.022
183337243 shelly_output.cpp:96 Output 1: 0.022129 (transition)
183343340 shelly_output.cpp:83 Duty: 0.016
183349251 shelly_output.cpp:96 Output 1: 0.016402 (transition)
183353938 shelly_output.cpp:83 Duty: 0.011
183359319 shelly_output.cpp:96 Output 1: 0.011063 (transition)
183365060 shelly_output.cpp:83 Duty: 0.006
183370456 shelly_output.cpp:96 Output 1: 0.005539 (transition)
183379355 shelly_light_bulb_co:56 Transition finished, end state: [w=0.01]
183383024 shelly_output.cpp:83 Duty: 0.000
187663025 mgos_sys_config.c:323 Saved to conf9.json
187686892 shelly_main.cpp:492 Up 187.66, HAP 0/1/16 ns 1, RAM: 204064/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
195596070 shelly_main.cpp:492 Up 195.57, HAP 0/1/16 ns 1, RAM: 204268/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
203596313 shelly_main.cpp:492 Up 203.57, HAP 0/1/16 ns 1, RAM: 204196/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
211596046 shelly_main.cpp:492 Up 211.57, HAP 0/1/16 ns 1, RAM: 204196/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
219596117 shelly_main.cpp:492 Up 219.57, HAP 0/1/16 ns 1, RAM: 204268/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
227596019 shelly_main.cpp:492 Up 227.57, HAP 0/1/16 ns 1, RAM: 204268/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
235596070 shelly_main.cpp:492 Up 235.57, HAP 0/1/16 ns 1, RAM: 204268/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
243596066 shelly_main.cpp:492 Up 243.57, HAP 0/1/16 ns 1, RAM: 204248/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
251595948 shelly_main.cpp:492 Up 251.57, HAP 0/1/16 ns 1, RAM: 204196/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400
259595569 shelly_main.cpp:492 Up 259.57, HAP 0/1/16 ns 1, RAM: 204268/192456; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: on, b: 54, h: 0, sa: 100, ct: 400

@stahlbox
Copy link
Author

It seems the channel 1 works fine by physical and digital switch. As soon as I activate channel 2 all channels are activated by all physical and digital switches..

@stahlbox
Copy link
Author

Log by activate channel 1: (I have deleted the transition parts)

18682805 shelly_debug.cpp:231 No log file, sending new entries
24581770 shelly_main.cpp:492 Up 24.56, HAP 0/1/16 ns 1, RAM: 204240/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
32581739 shelly_main.cpp:492 Up 32.56, HAP 0/1/16 ns 1, RAM: 204240/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
37669769 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.178.30:57702
37974361 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.178.30:57702
38998058 mg_rpc.c:315 Shelly.GetInfoExt via WS_in 192.168.178.30:57702
40580954 shelly_main.cpp:492 Up 40.56, HAP 0/1/16 ns 1, RAM: 204316/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
48581496 shelly_main.cpp:492 Up 48.56, HAP 0/1/16 ns 1, RAM: 204316/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
49951416 shelly_input.cpp:77 Input 1: change (state 0)
50170422 shelly_input.cpp:77 Input 1: change (state 1)
50175905 shelly_hap_light_bu:198 State changed (ext_mom): off => on
50183468 shelly_light_bulb_c:102 Starting transition: [w=0.00] -> [w=1.00], 2000 ms
50187968 shelly_white_control:38 Output 1: 0.00 => 1.00
50199781 shelly_output.cpp:83 Duty: 0.009
50205923 shelly_output.cpp:96 Output 1: 0.009436 (transition)
50210708 shelly_output.cpp:83 Duty: 0.015

52167712 shelly_output.cpp:96 Output 1: 0.991171 (transition)
52173093 shelly_output.cpp:83 Duty: 0.997
52178471 shelly_output.cpp:96 Output 1: 0.996566 (transition)
52186795 shelly_light_bulb_co:56 Transition finished, end state: [w=1.00]
52190790 shelly_output.cpp:83 Duty: 1.000
52196440 shelly_output.cpp:96 Output 1: 1.000000 (transition)
52628865 shelly_input.cpp:77 Input 1: change (state 0)
52852351 shelly_input.cpp:77 Input 1: change (state 1)
52857830 shelly_hap_light_bu:198 State changed (ext_mom): on => off
52865343 shelly_light_bulb_c:102 Starting transition: [w=1.00] -> [w=0.00], 2000 ms
52869843 shelly_white_control:38 Output 1: 1.00 => 0.00
52879042 shelly_output.cpp:83 Duty: 0.991
52884460 shelly_output.cpp:96 Output 1: 0.991436 (transition)
52890532 shelly_output.cpp:83 Duty: 0.986

54849330 shelly_output.cpp:96 Output 1: 0.010104 (transition)
54854187 shelly_output.cpp:83 Duty: 0.004
54859569 shelly_output.cpp:96 Output 1: 0.003810 (transition)
54868304 shelly_light_bulb_co:56 Transition finished, end state: [w=0.00]
54872147 shelly_output.cpp:83 Duty: 0.000
56651053 mgos_sys_config.c:323 Saved to conf9.json
56674917 shelly_main.cpp:492 Up 56.65, HAP 0/1/16 ns 1, RAM: 204116/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
64580956 shelly_main.cpp:492 Up 64.56, HAP 0/1/16 ns 1, RAM: 204320/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
72580997 shelly_main.cpp:492 Up 72.56, HAP 0/1/16 ns 1, RAM: 204320/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
80580972 shelly_main.cpp:492 Up 80.56, HAP 0/1/16 ns 1, RAM: 204320/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
88580984 shelly_main.cpp:492 Up 88.56, HAP 0/1/16 ns 1, RAM: 204320/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
96581490 shelly_main.cpp:492 Up 96.56, HAP 0/1/16 ns 1, RAM: 204320/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
104581489 shelly_main.cpp:492 Up 104.56, HAP 0/1/16 ns 1, RAM: 204132/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
112580945 shelly_main.cpp:492 Up 112.56, HAP 0/1/16 ns 1, RAM: 204132/193860; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400

Log by activating channel 2:

280423759 shelly_debug.cpp:231 No log file, sending new entries
280429243 mgos_mongoose.c:66 New heap free LWM: 193240
280581078 shelly_main.cpp:492 Up 280.56, HAP 0/1/16 ns 1, RAM: 204108/193240; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
288580948 shelly_main.cpp:492 Up 288.56, HAP 0/1/16 ns 1, RAM: 204108/193240; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
296313256 shelly_input.cpp:77 Input 2: change (state 0)
296541071 shelly_input.cpp:77 Input 2: change (state 1)
296546539 shelly_hap_light_bu:198 State changed (ext_mom): off => on
296554102 shelly_light_bulb_c:102 Starting transition: [w=0.00] -> [w=1.00], 2000 ms
296559777 shelly_white_control:38 Output 1: 0.00 => 1.00
296676826 mgos_sys_config.c:323 Saved to conf9.json
296700719 shelly_main.cpp:492 Up 296.68, HAP 0/1/16 ns 1, RAM: 203760/193240; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: on, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400
296706540 shelly_output.cpp:83 Duty: 0.078
296712093 shelly_output.cpp:96 Output 2: 0.078028 (transition)
296720765 shelly_output.cpp:83 Duty: 0.085
296726758 shelly_output.cpp:96 Output 2: 0.084900 (transition)
296731533 shelly_output.cpp:83 Duty: 0.090

298514953 shelly_output.cpp:96 Output 2: 0.979492 (transition)
298521078 shelly_output.cpp:83 Duty: 0.985
298526997 shelly_output.cpp:96 Output 2: 0.985056 (transition)
298531659 shelly_output.cpp:83 Duty: 0.991
298537024 shelly_output.cpp:96 Output 2: 0.990570 (transition)
298543089 shelly_output.cpp:83 Duty: 0.996
298548821 shelly_output.cpp:96 Output 2: 0.996237 (transition)
298556080 shelly_light_bulb_co:56 Transition finished, end state: [w=1.00]
298559653 shelly_output.cpp:83 Duty: 1.000
298564952 shelly_output.cpp:96 Output 2: 1.000000 (transition)
299252171 shelly_input.cpp:77 Input 2: change (state 0)
299444472 shelly_input.cpp:77 Input 2: change (state 1)
299449970 shelly_hap_light_bu:198 State changed (ext_mom): on => off
299457482 shelly_light_bulb_c:102 Starting transition: [w=1.00] -> [w=0.00], 2000 ms
299461984 shelly_white_control:38 Output 1: 1.00 => 0.00
299470909 shelly_output.cpp:83 Duty: 0.992
299476483 shelly_output.cpp:96 Output 2: 0.991611 (transition)
299484079 shelly_output.cpp:83 Duty: 0.986
299490013 shelly_output.cpp:96 Output 2: 0.985695 (transition)
299497065 shelly_output.cpp:83 Duty: 0.979

301420864 shelly_output.cpp:83 Duty: 0.017
301426803 shelly_output.cpp:96 Output 2: 0.016768 (transition)
301431494 shelly_output.cpp:83 Duty: 0.011
301436856 shelly_output.cpp:96 Output 2: 0.011203 (transition)
301442855 shelly_output.cpp:83 Duty: 0.006
301448782 shelly_output.cpp:96 Output 2: 0.005696 (transition)
301456736 shelly_light_bulb_co:56 Transition finished, end state: [w=0.01]
301460322 shelly_output.cpp:83 Duty: 0.000
304666602 mgos_sys_config.c:323 Saved to conf9.json
304690351 shelly_main.cpp:492 Up 304.67, HAP 0/1/16 ns 1, RAM: 203832/174652; st 0; 11.1: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.2: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.3: sta: off, b: 100, h: 0, sa: 100, ct: 400; 11.4: sta: off, b: 54, h: 0, sa: 100, ct: 400

@markirb
Copy link
Collaborator

markirb commented Jan 20, 2025

This sounds more like a PWM problem.

Can you try to set the mode to normal (4 switches) on time and see if everything works there.

Outputs are binary then.

@stahlbox
Copy link
Author

in switch mode it works fine... :)

I use 2 different LEDs for testing, it seems the second one has a problem with pwm. I swapped the LEDs (back in white mode), now channel 2 works and channel 1 is acting up.

Thanks for the solution - I'll test it again in a few days or next week with the same "correct" LED, but I'm confident that it will work then and will report back.

@markirb
Copy link
Collaborator

markirb commented Jan 21, 2025

Ok Strange. I remember there was someone having a similar problem that went away.

@kaahla
Copy link

kaahla commented Jan 21, 2025

@stahlbox could you share your wiring setup please? I have issues with my setup:
I want to use the rgbw pm in white mode with two tunable white leds: channel 1+2 for led 1 and channel 3 + 4 for led 2. And I want to use two switches, one for led 1 and one for led 2. No matter how I connect the wires, I don’t get the second switch to work… don’t know what to select in the settings either :(
Thanks for your help!

@stahlbox
Copy link
Author

I use the circuit provided by Shelly with 2 LEDs and 2 buttons in white mode. Switched to channel 1 and 2. Channel 3 and 4 are not connected. Nothing special

@kaahla
Copy link

kaahla commented Jan 22, 2025

@stahlbox where can I find this circuit? Cannot find it sadly, could you share it with me please? :-)

@stahlbox
Copy link
Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants