ha-emporia-vue icon indicating copy to clipboard operation
ha-emporia-vue copied to clipboard

Stuck at Failed Setup, will retry

Open consolecwby opened this issue 2 years ago • 12 comments

image This is the error i get. It almost acts like it will work but no luck. I have tried restarting home assistant but no luck.

consolecwby avatar Aug 03 '23 04:08 consolecwby

Same here. Occurred following the update to 2023.8 and OS 10.4

Going to delete and reinstall unless someone has already tried that.

rhdny avatar Aug 04 '23 13:08 rhdny

image

Here is my version sorry I didn't post it earlier.

consolecwby avatar Aug 04 '23 15:08 consolecwby

Can you try installing the "master" version of the integration and see if that makes a difference? I haven't fully decoupled the first Usage call from the setup yet but that work is started on the master version. Most likely that call is failing because of something on the API side, though a 400 code implies it could be something on the request, not sure what that'd be though.

magico13 avatar Aug 04 '23 15:08 magico13

I'm dead in the water too. I got in touch with Emporia because I couldn't log in via their app, nor their web page URL. The support person claimed everything was fine and didn't know why I couldn't log in. I thought maybe it was a local issue so set my phone to use broadband and still wouldn't work. Eventually it did work. But as of now the web page interface does not work here. He claimed it was fine. So I'm not completely convinced the problem isn't on their end. They had me change my password which had no effect. He mentioned the servers are in Ohio...since I have geo-blocking set up but no log entries for that show (i.e., nothing blocked). No problem pinging their URL.

Since I changed the password I deleted the integration and it's just sitting here spinning trying to reinstall. It did quit working after I installed 10.4 (but didn't install 2023.8.x yet). Since I was having problems accessing it other ways...it may be just a coincidence.

greggitter avatar Aug 04 '23 20:08 greggitter

OK so i removed the integration and reinstalled on the master version. I also removed special characters from my password. However I am having the same error as before.

consolecwby avatar Aug 04 '23 20:08 consolecwby

I enabled a VPN service for my desktop and can now access their system via the web page above and was able to change my password (which doesn't appear to be the problem). Unfortunately, I can't route home assistant through that VPN so that still hangs.

EDIT: Packet trace shows errors trying to authenticate.

pkterrors

greggitter avatar Aug 04 '23 21:08 greggitter

Installing HA 2023.8.1 seems to have solved it. I had removed the integration, then updated to 2023.8.1 then the integration added fine. I had switched to Master per @magico13 comment above. Thanks much for this integration too! :)

greggitter avatar Aug 04 '23 23:08 greggitter

Updated HA and HA OS

Home Assistant 2023.8.1 Supervisor 2023.07.1 Operating System 10.4 Frontend 20230802.0 - latest

tried latest and greatest and the Master both doesnt work restarted before and after on setups.

Still no luck for me.

@greggitter what format do you have your password if you don't mind sharing. Maybe I need the right number of characters or something.

I am also running home assistant on a VMS through UNRAID latest version 6.12.3. Could that be my problem?

consolecwby avatar Aug 05 '23 01:08 consolecwby

I'm back in business with 2023.8.1.

rhdny avatar Aug 05 '23 04:08 rhdny

This is the second time this year that I've unexpectedly lost communication with the API... and I am currently running the latest and greatest available home assistant code. To restore, I had to remove the Device Integration (Emporia Vue), and then reinstall the hub with the same user and password. Everything came back after that... can't explain.

gkhicks avatar Aug 07 '23 17:08 gkhicks

Do I need to do anything on the emporia energy website to get this to work. I have tried removing and reinstalling the integration with no luck.

consolecwby avatar Aug 07 '23 18:08 consolecwby

Updated HA and HA OS

Home Assistant 2023.8.1 Supervisor 2023.07.1 Operating System 10.4 Frontend 20230802.0 - latest

tried latest and greatest and the Master both doesnt work restarted before and after on setups.

Still no luck for me.

@greggitter what format do you have your password if you don't mind sharing. Maybe I need the right number of characters or something.

I am also running home assistant on a VMS through UNRAID latest version 6.12.3. Could that be my problem?

Sorry for the delay, didn't see your reply to me.

I tried several passwords after seeing the suggestions in this thread, in the end I removed special characters but that didn't work either until I updated HA to 2023.8.1. I find it strange that when it won't connect via HA, I also can't access with their native app/web page. The packet trace shows an error authenticating. I wondered if a security failure blocked the IP for a period of time (like fail2ban) but the support person said no. However, when I connected via a VPN service I sub to (changing my IP and DNS), it worked...which supports the IP block theory. The question is, why is there a periodic failure to authenticate. I don't think password has anything to do with it because I've had this happening off and on for months and never changed the password during that period.

I run HA in a Proxmox VM...if that matters.

I added an automation that checks for unavailable status and reloads the integration every 15 minutes when it fails. I chose one of my sensors (AC circuit). Generally this works fairly well...but can take some time to come back. At least no manual intervention is normally needed.

alias: Reload Vue Services
description: ""
trigger:
  - platform: time_pattern
    minutes: /15
condition:
  - condition: state
    entity_id: sensor.a_c_9_1min
    state: unavailable
action:
  - service: homeassistant.reload_config_entry
    data: {}
    target:
      entity_id: sensor.a_c_9_1min
mode: single

greggitter avatar Aug 08 '23 14:08 greggitter