jaybz / TP-HomeAssistant

Home Assistant plugin for Touch Portal
MIT License
23 stars 1 forks source link

plugin is not connecting with HomeAssistant - all actions have empty dropdowns #10

Closed tommasodargenio closed 3 years ago

tommasodargenio commented 3 years ago

Hi, I've just found about your plugin and since I use Home Assistant a lot this is a nice addition as I have to use some workaround via CMD script using curl etc to interface TPP with Home Assistant.

I've installed and configured it as directed (with the local URL and a proper token). However when I go to edit a button in TP and use any of the plugin's actions all the dropdowns (i.e. to select entities/devices) are empty. I've checked the log and I can see an exception been raised when attempting to login.

You can find the log here

I'd appreciate it if you could provide some help, I'll fork the code later on and debug it myself, if I find the solution I'll comment on this and perhaps send a PR.

Cheers

jaybz commented 3 years ago

The logs are indicating an issue with logging in. That could be an incorrect long-lived access token or a connection issue. You can try the following:

If none of those work, I've just pushed code into the develop branch that improves logging during authentication. If you don't mind building from that branch yourself, I'd recommend using that to debug the issue. Otherwise, I can publish a dev build you can try. I haven't thoroughly tested that code though so usual beta software disclaimers apply.

jaybz commented 3 years ago

Closing issue as I haven't received any further response. Please re-open if necessary.