Add device support for the stick-vacuum clean/auto-empty station (issue #131)
A-VSKR-TP1-22-VS9500AL connects successfully but its dump shows no vacuum-body state at all -- no suction level, no battery, no cleaning mode -- only the clean/auto-empty station's own dustbag, dustbin auto-empty settings, and UV-C sanitizing-cycle status. This strongly suggests the WiFi/DTLS module lives in the station, not the handheld stick, so the station is the only "device" this integration's local API can reach at all. New vacuum_station device type (these hrefs share nothing with any existing family, so there's no shared-href ambiguity to resolve against another type) routed via a new '-VSKR-' modelNum fallback. Binds with zero unbound hrefs: dust-bag full/usage sensors, auto-empty and dustbin auto-close switches, a discharging-time select, and clean-station status including UV-C intensive mode, operation time, and finished/emitted timestamps. A couple of fields with unconfirmed exact semantics (stick_status, dustbag_usage's unit) are exposed as plain diagnostic values rather than an asserted binary/percentage meaning.
This commit is contained in:
7 files changed
+379
-1
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"state_keys": [
|
||||
"alarm_code",
|
||||
"auto_empty",
|
||||
"cleanstation_status",
|
||||
"discharging_time",
|
||||
"dustbag_full",
|
||||
"dustbag_usage",
|
||||
"dustbin_auto_close",
|
||||
"energy_kwh",
|
||||
"firmware_update",
|
||||
"stick_status",
|
||||
"uvc_emitted_time",
|
||||
"uvc_finished_time",
|
||||
"uvc_intensive_mode",
|
||||
"uvc_operation_time",
|
||||
"uvc_total_operation_time"
|
||||
]
|
||||
}
|
||||
+170
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"device0": [
|
||||
{
|
||||
"rt": [
|
||||
"x.com.samsung.devcol",
|
||||
"oic.wk.col"
|
||||
],
|
||||
"if": [
|
||||
"oic.if.baseline",
|
||||
"oic.if.ll",
|
||||
"oic.if.b"
|
||||
]
|
||||
},
|
||||
{
|
||||
"href": "/realtimenotiforclient/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.timeforshortnoti": "0",
|
||||
"x.com.samsung.da.timeforlongnoti": "false",
|
||||
"x.com.samsung.da.periodicnotisubscription": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/alarms/vs/0",
|
||||
"rep": {}
|
||||
},
|
||||
{
|
||||
"href": "/energy/consumption/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.cumulativePower": "915",
|
||||
"x.com.samsung.da.cumulativeUnit": "Wh"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/information/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.modelNum": "A-VSKR-TP1-22-VS9500AL|50023541|80030100001611000800000000000000",
|
||||
"x.com.samsung.da.description": "A-VSKR-TP1-22-VS9500AL",
|
||||
"x.com.samsung.da.serialNum": "**REDACTED**",
|
||||
"x.com.samsung.da.otnDUID": "**REDACTED**",
|
||||
"x.com.samsung.da.diagProtocolType": "WIFI_HTTPS",
|
||||
"x.com.samsung.da.diagLogType": [
|
||||
"errCode",
|
||||
"dump"
|
||||
],
|
||||
"x.com.samsung.da.diagDumpType": "file",
|
||||
"x.com.samsung.da.diagEndPoint": "SSM",
|
||||
"x.com.samsung.da.diagMnid": "0AJT",
|
||||
"x.com.samsung.da.diagSetupid": "VS1",
|
||||
"x.com.samsung.da.diagMinVersion": "1.0",
|
||||
"x.com.samsung.da.items": [
|
||||
{
|
||||
"x.com.samsung.da.id": "0",
|
||||
"x.com.samsung.da.description": "Version",
|
||||
"x.com.samsung.da.type": "Software",
|
||||
"x.com.samsung.da.number": "023741250507",
|
||||
"x.com.samsung.da.newVersionAvailable": "0"
|
||||
},
|
||||
{
|
||||
"x.com.samsung.da.id": "1",
|
||||
"x.com.samsung.da.description": "Version",
|
||||
"x.com.samsung.da.type": "Firmware",
|
||||
"x.com.samsung.da.number": "25050800",
|
||||
"x.com.samsung.da.newVersionAvailable": "0"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/file/information/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.timeoffset": "+09:00",
|
||||
"x.com.samsung.supprtedtype": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/configuration/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.region": "2650000000",
|
||||
"x.com.samsung.da.airconOptionList": [
|
||||
"HOMECARE_WIZARD_V2",
|
||||
"CLEAN_OPTION_SUPPORT"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/component/station/dustbag/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.status": "normal",
|
||||
"x.com.samsung.da.supportedStatus": [
|
||||
"full",
|
||||
"normal"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/setting/dustbin/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.autoEmpty": "On",
|
||||
"x.com.samsung.da.autoClose": "On",
|
||||
"x.com.samsung.da.desiredDischargingTime": "3",
|
||||
"x.com.samsung.da.supportedDischargingTime": [
|
||||
"1",
|
||||
"3"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/status/cleanstation/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.status": "Ready",
|
||||
"x.com.samsung.da.uvcTotalOperationTime": "90",
|
||||
"x.com.samsung.da.uvcOperationTime": "90",
|
||||
"x.com.samsung.da.uvcFinishedTime": "2026-07-27T10:26Z",
|
||||
"x.com.samsung.da.emittedTime": "2026-07-26T12:26Z",
|
||||
"x.com.samsung.da.uvcIntensive": "Off",
|
||||
"x.com.samsung.da.stickStatus": "On"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/component/station/dustbagusage/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.dustbagUsage": "506",
|
||||
"x.com.samsung.da.dustbagPrevUsage": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/otninformation/vs/0",
|
||||
"rep": {
|
||||
"x.com.samsung.da.target": "",
|
||||
"x.com.samsung.da.newVersionAvailable": "false",
|
||||
"flashingProgress": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/timezone/vs/0",
|
||||
"rep": {
|
||||
"timezoneid": "Asia/Seoul",
|
||||
"offset": "+09:00",
|
||||
"DST": "OFF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"href": "/connectionconfig/vs/0",
|
||||
"rep": {
|
||||
"autoReconnectionMinVersion": "1.0",
|
||||
"autoReconnection": "true",
|
||||
"autoReconnectionProtocolType": [
|
||||
"helper_hotspot",
|
||||
"ble_ocf"
|
||||
],
|
||||
"supportedWiFiAuthType": [
|
||||
"OPEN",
|
||||
"WEP",
|
||||
"WPA-PSK",
|
||||
"WPA2-PSK",
|
||||
"SAE"
|
||||
],
|
||||
"supportedWiFiCryptoType": [
|
||||
"TKIP",
|
||||
"AES",
|
||||
"WEP-64",
|
||||
"WEP-128"
|
||||
],
|
||||
"supportedWiFiFreq": [
|
||||
"2.4G"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -343,6 +343,22 @@ class TestForDeviceByModel:
|
||||
assert reg is not None
|
||||
assert reg.name == 'oven'
|
||||
|
||||
def test_vacuum_station_via_vskr_token(self):
|
||||
"""Issue #131: a stick-vacuum clean/auto-empty station
|
||||
(A-VSKR-TP1-22-VS9500AL) reports no oneUiVersion and no
|
||||
washer/dryer/dishwasher consumer prefix; falls back to the
|
||||
'-VSKR-' token in modelNum onto a new vacuum_station registry (its
|
||||
dump has no vacuum-body state at all, only station-specific
|
||||
dustbag/dustbin/UV-sanitize resources -- see
|
||||
capabilities/vacuum_station.py's module docstring)."""
|
||||
from custom_components.localthings.registry.by_type import for_device_by_model
|
||||
reg = for_device_by_model(
|
||||
'A-VSKR-TP1-22-VS9500AL|50023541|80030100001611000800000000000000',
|
||||
'A-VSKR-TP1-22-VS9500AL',
|
||||
)
|
||||
assert reg is not None
|
||||
assert reg.name == 'vacuum_station'
|
||||
|
||||
def test_cooktop_via_legacy_model_description(self):
|
||||
"""Older cooktops identify themselves as ARTIK051_GLOBAL_COOKTOP."""
|
||||
from custom_components.localthings.registry.by_type import for_device_by_model
|
||||
|
||||
@@ -609,6 +609,26 @@ def test_registry_reproduces_golden_state_keys_for_air_purifier_tp1x_da_ac_air()
|
||||
)
|
||||
|
||||
|
||||
def test_registry_reproduces_golden_state_keys_for_vacuum_station():
|
||||
"""A-VSKR-TP1-22-VS9500AL stick-vacuum clean/auto-empty station (issue
|
||||
#131) -- reports no oneUiVersion; resolved via the new '-VSKR-'
|
||||
modelNum fallback onto a new vacuum_station registry (see
|
||||
capabilities/vacuum_station.py's module docstring for why this needed
|
||||
a new device type rather than reusing an existing one: the dump has no
|
||||
vacuum-body state at all, only station-specific dustbag/dustbin/
|
||||
UV-sanitize resources that share no hrefs with anything else already
|
||||
modeled). Binds with zero unbound hrefs."""
|
||||
from tests.conftest import _load_device
|
||||
resources = _load_device('vacuum_station')
|
||||
golden = json.loads((GOLDEN / 'vacuum_station.json').read_text())
|
||||
state_keys = _new_state_keys('vacuum_station', resources)
|
||||
assert set(state_keys) == set(golden['state_keys']), (
|
||||
f"state_keys mismatch:\n"
|
||||
f" extra: {sorted(set(state_keys) - set(golden['state_keys']))}\n"
|
||||
f" missing: {sorted(set(golden['state_keys']) - set(state_keys))}"
|
||||
)
|
||||
|
||||
|
||||
def test_resources_from_batch_preferred_over_flat():
|
||||
from tests.conftest import _resources_from_dump
|
||||
dump = {
|
||||
|
||||
Reference in new issue
Block a user