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