mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
Prevent shutter MQTT broadcast with activated ShutterLock (#20827)
This commit is contained in:
parent
3bbc33f554
commit
9026b95f45
@ -25,6 +25,7 @@ All notable changes to this project will be documented in this file.
|
||||
- HASPmota fix and improve demo with pixel-perfect fonts (#20734)
|
||||
- NeoPool webUI pH alarms (4 & 5) completed (#20743)
|
||||
- Matter reduce memory usage when reading with wildcards (#20809)
|
||||
- Prevent shutter MQTT broadcast with activated ShutterLock
|
||||
|
||||
### Fixed
|
||||
- ESP32 PWM activity on unconfigured PWM GPIOs (#20732)
|
||||
|
@ -303,7 +303,7 @@ bool ShutterButtonHandlerMulti(void)
|
||||
char scommand[CMDSZ];
|
||||
char stopic[TOPSZ];
|
||||
for (uint32_t i = 0; i < MAX_SHUTTERS_ESP32; i++) {
|
||||
if ((i==shutter_index) || (ShutterSettings.shutter_button[button_index].mqtt_all)) {
|
||||
if (((i==shutter_index) || (ShutterSettings.shutter_button[button_index].mqtt_all)) && 0 == (ShutterSettings.shutter_options[i] & 2) ) {
|
||||
snprintf_P(scommand, sizeof(scommand),PSTR("ShutterPosition%d"), i+1);
|
||||
GetGroupTopic_P(stopic, scommand, SET_MQTT_GRP_TOPIC);
|
||||
Response_P("%d", position);
|
||||
|
@ -1092,7 +1092,7 @@ bool ShutterButtonHandler(void)
|
||||
char scommand[CMDSZ];
|
||||
char stopic[TOPSZ];
|
||||
for (uint32_t i = 0; i < MAX_SHUTTERS; i++) {
|
||||
if ((i==shutter_index) || (Settings->shutter_button[button_index] & (0x01<<30))) {
|
||||
if ( ((i==shutter_index) || (Settings->shutter_button[button_index] & (0x01<<30))) && 0 == (Settings->shutter_options[i] & 2) ) {
|
||||
snprintf_P(scommand, sizeof(scommand),PSTR("ShutterPosition%d"), i+1);
|
||||
GetGroupTopic_P(stopic, scommand, SET_MQTT_GRP_TOPIC);
|
||||
Response_P("%d", position);
|
||||
|
Loading…
x
Reference in New Issue
Block a user