TP1X_DA-KS-COOKTOP-01011 (NV8500T-/KO4) is the same board family and /cooktop/status/vs/0 resource shape as issue #44's range combo, minus the oven -- but its modelNum uses the hyphenated '-COOKTOP-' token, which for_device_by_model's existing '_COOKTOP' check (underscore- delimited, matching the unrelated NA9300K gas-cooktop family in cooktop.py) doesn't match. The device fell back to 'unknown' with only energy/alarms from the global fallback. Add the hyphenated token check, routing to a new 'induction_cooktop' registry (by_type/induction_cooktop.py) that reuses range.py's COOKTOP_STATUS/COOKTOP_SPEC/COOKTOP_SAFETY/PROBE_STATUS and cooktop.PAIRED_HOOD_STATUS wholesale rather than pulling in range.py's oven capabilities, which this device has no hrefs for at all. Along the way, three fields the reporter asked for turned out to be gaps in the shared range.py capability itself, not just missing routing -- also present (and previously unmodeled) on issue #44's original combo-range dump: - /cooktop/status/vs/0's own `power` and `childLock` fields (distinct from common.POWER's /power/0 or /power/vs/0, which a combo range additionally carries for the whole appliance) -- childLock gets a write_fn (a safe lock toggle, direct single-field PUT), power stays read-only (no live device to confirm a remote write wouldn't leave a burner active unattended). - Each burner's `panDetection` field. New: a Bluetooth meat-probe capability for /bluetooth/probe/status/vs/0 (read-only -- connection, battery, current/target temperature), and /cooktop/recipe/status/vs/0 is ignored (every field empty on this idle dump, same treatment as the microwave family's /recipe/cook/vs/0). Regenerates the range golden fixture (gains cooktop_power/ cooktop_child_lock/burner_N_pan_detected) and adds a dedicated fixture for the standalone cooktop.
33 lines
735 B
JSON
33 lines
735 B
JSON
{
|
|
"state_keys": [
|
|
"alarm_code",
|
|
"burner_0_hot_surface",
|
|
"burner_0_pan_detected",
|
|
"burner_0_power_level",
|
|
"burner_0_state",
|
|
"burner_1_hot_surface",
|
|
"burner_1_pan_detected",
|
|
"burner_1_power_level",
|
|
"burner_1_state",
|
|
"burner_2_hot_surface",
|
|
"burner_2_pan_detected",
|
|
"burner_2_power_level",
|
|
"burner_2_state",
|
|
"cooktop_child_lock",
|
|
"cooktop_power",
|
|
"cooktop_state",
|
|
"energy_kwh",
|
|
"firmware_update",
|
|
"paired_hood_connected",
|
|
"paired_hood_fan_speed",
|
|
"paired_hood_firmware",
|
|
"paired_hood_light",
|
|
"paired_hood_model",
|
|
"paired_hood_power",
|
|
"probe_battery",
|
|
"probe_connected",
|
|
"probe_target_temperature",
|
|
"probe_temperature"
|
|
]
|
|
}
|