You will get the quickest and most accurate answer if you ask in the author’s thread for the code that you are using. The author will be automatically notified when a new post is added to that thread, and other people are using the same code may also be able to help.
If you just start a new thread, people using that code may never see it.
So the first thing to do right is to ask the question in the correct thread.
In this case, ask your question in the following thread,
[Release] New TP-Link/Kasa Plug, Switch, and Bulb Integration