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
21.71k stars 4.72k forks source link

No sound after SetOption111 switching #21474

Closed christianloesel closed 1 week ago

christianloesel commented 1 month ago

PROBLEM DESCRIPTION

I'm using Tasmota32 14.0.0 on 4 Sonoff NSPanel. The Panels have a Buzzer onboard and I use it for accoustic feedback. But for warning sounds I want to switch to PWM Mode with SetOption111 1. That works fine. But switching back to the former mode with SetOptions111 0 does turn off the buzzer completely until I reboot. Within several tries I found out, that this only occurs, after using the buzzer with SetOptions111 1. Turning it off without playing any sound works as expected.

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:
13:51:48.403 MQT: tasmota_62DD24/stat/RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":98,"Free":413,"Rules":"ON CustomSend DO RuleTimer1 90 ENDON ON Rules#RuleTimer=1 DO CustomSend pageType~pageStartup ENDON"}}
13:51:48.632 MQT: tasmota_62DD24/stat/RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":169,"Free":342,"Rules":"on Button1#state do Publish %topic%/tele/RESULT {\"CustomRecv\":\"event,button1\"} endon on Button2#state do Publish %topic%/tele/RESULT {\"CustomRecv\":\"event,button2\"} endon"}}
13:51:48.886 MQT: tasmota_62DD24/stat/RESULT = {"Rule3":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":31,"Free":480,"Rules":"on CustomRecv do Buzzer 1 endon"}}
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
13:52:47.579 CMD: SetOption111 1
13:52:47.581 SRC: WebConsole from 10.3.141.1
13:52:47.582 CMD: Grp 0, Cmd 'SETOPTION', Idx 111, Len 1, Pld 1, Data '1'
13:52:47.586 MQT: tasmota_62DD24/stat/RESULT = {"SetOption111":"ON"}
13:52:48.019 CFG: Saved, Anzahl 2409, Bytes 4096
13:52:49.122 CMD: Buzzer 1
13:52:49.124 SRC: WebConsole from 10.3.141.1
13:52:49.125 CMD: Grp 0, Cmd 'BUZZER', Idx 1, Len 1, Pld 1, Data '1'
13:52:49.127 BUZ: Count 1(2), Time 1/1, Tune 0x00000000(0x00000000), Size 0, Mode 1
13:52:49.132 MQT: tasmota_62DD24/stat/RESULT = {"Buzzer":"Done"}
13:52:51.476 CMD: SetOption111 0
13:52:51.478 SRC: WebConsole from 10.3.141.1
13:52:51.479 CMD: Grp 0, Cmd 'SETOPTION', Idx 111, Len 1, Pld 0, Data '0'
13:52:51.483 MQT: tasmota_62DD24/stat/RESULT = {"SetOption111":"OFF"}
13:52:52.019 CFG: Saved, Anzahl 2410, Bytes 4096
13:52:52.578 CMD: Buzzer 1
13:52:52.580 SRC: WebConsole from 10.3.141.1
13:52:52.581 CMD: Grp 0, Cmd 'BUZZER', Idx 1, Len 1, Pld 1, Data '1'
13:52:52.583 BUZ: Count 1(2), Time 1/1, Tune 0x00000000(0x00000000), Size 0, Mode 0
13:52:52.587 MQT: tasmota_62DD24/stat/RESULT = {"Buzzer":"Done"}

TO REPRODUCE

Steps to reproduce the behavior: SetOption111 1 Buzzer 1 SetOption111 0 Buzzer 1

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen. Hear sound on second Buzzer command

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)

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 week ago

This issue was automatically closed because of being stale. Feel free to open a new one if you still experience this problem.