mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
vicare: Add additional temperature sensors (#79426)
Add additional temperature sensors New datapoints in PyVicare API
This commit is contained in:
parent
2de273500e
commit
94c825cf4f
@ -86,6 +86,38 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="primary_circuit_supply_temperature",
|
||||||
|
name="Primary Circuit Supply Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getSupplyTemperaturePrimaryCircuit(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="primary_circuit_return_temperature",
|
||||||
|
name="Primary Circuit Return Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getReturnTemperaturePrimaryCircuit(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="secondary_circuit_supply_temperature",
|
||||||
|
name="Secondary Circuit Supply Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getSupplyTemperatureSecondaryCircuit(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="secondary_circuit_return_temperature",
|
||||||
|
name="Secondary Circuit Return Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getReturnTemperatureSecondaryCircuit(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
key="hotwater_out_temperature",
|
key="hotwater_out_temperature",
|
||||||
name="Hot Water Out Temperature",
|
name="Hot Water Out Temperature",
|
||||||
@ -94,6 +126,22 @@ GLOBAL_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
|
|||||||
device_class=SensorDeviceClass.TEMPERATURE,
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="hotwater_max_temperature",
|
||||||
|
name="Hot Water Max Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getDomesticHotWaterMaxTemperature(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
ViCareSensorEntityDescription(
|
||||||
|
key="hotwater_min_temperature",
|
||||||
|
name="Hot Water Min Temperature",
|
||||||
|
native_unit_of_measurement=TEMP_CELSIUS,
|
||||||
|
value_getter=lambda api: api.getDomesticHotWaterMinTemperature(),
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
ViCareSensorEntityDescription(
|
ViCareSensorEntityDescription(
|
||||||
key="hotwater_gas_consumption_today",
|
key="hotwater_gas_consumption_today",
|
||||||
name="Hot water gas consumption today",
|
name="Hot water gas consumption today",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user