mirror of
https://github.com/Andre0512/hon.git
synced 2024-12-22 18:55:31 +00:00
Improve washing machine sensors
This commit is contained in:
parent
0d575f65f9
commit
077bded6dd
|
@ -27,15 +27,22 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = {
|
||||||
"WM": (
|
"WM": (
|
||||||
HonBinarySensorEntityDescription(
|
HonBinarySensorEntityDescription(
|
||||||
key="attributes.lastConnEvent.category",
|
key="attributes.lastConnEvent.category",
|
||||||
name="Connection",
|
name="Remote Control",
|
||||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
||||||
on_value="CONNECTED",
|
on_value="CONNECTED",
|
||||||
|
icon="mdi:remote"
|
||||||
),
|
),
|
||||||
HonBinarySensorEntityDescription(
|
HonBinarySensorEntityDescription(
|
||||||
key="doorLockStatus",
|
key="doorLockStatus",
|
||||||
|
name="Door Lock",
|
||||||
|
device_class=BinarySensorDeviceClass.LOCK,
|
||||||
|
on_value="0",
|
||||||
|
),
|
||||||
|
HonBinarySensorEntityDescription(
|
||||||
|
key="doorStatus",
|
||||||
name="Door",
|
name="Door",
|
||||||
device_class=BinarySensorDeviceClass.DOOR,
|
device_class=BinarySensorDeviceClass.DOOR,
|
||||||
on_value="0",
|
on_value="1",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
"TD": (
|
"TD": (
|
||||||
|
|
|
@ -85,7 +85,7 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="spinSpeed",
|
key="spinSpeed",
|
||||||
name="Spin Speed",
|
name="Spin Speed",
|
||||||
icon="mdi:timer",
|
icon="mdi:speedometer",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
native_unit_of_measurement=UnitOfTime.MINUTES,
|
native_unit_of_measurement=UnitOfTime.MINUTES,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue