|
|
@ -21,7 +21,7 @@ namespace hass_workstation_service.Domain.Sensors
|
|
|
|
Name = this.Name,
|
|
|
|
Name = this.Name,
|
|
|
|
Unique_id = this.Id.ToString(),
|
|
|
|
Unique_id = this.Id.ToString(),
|
|
|
|
Device = this.Publisher.DeviceConfigModel,
|
|
|
|
Device = this.Publisher.DeviceConfigModel,
|
|
|
|
State_topic = $"homeassistant/sensor/{this.Name}/state",
|
|
|
|
State_topic = $"homeassistant/sensor/{Publisher.DeviceConfigModel.Name}/{this.Name}/state",
|
|
|
|
Icon = "mdi:chart-areaspline",
|
|
|
|
Icon = "mdi:chart-areaspline",
|
|
|
|
Unit_of_measurement = "%"
|
|
|
|
Unit_of_measurement = "%"
|
|
|
|
});
|
|
|
|
});
|
|
|
|