mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +03:00
dallas dev_cla
This commit is contained in:
@@ -543,6 +543,8 @@ void TemperatureSensor::publish_values(const bool force) {
|
||||
config["uniq_id"] = uniq_s;
|
||||
config["def_ent_id"] = (std::string) "sensor." + uniq_s;
|
||||
config["name"] = (const char *)sensor.name();
|
||||
config["stat_cla"] = "measurement";
|
||||
config["dev_cla"] = "temperature";
|
||||
|
||||
// dev section with model is only created on the 1st sensor
|
||||
Mqtt::add_ha_dev_section(config.as<JsonObject>(), "Temperature Sensors", nullptr, "EMS-ESP", EMSESP_APP_VERSION, !ha_dev_created);
|
||||
|
||||
Reference in New Issue
Block a user