mirror of https://github.com/arendst/Tasmota.git
Change command ``Timers`` layout of JSON message changed to single line
This commit is contained in:
parent
d76868e136
commit
912eedd76d
|
@ -3,11 +3,16 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
## [Unreleased] - Development
|
||||
|
||||
## [9.4.0.5]
|
||||
### Changed
|
||||
- Allow longer MQTT response messages by removing fixed memory buffer with size 1040 to heap allocated buffer
|
||||
- Command ``Timers`` layout of JSON message changed to single line
|
||||
|
||||
## [9.4.0.4]
|
||||
### Added
|
||||
- Version bump to signal new features to Hass
|
||||
- Support for BM8563 RTC chip (I2C) found in M5Stack Core2 and M5StickC
|
||||
- Command ``Status0`` providing all status in one line
|
||||
- Command ``Status0`` providing all status information on a single line
|
||||
|
||||
### Changed
|
||||
- IRremoteESP8266 library from v2.7.16 to v2.7.18
|
||||
|
|
|
@ -76,7 +76,7 @@ The binaries can be downloaded from either https://github.com/arendst/Tasmota/tr
|
|||
|
||||
[Complete list](BUILDS.md) of available feature and sensors.
|
||||
|
||||
## Changelog v9.4.0.4
|
||||
## Changelog v9.4.0.5
|
||||
### Added
|
||||
- Command ``Status0`` providing all status in one line
|
||||
- Initial support for optional ``Template`` JSON fieldpair ``"CMND":"<any template related command>|<any template related command>|..."`` [#11788](https://github.com/arendst/Tasmota/issues/11788)
|
||||
|
@ -94,6 +94,8 @@ The binaries can be downloaded from either https://github.com/arendst/Tasmota/tr
|
|||
|
||||
### Changed
|
||||
- IRremoteESP8266 library from v2.7.16 to v2.7.18
|
||||
- Allow longer MQTT response messages by removing fixed memory buffer with size 1040 to heap allocated buffer
|
||||
- Command ``Timers`` layout of JSON message changed to single line
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -20,6 +20,6 @@
|
|||
#ifndef _TASMOTA_VERSION_H_
|
||||
#define _TASMOTA_VERSION_H_
|
||||
|
||||
const uint32_t VERSION = 0x09040004;
|
||||
const uint32_t VERSION = 0x09040005;
|
||||
|
||||
#endif // _TASMOTA_VERSION_H_
|
||||
|
|
|
@ -460,7 +460,14 @@ void CmndTimers(void)
|
|||
Settings.flag3.timers_enable = !Settings.flag3.timers_enable; // CMND_TIMERS
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MQTT_DATA_STRING
|
||||
Response_P(PSTR("{\"" D_CMND_TIMERS "\":\"%s\""), GetStateText(Settings.flag3.timers_enable));
|
||||
for (uint32_t i = 0; i < MAX_TIMERS; i++) {
|
||||
ResponseAppend_P(PSTR(","));
|
||||
PrepShowTimer(i +1);
|
||||
}
|
||||
ResponseJsonEnd();
|
||||
#else
|
||||
ResponseCmndStateText(Settings.flag3.timers_enable); // CMND_TIMERS
|
||||
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, XdrvMailbox.command);
|
||||
|
||||
|
@ -481,6 +488,7 @@ void CmndTimers(void)
|
|||
}
|
||||
}
|
||||
ResponseClear();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef USE_SUNRISE
|
||||
|
|
Loading…
Reference in New Issue