Add vicare buffer top/main temperature sensors (#79466)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
fixes undefined
pull/86079/head
Hans Oischinger 2023-01-17 11:34:38 +01:00 committed by GitHub
parent 566c0f63bd
commit 1e9de194d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -452,6 +452,22 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.TOTAL_INCREASING,
),
ViCareSensorEntityDescription(
key="buffer top temperature",
name="Buffer top temperature",
native_unit_of_measurement=TEMP_CELSIUS,
value_getter=lambda api: api.getBufferTopTemperature(),
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
ViCareSensorEntityDescription(
key="buffer main temperature",
name="Buffer main temperature",
native_unit_of_measurement=TEMP_CELSIUS,
value_getter=lambda api: api.getBufferMainTemperature(),
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
)
CIRCUIT_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (