From b62c422f73036d1bbdb7c87e800fd580a2bd38b3 Mon Sep 17 00:00:00 2001 From: Federico Leoni Date: Tue, 3 Nov 2020 10:18:40 -0300 Subject: [PATCH] changed topic --- tasmota/support_switch.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support_switch.ino b/tasmota/support_switch.ino index 2c79c3ad0..9a694ba87 100644 --- a/tasmota/support_switch.ino +++ b/tasmota/support_switch.ino @@ -443,7 +443,7 @@ void MqttSwitchTopic(uint32_t switch_id, uint32_t MqttAction) { GetTextIndexed(mqttstate_str, sizeof(mqttstate_str), MqttAction, kSwitchPressStates); } Response_P(PSTR("{\"%s\":{\"Action\":\"%s\"}}"), GetSwitchText(switch_id -1).c_str(), mqttstate); - MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_SWITCH)); + MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_STAT, PSTR(D_JSON_SWITCH)); } }