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.23k stars 4.81k forks source link

shutter in button mode controls all other group topic shutters, but stop himself immediate with 13.0.0 #19234

Closed florian-reus closed 1 year ago

florian-reus commented 1 year ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. when used in shutter button mode, all other group topic shutters are started. local shutter is stopped right away (~half a second) looks similar as https://github.com/arendst/Tasmota/issues/19085 --> starting with local button, receiving it's own mqtt message and stopping right away

REQUESTED INFORMATION

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

- [X] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here: no rules used 
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
00:00:00.001 HDW: ESP8266EX
00:00:00.046 CFG: Loaded from flash at FB, Count 4216
00:00:00.066 SHT: ShutterMode: 1
00:00:00.070 Project tasmota - rollo_esszimmer Version 13.0.0(tasmota)-2_7_4_9(2023-06-26T10:42:07)
00:00:00.711 WIF: Connecting to AP1 meta_legacy Channel 9 BSSId D0:21:F9:80:21:95 in mode 11n as rollo-esszimmer...
00:00:03.807 WIF: Connected
00:00:04.011 HTP: Web server active on rollo-esszimmer with IP address 192.168.9.213
19:21:59.012 MQT: Attempting connection...
19:21:59.728 MQT: Connected
19:21:59.731 MQT: tele/rollo/eg/esszimmer/LWT = Online (retained)
19:21:59.733 MQT: cmnd/rollo/eg/esszimmer/POWER = 
19:21:59.744 MQT: tele/rollo/eg/esszimmer/INFO1 = {"Info1":{"Module":"Rollo","Version":"13.0.0(tasmota)","FallbackTopic":"cmnd/esszimmer_fb/","GroupTopic":"cmnd/rollo/eg/tasmotas/"}}
19:21:59.752 MQT: tele/rollo/eg/esszimmer/INFO2 = {"Info2":{"WebServerMode":"Admin","Hostname":"rollo-esszimmer","IPAddress":"192.168.9.213"}}
19:21:59.766 MQT: tele/rollo/eg/esszimmer/INFO3 = {"Info3":{"RestartReason":"Software/System restart","BootCount":1542}}
19:21:59.776 MQT: stat/rollo/eg/esszimmer/RESULT = {"POWER1":"OFF"}
19:21:59.781 MQT: stat/rollo/eg/esszimmer/POWER1 = OFF (retained)
19:21:59.787 MQT: stat/rollo/eg/esszimmer/RESULT = {"POWER2":"OFF"}
19:21:59.794 MQT: stat/rollo/eg/esszimmer/POWER2 = OFF (retained)
19:22:00.912 MQT: stat/rollo/eg/esszimmer/STATUS10 = {"StatusSNS":{"Time":"2023-07-31T19:22:00","Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}}
19:22:03.415 MQT: tele/rollo/eg/esszimmer/STATE = {"Time":"2023-07-31T19:22:03","Uptime":"0T00:00:10","UptimeSec":10,"Heap":26,"SleepMode":"Dynamic","Sleep":100,"LoadAvg":14,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"meta_legacy","BSSId":"D0:21:F9:80:21:95","Channel":9,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:05"}}
19:22:03.445 MQT: tele/rollo/eg/esszimmer/SENSOR = {"Time":"2023-07-31T19:22:03","Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
19:24:45.596 MQT: stat/rollo/eg/esszimmer/RESULT = {"POWER2":"ON"}
19:24:45.600 MQT: stat/rollo/eg/esszimmer/POWER2 = ON (retained)
19:24:45.604 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":100,"Direction":-1,"Target":0,"Tilt":0}}
19:24:45.610 MQT: cmnd/rollo/eg/tasmotas/ShutterPosition1 = 0
19:24:45.615 MQT: cmnd/rollo/eg/tasmotas/ShutterPosition2 = 0
19:24:45.620 MQT: cmnd/rollo/eg/tasmotas/ShutterPosition3 = 0
19:24:45.626 MQT: cmnd/rollo/eg/tasmotas/ShutterPosition4 = 0
19:24:45.631 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Button2":0}}
19:24:45.780 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":100,"Direction":-1,"Target":0,"Tilt":0}}
19:24:45.879 MQT: stat/rollo/eg/esszimmer/RESULT = {"Command":"Error"}
19:24:45.977 MQT: stat/rollo/eg/esszimmer/RESULT = {"POWER2":"OFF"}
19:24:45.982 MQT: stat/rollo/eg/esszimmer/POWER2 = OFF (retained)
19:24:45.987 MQT: stat/rollo/eg/esszimmer/SHUTTER1 = 100 (retained)
19:24:45.993 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":100,"Direction":0,"Target":100,"Tilt":0}}
19:24:46.002 MQT: stat/rollo/eg/esszimmer/RESULT = {"Command":"Error"}
19:24:46.077 MQT: stat/rollo/eg/esszimmer/RESULT = {"Command":"Error"}
19:25:03.000 MQT: stat/rollo/eg/esszimmer/RESULT = {"POWER2":"ON"}
19:25:03.005 MQT: stat/rollo/eg/esszimmer/POWER2 = ON (retained)
19:25:03.012 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":100,"Direction":-1,"Target":0,"Tilt":0}}
19:25:03.017 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Button2":1}}
19:25:03.401 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":100,"Direction":-1,"Target":0,"Tilt":0}}
19:25:04.405 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":96,"Direction":-1,"Target":0,"Tilt":0}}
19:25:05.408 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":91,"Direction":-1,"Target":0,"Tilt":0}}
19:25:06.411 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":86,"Direction":-1,"Target":0,"Tilt":0}}
19:25:07.412 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":82,"Direction":-1,"Target":0,"Tilt":0}}
19:25:08.412 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":77,"Direction":-1,"Target":0,"Tilt":0}}
19:25:09.415 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":72,"Direction":-1,"Target":0,"Tilt":0}}
19:25:10.417 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":67,"Direction":-1,"Target":0,"Tilt":0}}
19:25:11.419 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":63,"Direction":-1,"Target":0,"Tilt":0}}
19:25:12.420 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":58,"Direction":-1,"Target":0,"Tilt":0}}
19:25:13.420 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":53,"Direction":-1,"Target":0,"Tilt":0}}
19:25:14.420 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":48,"Direction":-1,"Target":0,"Tilt":0}}
19:25:15.422 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":44,"Direction":-1,"Target":0,"Tilt":0}}
19:25:16.421 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":39,"Direction":-1,"Target":0,"Tilt":0}}
19:25:17.423 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":34,"Direction":-1,"Target":0,"Tilt":0}}
19:25:18.426 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":29,"Direction":-1,"Target":0,"Tilt":0}}
19:25:19.429 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":25,"Direction":-1,"Target":0,"Tilt":0}}
19:25:20.430 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":20,"Direction":-1,"Target":0,"Tilt":0}}
19:25:21.433 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":15,"Direction":-1,"Target":0,"Tilt":0}}
19:25:22.436 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":10,"Direction":-1,"Target":0,"Tilt":0}}
19:25:23.438 MQT: stat/rollo/eg/esszimmer/RESULT = {"Shutter1":{"Position":6,"Direction":-1,"Target":0,"Tilt":0}}

TO REPRODUCE

Steps to reproduce the behavior: -shutter mode

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.

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

stefanbode commented 1 year ago

19085 is not reproduceable. This is just because of missing index to the operation. I do not see a connection to this here. It may that we have a breaking change with long press. In the old versions you could asssign a long press event. e.g. move all shutter. Anyhow quite more common on the long press event is, that the shutter stop after releasing the button. Am I right that you configured the "close all" to the long press event? We have not made any changes to the esp8266. but the esp32 has way more options now. Therfore we have flexibility here to make some additional tweaks

stefanbode commented 1 year ago

e.g. we can supress the stop of the local shutter if the long press event is configured. May this help?`Easy fix

florian-reus commented 1 year ago

sorry, I was not precise. I only use button control -- ShutterButton command. No long press defined.

Am Mi., 2. Aug. 2023 um 09:47 Uhr schrieb stefanbode < @.***>:

e.g. we can supress the stop of the local shutter if the long press event is configured. May this help?`Easy fix

— Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/19234#issuecomment-1661684061, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVFZKAI2JBRCHLP6QHH6HTXTIAYXANCNFSM6AAAAAA26VK7UI . You are receiving this because you authored the thread.Message ID: @.***>

florian-reus commented 1 year ago

tested now - no difference with longpress on or off (setoption73). shutter stops when I release the longpress

Am Mi., 2. Aug. 2023 um 09:47 Uhr schrieb stefanbode < @.***>:

e.g. we can supress the stop of the local shutter if the long press event is configured. May this help?`Easy fix

— Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/19234#issuecomment-1661684061, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVFZKAI2JBRCHLP6QHH6HTXTIAYXANCNFSM6AAAAAA26VK7UI . You are receiving this because you authored the thread.Message ID: @.***>

stefanbode commented 1 year ago

hi @florian-reus . I still did not get it. Specially because there some goupings defined. Pls can you specify what you do expect on which button event. As said the long-press event for shutters changed in the way that the shutter moves as long as you press and as soon as you release it stops moving. this works fine with ONE shutter. looking forward to hear from you. there is no longpress option required. the shutterbutton has an option for 1,2,3, press and hold=long press

If I understand your problem right:

stefanbode commented 1 year ago

@florian-reus : Pls take a look on the submitted change. The local shutter will NOT stop after releasing the button if you have enabled the group topic for the HOLD event. In the shutterbutton definition the BOLD "1" is the one that changes the behavior. If there is no MQTT broadcast the local shutter will stop after releasing the button ShutterButton1 1 100 50 74 100 - - - 1 1 ShutterButton1 2 0 50 24 0 - - - 1 1

florian-reus commented 1 year ago

tested on 13.1.0 - works again as desired, no config change done.