mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 08:00:42 +08:00
Compare commits
4 Commits
c181581d9c
...
b16f265a4a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b16f265a4a | ||
|
|
19ed04f2f5 | ||
|
|
e174a73f52 | ||
|
|
e2c482686d |
@ -88,5 +88,5 @@ class BinarySensor(MIoTPropertyEntity, BinarySensorEntity):
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
"""On/Off state. True if the binary sensor is on, False otherwise."""
|
||||
return self._value is True
|
||||
"""On/Off state. False if the binary sensor is on, False otherwise."""
|
||||
return self._value is False
|
||||
|
||||
@ -174,5 +174,14 @@
|
||||
"service:003:property:001:valuelist:000": "Idle",
|
||||
"service:003:property:001:valuelist:001": "Dry"
|
||||
}
|
||||
},
|
||||
"urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1": {
|
||||
"en": {
|
||||
"service:002:property:001": "Soil Moisture"
|
||||
},
|
||||
"zh-Hans": {
|
||||
"service:002:property:001": "土壤湿度",
|
||||
"service:002:property:003": "光照强度"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -85,39 +85,47 @@ urn:miot-spec-v2:device:thermostat:0000A031:suittc-wk168:1:
|
||||
prop.2.3:
|
||||
value-list:
|
||||
- value: 1
|
||||
description: one
|
||||
description: '1'
|
||||
- value: 2
|
||||
description: two
|
||||
description: '2'
|
||||
- value: 3
|
||||
description: three
|
||||
description: '3'
|
||||
- value: 4
|
||||
description: four
|
||||
description: '4'
|
||||
- value: 5
|
||||
description: five
|
||||
description: '5'
|
||||
- value: 6
|
||||
description: six
|
||||
description: '6'
|
||||
- value: 7
|
||||
description: seven
|
||||
description: '7'
|
||||
- value: 8
|
||||
description: eight
|
||||
description: '8'
|
||||
- value: 9
|
||||
description: nine
|
||||
description: '9'
|
||||
- value: 10
|
||||
description: ten
|
||||
description: '10'
|
||||
- value: 11
|
||||
description: eleven
|
||||
description: '11'
|
||||
- value: 12
|
||||
description: twelve
|
||||
description: '12'
|
||||
- value: 13
|
||||
description: thirteen
|
||||
description: '13'
|
||||
- value: 14
|
||||
description: fourteen
|
||||
description: '14'
|
||||
- value: 15
|
||||
description: fifteen
|
||||
description: '15'
|
||||
- value: 16
|
||||
description: sixteen
|
||||
description: '16'
|
||||
urn:miot-spec-v2:device:outlet:0000A002:chuangmi-212a01:3:
|
||||
prop.5.1:
|
||||
expr: round(src_value*6/1000000, 3)
|
||||
urn:miot-spec-v2:device:outlet:0000A002:chuangmi-212a01:1: urn:miot-spec-v2:device:outlet:0000A002:chuangmi-212a01:3
|
||||
urn:miot-spec-v2:device:outlet:0000A002:chuangmi-212a01:2: urn:miot-spec-v2:device:outlet:0000A002:chuangmi-212a01:3
|
||||
urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1:
|
||||
prop.2.1:
|
||||
name: soil-moisture
|
||||
icon: mdi:watering-can
|
||||
prop.2.2:
|
||||
name: soil-ec
|
||||
icon: mdi:sprout-outline
|
||||
unit: μS/cm
|
||||
|
||||
Loading…
Reference in New Issue
Block a user