ollo69 / ha_tuya_custom

Tuya Custom Component for testing
Apache License 2.0
39 stars 18 forks source link

[Suggestion] use entity id instead of friendly name in config #31

Open tux2000 opened 3 years ago

tux2000 commented 3 years ago

Hi. I was a bit confused when setting up the config for this component that the "friendly name" is used to identify devices instead of the entity id. I would assume that the entity is more stable and more standardised so I was wondering why the name is used instead. Probably there are good reasons for this design choice, in this case please just close the issue.

Thanks for this custom component. Nice to see that some of the flaws in the tuya integration are getting fixed here.

tux2000 commented 3 years ago

Related to #21

ollo69 commented 3 years ago

Actually this is already possible, you can you use both friendly name or entity id. I just do not mention this option in ReadMe to avoid confusion and friendly name seemed easier to identify for all. But if you can better clarify and explain usage, a PR to the ReadMe is really welcome.

tux2000 commented 3 years ago

I see, i tried with climate.86806317a4cf12xfb8f9 first which did not work and read the instructions more careful then and got it working with the friendly name. Now I checked again and indeed it is working with 86806317a4cf12xfb8f9 only. But I agree that its not so easy to make the option accessible and clear in the instruction.