tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
857 stars 206 forks source link

HA Tuya entity name prepended with "ty" #299

Open stephenmhall opened 2 years ago

stephenmhall commented 2 years ago

Describe the bug After a HA restart today my Tuya devices were not found, on investigation I could re add the device and it would work, looking deeper there was a ty at the beginning of the long entity name. If I then added the ty the devices once again worked. I currently have automations setup in the Tuya app rather than HA so do not know if they would have broken, I suspect they would.

old name light.205513782cf432191215 new name light.ty205513782cf432191215

Expected behaviour Entity names remain the same.

Screenshots If applicable, add screenshots to help explain your problem.

Home Assistant Version 2021.7.4

thetastate1 commented 2 years ago

Guessing this is working as designed. Not appending the 'ty' would create conflicts for those running the legacy tuya and tuyav2 integrations in parallel.

tsutsuku commented 2 years ago

Guessing this is working as designed. Not appending the 'ty' would create conflicts for those running the legacy tuya and tuyav2 integrations in parallel.

Yes.