rytilahti / homeassistant-xiaomi-ng

1 stars 2 forks source link

Roborock Vacuums have None suffix #8

Open SLaks opened 3 months ago

SLaks commented 3 months ago

HA sees entities vacuum.spot_none and vacuum.lift_none, which should be spot and lift.

image

I don't remember when this started happening.

rytilahti commented 3 months ago

I have also noticed those Nones, but haven't looked into why it's happening and if it ever worked. If it did, that probably indicates that we have different handling for unique id / name inside the integration, and it's being updated with wrong information. Something like zeroconf discovery using a different code path than the regular setup or similar...

SLaks commented 3 months ago

I just deleted and readded the device, and the None reappeared.

Interestingly, it only appears in the entity, not the device.

rytilahti commented 3 months ago

It has probably something to do with incorrect usage of entity naming, https://developers.home-assistant.io/docs/core/entity/#entity-naming