Home-Assistant-PowerShell-Module icon indicating copy to clipboard operation
Home-Assistant-PowerShell-Module copied to clipboard

Connection to Home-Assistant API failed

Open dkaars opened this issue 3 years ago • 2 comments

Hi there, I've recently updated to HassWP 2022.2.3. Since then I cannot access HA through the API using your module anymore.

This worked perfectly in the older version of HassWP and now I get the error 'Connection to Home-Assistant API failed'. II have created a many new Long-Lived Access Tokens and try multiple times but keep getting that error.

Has something changed in the new version of HassWP which affects connecting or it it just me?

Thanks Dave

dkaars avatar Mar 04 '22 02:03 dkaars

I was following this repo and thought I'd drop a reply. I don't see any problem, albeit I am using 2022.3.1.

Are you able to share a screenshot or more information about your error? I thought I would share a screenshot of a test I just did on my W11 workstation creating a session on 2022.3.1.

image

jcallaghan avatar Mar 06 '22 18:03 jcallaghan

Hi James,

I re-read the instructions carefully and see that it mentions to add 'api:' to the configuration file. As soon as I did this it started working.

Newbie hass mistake. I'll remember that for the future 🙂


From: James Callaghan @.> Sent: Monday, 7 March 2022 5:59 AM To: flemmingss/Home-Assistant-PowerShell-Module @.> Cc: dkaars @.>; Author @.> Subject: Re: [flemmingss/Home-Assistant-PowerShell-Module] Connection to Home-Assistant API failed (Issue #1)

I was following this repo and thought I'd drop a reply. I don't see any problem, albeit I am using 2022.3.1.

Are you able to share a screenshot or more information about your error? I thought I would share a screenshot of a test I just did on my W11 workstation creating a session on 2022.3.1.

[image]https://user-images.githubusercontent.com/7449908/156937900-d6ee641b-7283-4821-8bf3-ea18b462053a.png

— Reply to this email directly, view it on GitHubhttps://github.com/flemmingss/Home-Assistant-PowerShell-Module/issues/1#issuecomment-1060019295, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNHNQJ46XPWPINMNDBOKTDU6T6BLANCNFSM5P4KSUQA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

dkaars avatar Mar 07 '22 04:03 dkaars