You question maybe??
Sorry, but I could not resist
Welcome to this community, but you have to be more clear on your question and/or issue with Home Assistant.
What exactly is your problem?
And also: when you post code, please do it such that it is correctly formatted and thus better readable.
How to do that: Format it properly