Closed madduck closed 2 hours ago
As detailed on Discord, don't assume the funky behavior to be Tasmota, when the device is Shelly Plus 2PM, which seems to not behave straight for the mains AC switching inputs.
As detailed on Discord, don't assume the funky behavior to be Tasmota, when the device is Shelly Plus 2PM, which seems to not behave straight for the mains AC switching inputs.
SwitchModes 3, 4, and 6 work just fine, which leads me to believe that the difference is in software, because — and this is also shown in the GPIO diagram — the hardware seems to work fine.
As already suggested, if you want to demonstrate odd behavior, do it on a device with "normal" inputs.
As already suggested, if you want to demonstrate odd behavior, do it on a device with "normal" inputs.
I am not a hardware person, but I still fail to see how this is a hardware issue when the GPIOs work as expected even on AC, and only one of the four very similar SwitchMode, which are a software construct (right?), is affected.
The difference between switchmode 5 and 6 is exactly about hardware One is active low while he other is active high By using the wrong mode, it won't work
You are exactly in the case where your swich inactive position is understood as active by mode 5 So the 5 seconds you see are actually the 4 seconds of the hold delay
You are exactly in the case where your swich inactive position is understood as active by mode 5 So the 5 seconds you see are actually the 4 seconds of the hold delay
Thank you @barbudor, this noww makes perfect sense and I can close the issue. Sorry for having wasted everyone's time. SwitchMode 5
is designed for the case when the input GPIO is high by default, and lowering it means TOGGLE
. I got confused by all the 1's and 0's and ON's and OFF's and rising and falling edges.
PROBLEM DESCRIPTION
SwitchMode 5
doesn't work if device was left untouched for ~5 seconds.REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:21:21:00.919 BRY: GC from 7468 to 4159 bytes, objects freed 12/46 (in 0 ms) - slots from 49/91 to 49/91 21:21:00.931 MQT: tele/tas-room-martin/STATE = {"Time":"2024-11-18T21:21:00","Uptime":"0T09:11:36","UptimeSec":33096,"Heap":136,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":5,"Berry":{"HeapUsed":4,"Objects":46},"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"whakaputa","BSSId":"6A:AF:97:72:B1:BC","Channel":1,"Mode":"HT40","RSSI":100,"Signal":-50,"LinkCount":9,"Downtime":"0T00:02:40"}} 21:21:00.947 MQT: tele/tas-room-martin/SENSOR = {"Time":"2024-11-18T21:21:00","Switch1":"OFF","Switch2":"OFF","ANALOG":{"Temperature1":44.9},"ENERGY":{"TotalStartTime":"2024-10-16T09:56:53","Total":0.384,"Yesterday":0.000,"Today":0.384,"Period":[0,0],"Power":[49,0],"ApparentPower":[79,0],"ReactivePower":[20,0],"Factor":[0.62,0.00],"Frequency":50,"Voltage":236,"Current":[0.202,0.000]},"TempUnit":"C"} 21:21:01.250 ADE: Channel1 ACCMODE 0x280C00, VRMS 6126417, Period 4475, IRMS 22325, WATT -215, VA 348, VAR 86 21:21:01.252 ADE: Channel2 ACCMODE 0x280C00, VRMS 6127650, Period 4472, IRMS 1782, WATT 0, VA 28, VAR 0 21:21:02.250 ADE: Channel1 ACCMODE 0x280C00, VRMS 6124055, Period 4474, IRMS 22258, WATT -214, VA 347, VAR 87 21:21:02.251 ADE: Channel2 ACCMODE 0x280C00, VRMS 6124716, Period 4472, IRMS 1782, WATT 0, VA 28, VAR 0 21:21:02.964 SRC: Switch 21:21:02.976 MQT: stat/tas-room-martin/RESULT = {"POWER2":"ON"} 21:21:02.979 MQT: stat/tas-room-martin/POWER2 = ON 21:21:03.250 ADE: Channel1 ACCMODE 0x000C00, VRMS 6122180, Period 4474, IRMS 22356, WATT -215, VA 347, VAR 86 21:21:03.252 ADE: Channel2 ACCMODE 0x000C00, VRMS 6122650, Period 4474, IRMS 20011, WATT -70, VA 115, VAR 5 21:21:03.632 CFG: Saved, Count 253, Bytes 4096 21:21:04.249 ADE: Channel1 ACCMODE 0x200C00, VRMS 6118339, Period 4472, IRMS 22274, WATT -215, VA 347, VAR 86 21:21:04.251 ADE: Channel2 ACCMODE 0x200C00, VRMS 6119536, Period 4473, IRMS 19991, WATT -311, VA 312, VAR 3 21:21:04.303 SRC: Switch 21:21:04.316 MQT: stat/tas-room-martin/RESULT = {"POWER2":"OFF"} 21:21:04.320 MQT: stat/tas-room-martin/POWER2 = OFF 21:21:04.663 CFG: Saved, Count 254, Bytes 4096 21:21:05.253 ADE: Channel1 ACCMODE 0x280C00, VRMS 6118505, Period 4473, IRMS 22388, WATT -215, VA 347, VAR 87 21:21:05.255 ADE: Channel2 ACCMODE 0x280C00, VRMS 6118352, Period 4475, IRMS 1796, WATT -45, VA 69, VAR 0 21:21:06.250 ADE: Channel1 ACCMODE 0x280C00, VRMS 6118445, Period 4475, IRMS 22357, WATT -215, VA 348, VAR 86 21:21:06.252 ADE: Channel2 ACCMODE 0x280C00, VRMS 6119545, Period 4472, IRMS 1796, WATT 0, VA 28, VAR 0 21:21:07.250 ADE: Channel1 ACCMODE 0x280C00, VRMS 6116314, Period 4474, IRMS 22326, WATT -215, VA 348, VAR 88 21:21:07.252 ADE: Channel2 ACCMODE 0x280C00, VRMS 6117337, Period 4473, IRMS 1796, WATT 0, VA 28, VAR 0 21:21:08.248 ADE: Channel1 ACCMODE 0x280C00, VRMS 6120039, Period 4472, IRMS 22337, WATT -214, VA 347, VAR 86 21:21:08.250 ADE: Channel2 ACCMODE 0x280C00, VRMS 6120523, Period 4474, IRMS 1796, WATT 0, VA 28, VAR 0