Skip to content

Commit

Permalink
main.cpp: fix HomeAssistant MQTT discovery error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed Oct 26, 2024
1 parent a6a039a commit 0816bd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SmartEVSE-3/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,11 @@ void SetupMQTTClient() {
announce("RFID", "sensor");
announce("RFIDLastRead", "sensor");

#if ENABLE_OCPP
announce("OCPP", "sensor");
announce("OCPPConnection", "sensor");
#endif //ENABLE_OCPP

optional_payload = jsna("state_topic", String(MQTTprefix + "/LEDColorOff")) + jsna("command_topic", String(MQTTprefix + "/Set/ColorOff"));
announce("LED Color Off", "text");
optional_payload = jsna("state_topic", String(MQTTprefix + "/LEDColorNormal")) + jsna("command_topic", String(MQTTprefix + "/Set/ColorNormal"));
Expand All @@ -2934,11 +2939,6 @@ void SetupMQTTClient() {
optional_payload += String(R"(, "options" : ["On", "Off"])");
announce("Custom Button", "select");

#if ENABLE_OCPP
announce("OCPP", "sensor");
announce("OCPPConnection", "sensor");
#endif //ENABLE_OCPP

optional_payload = jsna("device_class","duration") + jsna("unit_of_measurement","s");
announce("SolarStopTimer", "sensor");
//set the parameters for and announce diagnostic sensor entities:
Expand Down

0 comments on commit 0816bd2

Please sign in to comment.