|
|
@ -16,7 +16,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/{this.Domain}/{Publisher.DeviceConfigModel.Name}/{this.Name}/state",
|
|
|
|
State_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/{this.ObjectId}/state",
|
|
|
|
Icon = "mdi:clock-time-three-outline",
|
|
|
|
Icon = "mdi:clock-time-three-outline",
|
|
|
|
Availability_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/availability",
|
|
|
|
Availability_topic = $"homeassistant/{this.Domain}/{Publisher.DeviceConfigModel.Name}/availability",
|
|
|
|
Device_class = "timestamp"
|
|
|
|
Device_class = "timestamp"
|
|
|
|