mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Fix custom topic
This commit is contained in:
parent
3e6c9a67ce
commit
93529509d6
@ -350,10 +350,10 @@ void onMqttConnect(esp_mqtt_client_handle_t client)
|
|||||||
// mqttSubscribeTo(mqttNodeTopic + subtopic);
|
// mqttSubscribeTo(mqttNodeTopic + subtopic);
|
||||||
|
|
||||||
#if defined(HASP_USE_CUSTOM)
|
#if defined(HASP_USE_CUSTOM)
|
||||||
subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
String subtopic = F(MQTT_TOPIC_CUSTOM "/#");
|
||||||
mqttSubscribeTo(mqttGroupTopic + subtopic);
|
mqttSubscribeTo(mqttGroupCommandTopic + subtopic);
|
||||||
mqttSubscribeTo(mqttNodeTopic + subtopic);
|
mqttSubscribeTo(mqttNodeCommandTopic + subtopic);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Home Assistant auto-configuration */
|
/* Home Assistant auto-configuration */
|
||||||
#ifdef HASP_USE_HA
|
#ifdef HASP_USE_HA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user