Adds a by_type registry for the AX60R5080WD/SE air purifier family, verified against two independent diagnostics dumps (issue #56 and its comment). Binds power, alarms, energy, diagnosis (reusing dishwasher.DIAGNOSIS), the dust/ fine-dust/super-fine-dust/odor/clean-level sensors off /sensors/vs/0, filter progress, a device-active diagnostic, and a display-light switch parsed out of /mode/vs/0's packed options list. Fan speed/direction (/airflow/0, /airflow/vs/0) and two other /mode/vs/0 tokens (Comode_*, Blooming_*) are exposed as read-only diagnostics rather than full controls -- neither dump has a supported-values list to confirm their write contracts, so they're left for a follow-up once that's clarified in the issue thread. Hoists range_hood's items[]-sensor-value helper into common.py (sensor_item_value) since air_purifier now reads the same /sensors/vs/0 shape.
26 lines
466 B
JSON
26 lines
466 B
JSON
{
|
|
"state_keys": [
|
|
"alarm_code",
|
|
"blooming_level",
|
|
"clean_level",
|
|
"device_active",
|
|
"diagnosis_status",
|
|
"display_light",
|
|
"dust",
|
|
"energy_kwh",
|
|
"energy_last_month_kwh",
|
|
"energy_saved_kwh",
|
|
"energy_this_month_kwh",
|
|
"fan_direction",
|
|
"fan_speed_level",
|
|
"filter_progress",
|
|
"fine_dust",
|
|
"odor",
|
|
"operating_mode",
|
|
"power_energy_kwh",
|
|
"power_switch",
|
|
"power_watts",
|
|
"super_fine_dust"
|
|
]
|
|
}
|