Compare commits

...

4 Commits

Author SHA1 Message Date
Gerrett84
b16f265a4a
Merge e2c482686d into 19ed04f2f5 2025-03-25 11:32:36 +08:00
whoami
19ed04f2f5
fix: correct unit,icon and translations for hhcc-v1 (#927)
Some checks failed
Tests / check-rule-format (push) Has been cancelled
Validate / validate-hassfest (push) Has been cancelled
Validate / validate-hacs (push) Has been cancelled
Validate / validate-lint (push) Has been cancelled
Validate / validate-setup (push) Has been cancelled
2025-03-25 09:54:02 +08:00
dw881114
e174a73f52
Update spec_modify.yaml (#921)
Some checks are pending
Tests / check-rule-format (push) Waiting to run
Validate / validate-hassfest (push) Waiting to run
Validate / validate-hacs (push) Waiting to run
Validate / validate-lint (push) Waiting to run
Validate / validate-setup (push) Waiting to run
2025-03-24 16:34:48 +08:00
Gerrett84
e2c482686d
Fix wrong binary sensor state 2025-02-08 15:57:00 +01:00
3 changed files with 35 additions and 18 deletions

View File

@ -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

View File

@ -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": "光照强度"
}
}
}

View File

@ -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