Skip to content

Commit

Permalink
Fix Domoticz re-subscribe on MQTT reconnect. Regression from v13.4.0.3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed May 16, 2024
1 parent f602470 commit 6ba5938
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ All notable changes to this project will be documented in this file.
- ESP32 compiler option from `target-align` to `no-target-align` (#21407)

### Fixed
- Domoticz re-subscribe on MQTT reconnect. Regression from v13.4.0.3 (#21281)

### Removed
- Support of old insecure fingerprint algorithm - deprecated since v8.4.0 (#21417)
- Support of old insecure fingerprint algorithm. Deprecated since v8.4.0 (#21417)

## [Released]

Expand Down
3 changes: 2 additions & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- ESP32 compiler option from `target-align` to `no-target-align` [#21407](https://github.com/arendst/Tasmota/issues/21407)

### Fixed
- Domoticz re-subscribe on MQTT reconnect. Regression from v13.4.0.3 [#21281](https://github.com/arendst/Tasmota/issues/21281)

### Removed
- Support of old insecure fingerprint algorithm - deprecated since v8.4.0 [#21417](https://github.com/arendst/Tasmota/issues/21417)
- Support of old insecure fingerprint algorithm. Deprecated since v8.4.0 [#21417](https://github.com/arendst/Tasmota/issues/21417)
3 changes: 2 additions & 1 deletion tasmota/tasmota_xdrv_driver/xdrv_07_domoticz.ino
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ void DomoticzMqttSubscribe(void) {
Domoticz->subscribe = false;
MqttUnsubscribe(stopic);
}
if (!Domoticz->subscribe && any_relay) {
// if (!Domoticz->subscribe && any_relay) { // Fails on MQTT server reconnect
if (any_relay) {
Domoticz->subscribe = true;
MqttSubscribe(stopic);
}
Expand Down

0 comments on commit 6ba5938

Please sign in to comment.