unfinished voltage hass channel test

This commit is contained in:
openshwprojects
2023-05-01 16:00:49 +02:00
parent e63acb4c61
commit dfc12fa76d
2 changed files with 36 additions and 0 deletions

View File

@ -208,6 +208,9 @@ HassDeviceInfo* hass_init_device_info(ENTITY_TYPE type, int index, char* payload
isSensor = true;
sprintf(g_hassBuffer, "%s Voltage", CFG_GetShortDeviceName());
break;
case VOLTAGE_SENSOR:
sprintf(g_hassBuffer, "%s Voltage", CFG_GetShortDeviceName());
break;
}
cJSON_AddStringToObject(info->root, "name", g_hassBuffer);
cJSON_AddStringToObject(info->root, "~", CFG_GetMQTTClientId()); //base topic