This is why:
Using AI is no substitute for learning by reading the documentation. In fact it is worse. It teaches you nothing as it is often wrong and you have no way of identifying the mistakes - without looking at and learning from the documentation.
Also please format your post correctly for the forum. See: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16