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

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

Closed
12 of 14 tasks
florian-reus opened this issue Jul 31, 2023 · 7 comments · Fixed by #19263
Closed
12 of 14 tasks

Comments

@florian-reus
Copy link

florian-reus commented Jul 31, 2023

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 #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!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in discussions
  • Searched the problem in the docs
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): different 2 gang switches, Athom and other brand
  • Tasmota binary firmware version number used: 13.0.0
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: none, OTA
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:
19:50:06.351 CMD: Backlog Template; Module; GPIO 255
19:50:06.426 MQT: stat/rollo/eg/esszimmer/RESULT = {"NAME":"Rollo","GPIO":[1,0,321,0,0,33,0,0,32,224,0,225,320,0],"FLAG":0,"BASE":18}
19:50:06.651 MQT: stat/rollo/eg/esszimmer/RESULT = {"Module":{"0":"Rollo"}}
19:50:06.955 MQT: stat/rollo/eg/esszimmer/RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"321":"Led_i2"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"33":"Button2"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO12":{"32":"Button1"},"GPIO13":{"224":"Relay1"},"GPIO14":{"0":"None"},"GPIO15":{"225":"Relay2"},"GPIO16":{"320":"Led_i1"},"GPIO17":{"0":"None"}}
  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here: no rules used 

  • Provide the output of this command: Status 0:
  STATUS 0 output here:
19:54:54.870 CMD: status 0
19:54:54.879 MQT: stat/rollo/eg/esszimmer/STATUS = {"Status":{"Module":0,"DeviceName":"rollo_esszimmer","FriendlyName":["rollo_esszimmer",""],"Topic":"esszimmer","ButtonTopic":"0","Power":0,"PowerOnState":0,"LedState":0,"LedMask":"FFFF","SaveData":1,"SaveState":0,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":1,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
19:54:54.885 MQT: stat/rollo/eg/esszimmer/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota/release/tasmota.bin.gz","RestartReason":"Software/System restart","Uptime":"0T00:33:01","StartupUTC":"2023-07-31T18:21:53","Sleep":100,"CfgHolder":4617,"BootCount":1542,"BCResetTime":"2021-11-13T21:45:22","SaveCount":4218,"SaveAddress":"F9000"}}
19:54:54.889 MQT: stat/rollo/eg/esszimmer/STATUS2 = {"StatusFWR":{"Version":"13.0.0(tasmota)","BuildDateTime":"2023-06-26T10:42:07","Boot":31,"Core":"2_7_4_9","SDK":"2.2.2-dev(38a443e)","CpuFrequency":80,"Hardware":"ESP8266EX","CR":"372/699"}}
19:54:54.894 MQT: stat/rollo/eg/esszimmer/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["meta_legacy",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["8000C02A","0F05C80001000600003C5A0A002800000000","C0008080","00006000","00004000","00000000"]}}
19:54:54.907 MQT: stat/rollo/eg/esszimmer/STATUS4 = {"StatusMEM":{"ProgramSize":634,"Free":368,"Heap":22,"ProgramFlashSize":1024,"FlashSize":2048,"FlashChipId":"1540C8","FlashFrequency":40,"FlashMode":"DOUT","Features":["00000809","8F9AC787","04368001","000000CF","010013C0","C000F981","00004004","00001000","54000020","00000080"],"Drivers":"1,2,3,4,5,6,7,8,9,10,12,16,18,19,20,21,22,24,26,27,29,30,35,37,45,62,68","Sensors":"1,2,3,4,5,6","I2CDriver":"7"}}
19:54:54.915 MQT: stat/rollo/eg/esszimmer/STATUS5 = {"StatusNET":{"Hostname":"rollo-esszimmer","IPAddress":"192.168.9.213","Gateway":"192.168.9.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.9.1","DNSServer2":"0.0.0.0","Mac":"E8:68:E7:6C:EA:60","Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
19:54:54.921 MQT: stat/rollo/eg/esszimmer/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.9.44","MqttPort":1883,"MqttClientMask":"esszimmer","MqttClient":"esszimmer","MqttUser":"mqtt","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
19:54:54.928 MQT: stat/rollo/eg/esszimmer/STATUS7 = {"StatusTIM":{"UTC":"2023-07-31T18:54:54","Local":"2023-07-31T19:54:54","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":"+01:00","Sunrise":"05:22","Sunset":"20:30"}}
19:54:54.934 MQT: stat/rollo/eg/esszimmer/STATUS10 = {"StatusSNS":{"Time":"2023-07-31T19:54:54","Shutter1":{"Position":0,"Direction":0,"Target":0,"Tilt":0}}}
19:54:54.940 MQT: stat/rollo/eg/esszimmer/STATUS11 = {"StatusSTS":{"Time":"2023-07-31T19:54:54","Uptime":"0T00:33:01","UptimeSec":1981,"Heap":22,"SleepMode":"Dynamic","Sleep":100,"LoadAvg":9,"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:54:54.946 MQT: stat/rollo/eg/esszimmer/STATUS13 = {"StatusSHT":{"SHT0":{"Relay1":1,"Relay2":2,"Open":280,"Close":270,"50perc":61,"Delay":10,"Opt":"0000","Calib":[1240,436,2916,900,1000],"Mode":"1"}}}
  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
  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

  • several shutters with same group topic
  • shutter button mode
  • 19:46:54.168 MQT: stat/rollo/eg/esszimmer/RESULT = {"ShutterButton1":"1 100 50 74 100 - - - 1 1|2 0 50 24 0 - - - 1 1"}
  • long press, so all other group topic shutters start
  • short start, immediate stop of local shutter
  • worked before 13.0.0 as described in manual

EXPECTED BEHAVIOUR

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

  • as before - also local shutter closes or opens

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
Copy link
Contributor

#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
Copy link
Contributor

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
Copy link
Author

florian-reus commented Aug 2, 2023 via email

@florian-reus
Copy link
Author

florian-reus commented Aug 3, 2023 via email

@stefanbode
Copy link
Contributor

stefanbode commented Aug 3, 2023

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:

  • you do not like that shutter1 stop after the "hold" and all other continue to move. Expected bahavior: also shutter1 continues

@stefanbode
Copy link
Contributor

@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
Copy link
Author

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

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

Successfully merging a pull request may close this issue.

2 participants