File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2919,6 +2919,11 @@ void SetupMQTTClient() {
29192919 announce (" RFID" , " sensor" );
29202920 announce (" RFIDLastRead" , " sensor" );
29212921
2922+ #if ENABLE_OCPP
2923+ announce (" OCPP" , " sensor" );
2924+ announce (" OCPPConnection" , " sensor" );
2925+ #endif // ENABLE_OCPP
2926+
29222927 optional_payload = jsna (" state_topic" , String (MQTTprefix + " /LEDColorOff" )) + jsna (" command_topic" , String (MQTTprefix + " /Set/ColorOff" ));
29232928 announce (" LED Color Off" , " text" );
29242929 optional_payload = jsna (" state_topic" , String (MQTTprefix + " /LEDColorNormal" )) + jsna (" command_topic" , String (MQTTprefix + " /Set/ColorNormal" ));
@@ -2934,11 +2939,6 @@ void SetupMQTTClient() {
29342939 optional_payload += String (R"( , "options" : ["On", "Off"])" );
29352940 announce (" Custom Button" , " select" );
29362941
2937- #if ENABLE_OCPP
2938- announce (" OCPP" , " sensor" );
2939- announce (" OCPPConnection" , " sensor" );
2940- #endif // ENABLE_OCPP
2941-
29422942 optional_payload = jsna (" device_class" ," duration" ) + jsna (" unit_of_measurement" ," s" );
29432943 announce (" SolarStopTimer" , " sensor" );
29442944 // set the parameters for and announce diagnostic sensor entities:
You can’t perform that action at this time.
0 commit comments