Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1798·ha_xiaomi_home

Huoman PF20i disappears from Xiaomi Home because spec_type is missing

Author: NameIsNOTimp0rtantCreated Sep 23, 2026Updated Sep 23, 2026

Describe the Bug / 描述问题

My Huoman / HomerunPET PF20i feeder (huoman.feeder.pf20i) used to work normally in Home Assistant.

Later, the device and its entities disappeared from the Xiaomi Home integration, while the feeder itself remained online and continued to work normally in the Mi Home app.

After enabling debug logging, I confirmed that Xiaomi cloud still returns the device from:

/app/v2/home/device_list_page

The returned device information contains:

model: huoman.feeder.pf20i
isOnline: true
pid: 14

### How to Reproduce / 复现步骤

1. Add a Huoman / HomerunPET PF20i (`huoman.feeder.pf20i`) to Mi Home and Xiaomi Home.
2. Confirm that the feeder is online and works normally in Mi Home.
3. In Home Assistant, refresh/update the Xiaomi Home device list.
4. The PF20i does not appear, or previously existing PF20i entities disappear and cannot be restored.
5. Enable Xiaomi Home debug logging.
6. Check the response from `/app/v2/home/device_list_page`.
7. The PF20i is still returned as online, but the device record does not contain `spec_type`.

### Expected Behavior / 预期结果

The PF20i should remain available in Home Assistant as long as Xiaomi cloud still returns the device as valid and online. A valid third-party device should not be discarded only because `spec_type` is missing, and a rediscovered device should be persisted so that Home Assistant can initialize it again after restart.

### Reproduce Time / 问题复现的时间点

2026-09-23 15:00:00

### Home Assistant Logs / 系统日志

Xiaomi cloud still returns the PF20i from `/app/v2/home/device_list_page`.

Relevant device data:

model: huoman.feeder.pf20i
isOnline: true
pid: 14

However, `spec_type` is missing.

Because of this, Xiaomi Home reaches the following logic in `miot_cloud.py`:

urn = device.get('spec_type', None)
model = device.get('model', None)

if urn is None or model is None:
    _LOGGER.info('missing the urn|model field, cloud, %s', device)
    continue

Full debug logs are not attached because they contain account/device/network information.

### Log Timezone / 日志时区

Asia/Tokyo

### Home Assistant Core Version / Home Assistant Core 版本

2026.9.3

### Home Assistant Operation System Version / Home Assistant Operation System 版本

Home Assistant Docker

### Xiaomi Home Integration Version / 米家集成版本

0.4.7

### Additional Context / 其他说明

This appears similar to #1785, which reports the same missing-`spec_type` behavior for another Huoman device.

In my case, the MIoT spec for `huoman.feeder.pf20i` was already present in the local Xiaomi Home spec cache.

I tested a local fallback that uses the existing local spec when the cloud response for this model does not include `spec_type`, and the device was no longer skipped.

I also found that rediscovered devices remaining in `cloud_list` are added to `_device_list_cloud`, while persistent storage saves `_device_list_cache`.

After locally adding the PF20i to `_device_list_cache` and restarting Home Assistant, the device and its entities were restored successfully.

The original issue occurred before I attempted any delete/re-add or reauthorization operations in Mi Home or the HomerunPET app.

Source: XiaoMi/ha_xiaomi_home

View original on GitHubView discussion on GitHub