mirror of https://github.com/arendst/Tasmota.git
Change MQTT Energy response topic to SENSOR
5.12.0i * Change MQTT response topic for Energy changes from ENERGY to SENSOR (#2229, #2251)
This commit is contained in:
parent
dabb4deefc
commit
c85edf15ac
|
@ -2,7 +2,8 @@
|
|||
* Add 16 timers using commands Timer and Timers (#1091)
|
||||
* Add commands Timer 0 to clear timer and Timer 1..16 to copy timer
|
||||
* Add optional Timer configuration webpage to be enabled in user_config.h with define USE_TIMERS_WEB
|
||||
* Add Home Assistant MQTT Discovery for Buttons (#2277)
|
||||
* Change MQTT response topic for Energy changes from ENERGY to SENSOR (#2229, #2251)
|
||||
* Add Home Assistant MQTT Discovery for Buttons and change SetOption19 response (#2277)
|
||||
* Change webpage parameter communication
|
||||
*
|
||||
* 5.12.0h
|
||||
|
|
|
@ -778,7 +778,7 @@ void EnergyMqttShow()
|
|||
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("{\"" D_JSON_TIME "\":\"%s\""), GetDateAndTime(DT_LOCAL).c_str());
|
||||
EnergyShow(1);
|
||||
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s}"), mqtt_data);
|
||||
MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_ENERGY), Settings.flag.mqtt_sensor_retain);
|
||||
MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_SENSOR), Settings.flag.mqtt_sensor_retain);
|
||||
energy_power_delta = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue