arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.2k stars 4.81k forks source link

Shutter not working as expected, after update to latest (12.5) #18841

Closed HerrFrutti closed 1 year ago

HerrFrutti commented 1 year ago

PROBLEM DESCRIPTION

I had working shutters, that can be open and closed via mqtt. I used the ShutterPosition command with the OPEN and CLOSE commands. With the update to 12.5 those commands are always opening the shutter. As workaround I changed those commands to 0 and 100 which is working.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

EXPECTED BEHAVIOUR

ShutterPosition1 UP -> Shutter opens ShutterPosition1 DOWN -> Shutter closes

ShutterPosition1 OPEN -> Shutter opens ShutterPosition1 CLOSE -> Shutter closes

ADDITIONAL CONTEXT

15:34:57.340 CMD: ShutterPosition1 STOP
15:34:57.353 MQT: stat/ESP-Velux/RESULT = {"POWER1":"OFF"}
15:34:57.360 MQT: stat/ESP-Velux/POWER1 = OFF
15:34:57.368 MQT: stat/ESP-Velux/SHUTTER1 = 83
15:34:57.375 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":83,"Direction":0,"Target":83,"Tilt":0}}
15:35:03.523 CMD: ShutterPosition1 CLOSE
15:35:03.541 MQT: stat/ESP-Velux/RESULT = {"POWER1":"ON"}
15:35:03.548 MQT: stat/ESP-Velux/POWER1 = ON
15:35:03.556 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":83,"Direction":1,"Target":0,"Tilt":0}}
15:35:03.922 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":83,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:04.890 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":81,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:05.911 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":79,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:06.154 CMD: ShutterPosition1 STOP
15:35:06.168 MQT: stat/ESP-Velux/RESULT = {"POWER1":"OFF"}
15:35:06.170 MQT: stat/ESP-Velux/POWER1 = OFF
15:35:06.175 MQT: stat/ESP-Velux/SHUTTER1 = 78
15:35:06.180 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":78,"Direction":0,"Target":78,"Tilt":0}}
15:35:10.649 CMD: ShutterPosition1 100
15:35:10.662 MQT: stat/ESP-Velux/RESULT = {"POWER2":"ON"}
15:35:10.664 MQT: stat/ESP-Velux/POWER2 = ON
15:35:10.667 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":78,"Direction":-1,"Target":100,"Tilt":0}}
15:35:10.922 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":79,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:11.913 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":81,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:12.927 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":83,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:13.892 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":85,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:14.912 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":87,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:15.926 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":89,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:16.833 CMD: ShutterPosition1 STOP
15:35:16.845 MQT: stat/ESP-Velux/RESULT = {"POWER2":"OFF"}
15:35:16.848 MQT: stat/ESP-Velux/POWER2 = OFF
15:35:16.850 MQT: stat/ESP-Velux/SHUTTER1 = 91
15:35:16.853 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":91,"Direction":0,"Target":91,"Tilt":0}}
15:35:20.480 CMD: ShutterPosition1 0
15:35:20.495 MQT: stat/ESP-Velux/RESULT = {"POWER1":"ON"}
15:35:20.498 MQT: stat/ESP-Velux/POWER1 = ON
15:35:20.502 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":91,"Direction":1,"Target":0,"Tilt":0}}
15:35:20.919 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":90,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:21.889 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":88,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:22.905 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":86,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:23.932 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":84,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:24.891 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":82,"Direction":1,"Target":0,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:25.848 CMD: ShutterPosition1 100
15:35:25.861 MQT: stat/ESP-Velux/RESULT = {"POWER1":"OFF"}
15:35:25.864 MQT: stat/ESP-Velux/POWER1 = OFF
15:35:26.375 MQT: stat/ESP-Velux/RESULT = {"POWER2":"ON"}
15:35:26.378 MQT: stat/ESP-Velux/POWER2 = ON
15:35:26.381 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":80,"Direction":-1,"Target":100,"Tilt":0}}
15:35:26.905 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":81,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:27.921 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":83,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:28.915 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":85,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:29.906 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":87,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:30.921 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":89,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:31.883 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":91,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:32.910 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":93,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:33.924 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":95,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:34.886 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":97,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:35.908 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":99,"Direction":-1,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:35:36.490 MQT: stat/ESP-Velux/RESULT = {"POWER2":"OFF"}
15:35:36.497 MQT: stat/ESP-Velux/POWER2 = OFF
15:35:36.507 MQT: stat/ESP-Velux/SHUTTER1 = 100
15:35:36.510 MQT: stat/ESP-Velux/RESULT = {"Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:36:00.918 MQT: tele/ESP-Velux/STATE = {"Time":"2023-06-10T15:36:00","Uptime":"0T00:20:09","UptimeSec":1209,"Heap":155,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"Berry":{"HeapUsed":3,"Objects":40},"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","POWER6":"OFF","POWER7":"OFF","POWER8":"OFF","POWER9":"OFF","Wifi":{"AP":1,"SSId":"endstation","BSSId":"50:D4:F7:07:71:87","Channel":1,"Mode":"11n","RSSI":100,"Signal":-34,"LinkCount":1,"Downtime":"0T00:00:02"}}
15:36:00.929 MQT: tele/ESP-Velux/SENSOR = {"Time":"2023-06-10T15:36:00","Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter2":{"Position":100,"Direction":0,"Target":100,"Tilt":0},"Shutter3":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
15:37:09.460 CMD: STATUS 13 
15:37:09.468 MQT: stat/ESP-Velux/STATUS13 = {"StatusSHT":{"SHT0":{"Relay1":1,"Relay2":2,"Open":496,"Close":495,"50perc":50,"Delay":0,"Opt":"0001","Calib":[300,500,700,900,1000],"Mode":"1"},"SHT1":{"Relay1":3,"Relay2":4,"Open":496,"Close":495,"50perc":50,"Delay":0,"Opt":"0001","Calib":[300,500,700,900,1000],"Mode":"1"},"SHT2":{"Relay1":5,"Relay2":6,"Open":496,"Close":498,"50perc":50,"Delay":0,"Opt":"0001","Calib":[300,500,700,900,1000],"Mode":"1"}}}
stefanbode commented 1 year ago

Bug accepted. Thx

kugelkopf123 commented 1 year ago

Same here. When set the HW switch to OFF it still stays on till its on its endposition. Its not possible to stop the shutter from moving. When setting setoption80 0 the HW Switch works fine.

stefanbode commented 1 year ago

The error was introduced in dec 10th. Looks like it was accidental removed. 12.3 was the last version where the shutterposition1 up/down/open/close/stop was working

stefanbode commented 1 year ago

@kugelkopf123 your issue seems something different. Please more logs and as always a high loglevel and the shutter settings help fixing. Switching the relay directly is still not recommended but supported. Shutterbuttons got great enhancements.

kugelkopf123 commented 1 year ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

Configuration output here: 01:04:43.085 CMD: Backlog Template; Module; GPIO 255 01:04:43.113 MQT: stat/Shelly25_Bad/RESULT = {"NAME":"Shelly 2.5","GPIO":[320,0,32,0,224,193,0,0,640,192,608,225,3456,4736],"FLAG":0,"BASE":18} 01:04:43.335 MQT: stat/Shelly25_Bad/RESULT = {"Module":{"0":"Shelly 2.5"}} 01:04:43.590 MQT: stat/Shelly25_Bad/RESULT = {"GPIO0":{"320":"Led_i1"},"GPIO1":{"0":"None"},"GPIO2":{"32":"Button1"},"GPIO3":{"0":"None"},"GPIO4":{"224":"Relay1"},"GPIO5":{"193":"Switch_n2"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"640":"I2C SDA"},"GPIO13":{"192":"Switch_n1"},"GPIO14":{"608":"I2C SCL"},"GPIO15":{"225":"Relay2"},"GPIO16":{"3456":"ADE7953 IRQ1"},"GPIO17":{"4736":"ADC Temp"}}

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

Pressing the "UP Wall Switch" and while the Blinds are going up, switch the Wallswitch off and the Blinds still go up.

01:13:45.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6153091, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:45.214 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6156476, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:46.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6154094, Period 4473, IRMS 1773, WATT 0, VA 27, VAR 0
01:13:46.213 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6157389, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:46.644 SRC: Switch
01:13:46.646 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:1 by Switch, payload 1, powermask 1
01:13:46.648 SHT: Stop 1 Mode 0 time 119
01:13:46.650 SRC: Shutter
01:13:46.652 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Shutter, payload 1, powermask 0
01:13:46.654 SHT: FUNC_SET_POWER end. powermask 0
01:13:46.656 SHT: Skipping switch off relay 0
01:13:46.658 RSL: RESULT = {"POWER1":"OFF"}
01:13:46.661 RSL: POWER1 = OFF
01:13:47.164 SHT: Delay Start? var1 <99>=<9>, max10s?
01:13:47.166 SHT: Shtr1, Target 112, Power: 1, tiltmv: 0
01:13:47.168 SHT: FUNC_SET_POWER end. powermask 1
01:13:47.171 RSL: RESULT = {"POWER1":"ON"}
01:13:47.173 RSL: POWER1 = ON
01:13:47.176 SHT: Shtr1 Real 0, Start 0, Stop 112, Dir 1, Delay 0, Rtc 0.00 [s], Freq 0, PWM 0, Tilt 0
01:13:47.179 RSL: RESULT = {"Shutter1":{"Position":0,"Direction":1,"Target":0,"Tilt":0}}
01:13:47.182 SHT: Shtr1 Time 0(0), cStop 0, cVelo 0, mVelo 0, aVelo 1000, mRun 0, aPos 0, aPos2 0, nStop 0, Trgt 112, mVelo 0, Dir 1, Tilt 0, TrgtTilt: 0, Tiltmove: 0
01:13:47.212 ADE: Channel1 ACCMODE 0x252800, VRMS 6151332, Period 4473, IRMS 54814, WATT -2, VA 44, VAR 0
01:13:47.215 ADE: Channel2 ACCMODE 0x252800, VRMS 6152256, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:47.238 SHT: Shtr1 Time 2(1), cStop 0, cVelo 0, mVelo 0, aVelo 1000, mRun 0, aPos 0, aPos2 1000, nStop 0, Trgt 112, mVelo 0, Dir 1, Tilt 0, TrgtTilt: 0, Tiltmove: 0
01:13:47.241 SHT: Stop 1 Mode 0 time 2
01:13:47.242 SRC: Shutter
01:13:47.244 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Shutter, payload 1, powermask 0
01:13:47.246 SHT: FUNC_SET_POWER end. powermask 0
01:13:47.248 SHT: Skipping switch off relay 0
01:13:47.251 RSL: RESULT = {"POWER1":"OFF"}
01:13:47.254 RSL: POWER1 = OFF
01:13:47.256 SHT: Shtr1 Real 1000, Start 1000, Stop 112, Dir 0, Delay 0, Rtc 0.10 [s], Freq 0, PWM 0, Tilt 0
01:13:47.259 RSL: SHUTTER1 = 0
01:13:47.261 RSL: RESULT = {"Shutter1":{"Position":0,"Direction":0,"Target":0,"Tilt":0}}
01:13:48.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6142493, Period 4473, IRMS 87905, WATT -1270, VA 1361, VAR -372
01:13:48.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6144969, Period 4473, IRMS 1773, WATT 0, VA 27, VAR 0
01:13:49.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6142080, Period 4473, IRMS 87336, WATT -1315, VA 1371, VAR -381
01:13:49.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6144074, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:50.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6141892, Period 4473, IRMS 87306, WATT -1314, VA 1366, VAR -370
01:13:50.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6142876, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:51.212 ADE: Channel1 ACCMODE 0x052800, VRMS 6142989, Period 4473, IRMS 87276, WATT -1314, VA 1364, VAR -366
01:13:51.215 ADE: Channel2 ACCMODE 0x052800, VRMS 6141820, Period 4473, IRMS 1773, WATT 0, VA 27, VAR 0
01:13:51.609 NRG: Energy reset by invalid data
01:13:52.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6143437, Period 4473, IRMS 86963, WATT -1312, VA 1361, VAR -361
01:13:52.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6142965, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:52.847 WIF: Prüfe Verbindung...
01:13:53.047 SRC: Switch
01:13:53.049 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Switch, payload 1, powermask 0
01:13:53.051 SHT: FUNC_SET_POWER end. powermask 0
01:13:53.053 SHT: Skipping switch off relay 0
01:13:53.056 RSL: RESULT = {"POWER1":"OFF"}
01:13:53.058 RSL: POWER1 = OFF
01:13:53.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6142276, Period 4473, IRMS 86926, WATT -1312, VA 1360, VAR -354
01:13:53.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6140855, Period 4473, IRMS 1773, WATT 0, VA 28, VAR 0
01:13:54.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6143441, Period 4474, IRMS 86887, WATT -1311, VA 1358, VAR -350
01:13:54.214 ADE: Channel2 ACCMODE 0x052800, VRMS 6141381, Period 4474, IRMS 1773, WATT 0, VA 27, VAR 0
01:13:55.211 ADE: Channel1 ACCMODE 0x052800, VRMS 6142567, Period 4474, IRMS 86808, WATT -1311, VA 1356, VAR -347

Pressing the "DOWN Wallswitch" Nothing Happens...

01:15:00.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6153964, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:00.214 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6157907, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:01.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6153065, Period 4476, IRMS 1773, WATT 0, VA 27, VAR 0
01:15:01.213 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6156822, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:01.894 SRC: Switch
01:15:01.896 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Switch, payload 1, powermask 0
01:15:01.898 SHT: FUNC_SET_POWER end. powermask 0
01:15:01.900 SHT: Skipping switch off relay 0
01:15:01.903 RSL: RESULT = {"POWER2":"OFF"}
01:15:01.905 RSL: POWER2 = OFF
01:15:02.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6155113, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:02.213 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6158547, Period 4476, IRMS 1773, WATT 0, VA 27, VAR 0
01:15:03.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6158093, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:03.214 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6160893, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:03.494 SRC: Switch
01:15:03.496 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:2 by Switch, payload 1, powermask 2
01:15:03.498 SHT: Stop 1 Mode 0 time 4
01:15:03.499 SRC: Shutter
01:15:03.501 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Shutter, payload 1, powermask 0
01:15:03.503 SHT: FUNC_SET_POWER end. powermask 0
01:15:03.505 SHT: Skipping switch off relay 0
01:15:03.508 RSL: RESULT = {"POWER2":"OFF"}
01:15:03.510 RSL: POWER2 = OFF
01:15:03.512 SHT: Shtr1, Target 112, Power: 2, tiltmv: 0
01:15:03.514 SHT: FUNC_SET_POWER end. powermask 2
01:15:03.516 SHT: Skipping switch off relay 0
01:15:03.518 RSL: RESULT = {"POWER2":"ON"}
01:15:03.520 RSL: POWER2 = ON
01:15:03.523 SHT: Shtr1 Time 4(-1), cStop 0, cVelo 0, mVelo 0, aVelo 1000, mRun 0, aPos 0, aPos2 0, nStop 0, Trgt 112, mVelo 0, Dir -1, Tilt 0, TrgtTilt: 0, Tiltmove: 0
01:15:03.526 SHT: Stop 1 Mode 0 time 4
01:15:03.528 SRC: Shutter
01:15:03.530 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Shutter, payload 4, powermask 0
01:15:03.531 SHT: FUNC_SET_POWER end. powermask 0
01:15:03.533 SHT: Skipping switch off relay 0
01:15:03.536 RSL: RESULT = {"POWER2":"OFF"}
01:15:03.538 RSL: POWER2 = OFF
01:15:03.541 SHT: Shtr1 Real 0, Start 0, Stop 112, Dir 0, Delay 0, Rtc 0.20 [s], Freq 0, PWM 0, Tilt 0
01:15:03.543 RSL: SHUTTER1 = 0
01:15:03.546 RSL: RESULT = {"Shutter1":{"Position":0,"Direction":0,"Target":0,"Tilt":0}}
01:15:04.211 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6157940, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:04.213 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6160493, Period 4476, IRMS 1773, WATT 0, VA 28, VAR 0
01:15:04.001 SRC: Switch
01:15:04.003 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Switch, payload 1, powermask 0
01:15:04.005 SHT: FUNC_SET_POWER end. powermask 0
01:15:04.007 SHT: Skipping switch off relay 0
01:15:04.010 RSL: RESULT = {"POWER2":"OFF"}
01:15:04.012 RSL: POWER2 = OFF
01:15:05.197 ADE: Channel1 ACCMODE 0x2D2800, VRMS 6155608, Period 4475, IRMS 1773, WATT 0, VA 27, VAR 0
01:15:05.200 ADE: Channel2 ACCMODE 0x2D2800, VRMS 6158564, Period 4475, IRMS 1773, WATT 0, VA 28, VAR 0

TO REPRODUCE

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

01:00:28.551 CMD: shuttermode 01:00:28.559 MQT: stat/Shelly25_Bad/RESULT = {"ShutterMode":1} 01:00:31.716 CMD: interlock 01:00:31.723 MQT: stat/Shelly25_Bad/RESULT = {"Interlock":"ON","Groups":"1,2"} 01:00:40.486 CMD: shutterbutton1 01:00:40.493 MQT: stat/Shelly25_Bad/RESULT = {"ShutterButton1":"-"} 01:00:43.337 CMD: shutterbutton2 01:00:43.344 MQT: stat/Shelly25_Bad/RESULT = {"ShutterButton2":"-"} 01:00:53.017 CMD: so80 01:00:53.024 MQT: stat/Shelly25_Bad/RESULT = {"SetOption80":"ON"} 01:01:02.941 CMD: switchmode 01:01:02.947 MQT: stat/Shelly25_Bad/RESULT = {"SwitchMode1":1} 01:01:13.972 CMD: shutteropenduration 01:01:13.980 MQT: stat/Shelly25_Bad/RESULT = {"ShutterOpenDuration1":16.3} 01:01:16.630 CMD: shuttercloseduration 01:01:16.638 MQT: stat/Shelly25_Bad/RESULT = {"ShutterCloseDuration1":16.1} 01:01:21.191 CMD: shuttercalibration 01:01:21.199 MQT: stat/Shelly25_Bad/RESULT = {"ShutterCalibration1":"980 228 2188 900 1000"} 01:01:36.754 CMD: shuttersethalfway 01:01:36.763 MQT: stat/Shelly25_Bad/RESULT = {"ShutterSetHalfway1":65} 01:02:44.278 CMD: shutterposition 01:02:44.287 MQT: stat/Shelly25_Bad/RESULT = {"Shutter1":{"Position":9,"Direction":0,"Target":9,"Tilt":0}}

The blinds do not respond to the wall switch. Sometimes they do not go up when they are down and sometimes they do not go down when they are up. During the movement, whether up or down, they can no longer be stopped. Normally this was possible by simply turning off the directional switch on the wall switch. I have 3 other Shelly 2.5 in the flat with the identical setting. The problem only occurs since the update to the latest version. All other Shellys still running with version 12.3.1.3 have no problem.

I made a backup of the configuration before the update. I reset the Shelly and imported the configuration. The error remains. I reset the configuration again and did the configuration as described in the documentation. The error remains.

Do you need any more information?

(Please, remember to close the issue when the problem has been addressed)

stefanbode commented 1 year ago

Thanks look great so far. let me see if I can find the error. There were some recent changes to get away one bug with switching the relay directly. I assume there is a side effect with the switch: 01:15:03.496 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:2 by **Switch**, payload 1, powermask 2 Should be easy to fix. I have to create exceptions for every input that in the background try to change the relay.

stefanbode commented 1 year ago

Ok, i found the error but need maybe your help:

01:15:03.496 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:2 by Switch, payload 1, powermask 2
01:15:03.498 SHT: Stop 1 Mode 0 time 4
01:15:03.499 SRC: Shutter
01:15:03.501 SHT: FUNC_SET_POWER Relaymask 0 SwitchedRelay:0 by Shutter, payload 1, powermask 0

Everything is fine if you switch relay2. this executes as expected. But if you switch relay1 this is reported as "SwitchedRelay:0" and not 1. This is strange and unexpected. I checked your config with "power1 on/off" and "power2 on/off" in the console because missing the switches and this does work. is it really a switch or more a button? == momentary switch

kugelkopf123 commented 1 year ago

thanks for taking care of this. It's a switch, not a button. The switch for the direction remains switched on, like a light switch. It must be explicitly switched off to be able to change the direction. It is a Gira System55 blind switch. I can't say for sure if one direction is working properly. The one that moves cannot be switched off while moving. It goes all the way to the end. It doesn't matter if the switch is turned off.

stefanbode commented 1 year ago

Ok then please provide switchmode and the gpio it is connected. Maybe a picture of the config page is also fine. I have to physically build it here.

kugelkopf123 commented 1 year ago

As also mentioned in my previous post: Switchmode 1

image image

00:49:47.930 CMD: gpios 00:49:47.981 MQT: stat/Shelly25_Bad/RESULT = {"GPIOs1":{"0":"None","5728":"Option A","32":"Button","64":"Button_n","96":"Button_i","128":"Button_in","160":"Switch","192":"Switch_n","224":"Relay","256":"Relay_i","8672":"Relay_b","8704":"Relay_bi","288":"Led","320":"Led_i","352":"Counter","384":"Counter_n","416":"PWM","448":"PWM_i","544":"LedLink","576":"LedLink_i","3840":"Output Hi","3872":"Output Lo","7584":"Herzschlag","7616":"Herzschlag_i","8096":"Reset","608":"I2C SCL","640":"I2C SDA","672":"SPI MISO","704":"SPI MOSI","736":"SPI CLK","768":"SPI CS","800":"SPI DC","6240":"SDCard CS","832":"SSPI MISO","864":"SSPI MOSI","896":"SSPI SCLK","928":"SSPI CS","960":"SSPI DC","3200":"Serial Tx","3232":"Serial Rx","8448":"SM2335 Clk","8480":"SM2335 Dat","9024":"BP1658CJ Clk","9056":"BP1658CJ Dat","8384":"BP5758D Clk","8416":"BP5758D Dat","2592":"HLWBL SEL","2624":"HLWBL SEL_i","2656":"HLWBL CF1","2688":"HLW8012 CF","2720":"BL0937 CF","3456":"ADE7953 IRQ","8832":"ADE7953 RST","8928":"ADE7953 CS","3072":"CSE7766 Tx","3104":"CSE7766 Rx","9344":"NrgMbs Tx Ena","7488":"BL0939 Rx","5056":"BL0940 Rx","7520":"BL0942 Rx","7072":"ZC Puls"}} 00:49:48.001 MQT: stat/Shelly25_Bad/RESULT = {"GPIOs2":{"4704":"ADC Input","4736":"ADC Temp","4768":"ADC Light","4800":"ADC Button","4832":"ADC Button_i","4864":"ADC Range","4896":"ADC CT Power","3328":"ADC Joystick","6336":"ADC pH","7904":"ADC MQ"}} What else do you need?

stefanbode commented 1 year ago

Ok. Got it. In this case I do know what to build. Will post later today.

stefanbode commented 1 year ago

Ok fix is done please check and have fun. Sorry for bug. Caused by lazyness

kugelkopf123 commented 1 year ago

Thanks! Unfortunately, I can't test it until Friday. I'll let you know as soon as I've tried it.

kugelkopf123 commented 1 year ago

Problem solved! Everything is back to the way it used to be. Thank you very much!

mkjustuk commented 1 year ago

13.0.0 appears to still have the (or very related) issue.

If I send a msg via mqtt cmnd/tasmota_F594DD/SHUTTER1/shutterstopopen the shutter closes. Sending again stops it, but a third time closes again. shutterstopclose works fine.

Jason2866 commented 1 year ago

@mkjustuk Please open a new issue.