Skip to content

Commit fda6231

Browse files
committed
add val_tpl on HA discovery configuration
1 parent 2744510 commit fda6231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/ZgatewayRF.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void RFtoMQTTdiscovery(SIGNAL_SIZE_UL_ULL MQTTvalue) { //on the fly switch creat
4242
char val[11];
4343
sprintf(val, "%lu", MQTTvalue);
4444
Log.trace(F("switchRFDiscovery" CR));
45-
char* switchRF[8] = {"switch", val, "", "", "", val, "", ""};
45+
char* switchRF[8] = {"switch", val, "", "", jsonVal, val, "", ""};
4646
//component type,name,availability topic,device class,value template,payload on, payload off, unit of measurement
4747

4848
Log.trace(F("CreateDiscoverySwitch: %s" CR), switchRF[1]);

0 commit comments

Comments
 (0)