Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions custom_components/plugwise/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
PlugwiseBinarySensorEntityDescription(
key=DHW_STATE,
translation_key=DHW_STATE,
entity_category=EntityCategory.DIAGNOSTIC,
),
PlugwiseBinarySensorEntityDescription(
key=FLAME_STATE,
Expand All @@ -80,10 +81,12 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
PlugwiseBinarySensorEntityDescription(
key=HEATING_STATE,
translation_key=HEATING_STATE,
entity_category=EntityCategory.DIAGNOSTIC,
),
PlugwiseBinarySensorEntityDescription(
key=COOLING_STATE,
translation_key=COOLING_STATE,
entity_category=EntityCategory.DIAGNOSTIC,
),
PlugwiseBinarySensorEntityDescription(
key=SECONDARY_BOILER_STATE,
Expand All @@ -93,6 +96,7 @@ class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
PlugwiseBinarySensorEntityDescription(
key=PLUGWISE_NOTIFICATION,
translation_key=PLUGWISE_NOTIFICATION,
entity_category=EntityCategory.DIAGNOSTIC,
),
)

Expand Down
8 changes: 8 additions & 0 deletions custom_components/plugwise/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
translation_key=INTENDED_BOILER_TEMP,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
Expand All @@ -142,6 +143,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
translation_key=OUTDOOR_TEMP,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
suggested_display_precision=1,
),
Expand All @@ -158,6 +160,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
translation_key=WATER_TEMP,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
Expand Down Expand Up @@ -393,12 +396,14 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
key="battery",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
key="illuminance",
native_unit_of_measurement=LIGHT_LUX,
device_class=SensorDeviceClass.ILLUMINANCE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
Expand All @@ -412,6 +417,7 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
key=VALVE_POS,
translation_key=VALVE_POS,
native_unit_of_measurement=PERCENTAGE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
Expand All @@ -433,13 +439,15 @@ class PlugwiseSensorEntityDescription(SensorEntityDescription):
translation_key=DHW_TEMP,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
PlugwiseSensorEntityDescription(
key=DHW_SETPOINT,
translation_key=DHW_SETPOINT,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
device_class=SensorDeviceClass.TEMPERATURE,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
)
Expand Down
Loading