-
Hi @make-all, I have an AlecoAir D12 ECO 2.0 dehumidifier for which I'm unable to identify the bitfield's value correctly. Any suggestions? Query Properties
{
"code": "fault",
"custom_name": "",
"dp_id": 19,
"time": 1697755687909,
"value": 1
} Get the specifications and properties of the device
{
"code": "fault",
"name": "故障告警",
"type": "Bitmap",
"values": "{\"label\":[\"E1\",\"E2\"]}"
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
So it is likely that bit 0 (value 1) is the Tank full indicator, and bit 1 (value 2) is whatever error E2 is.
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the suggestion. - entity: binary_sensor
class: problem
name: Tank full
icon: "mdi:cup-water"
optional: true
dps:
- id: 19
type: bitfield
name: sensor
mapping:
- dps_val: 1
value: true
- value: false
- entity: binary_sensor
class: problem
name: Fault
optional: true
dps:
- id: 19
type: bitfield
name: sensor
mapping:
- dps_val: 0
value: false
- dps_val: 1
value: false
- dps_val: null
value: false
- value: true I've added the same binary sensors to another dehumidifier, AlecoAir D16 HOME, which has different labels.
Will you create a PR or should I, for these 2 device configs? |
Beta Was this translation helpful? Give feedback.
So it is likely that bit 0 (value 1) is the Tank full indicator, and bit 1 (value 2) is whatever error E2 is.
What I would do with this info is create two binary_sensor entities - one for "Tank full", and the other for "Fault", which I would still make a catch all, rather than just detecting error 2, to be safe in case undocumented faults exist, or E2 is actually a different bit. The full fault code should be left as an attribute on the main entity in case anyone wants to check that a fault is really E2 or something else.