core icon indicating copy to clipboard operation
core copied to clipboard

Amber Electric Integration - freezes after Internet interruption

Open TDStrasser opened this issue 1 year ago • 3 comments

The problem

Whenever my Internet connection fails over to its backup (which involves a change of IP address) and/or recovers from a WAN interruption, the Amber Electric data stream freezes. I have had to restart HA or restart the integration manually to get the flow of data to resume. Screenshot 2024-09-28 110116

What version of Home Assistant Core has the issue?

core-2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Amber Electric

Link to integration documentation on our website

https://www.home-assistant.io/integrations/amberelectric

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

TDStrasser avatar Sep 28 '24 04:09 TDStrasser

Hey there @madpilot, mind taking a look at this issue as it has been labeled with an integration (amberelectric) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of amberelectric can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign amberelectric Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


amberelectric documentation amberelectric source (message by IssueLinks)

home-assistant[bot] avatar Sep 28 '24 04:09 home-assistant[bot]

Not sure how to fix this - we use the Home Assistant built in polling mechanism. I'll ask on discord.

madpilot avatar Sep 28 '24 04:09 madpilot

My Amber integration keeps going offline since 2024.09. I didn’t think I had a flaky internet connection but this could be the reason mine is.

traindriverrev avatar Oct 06 '24 13:10 traindriverrev

Been getting this too, almost certainly cause of our top-tier Fixed Wireless NBN. Made an automation to reload the Amber config at 5 and 5 every day.

Needs specific entity or label data, so just group all your Amber sensors into the same label and give it that.

Entry_id can be found in the address bar when you're on your Amber integration entities page. Dunno if its unique or not.

alias: Amber Config Reload
description: ""
triggers:
  - trigger: time
    at: "05:00:00"
  - trigger: time
    at: "17:00:00"
conditions: []
actions:
  - action: homeassistant.reload_config_entry
    metadata: {}
    data:
      entry_id: ##whatever yours is, dunno if its unique or not##
    target:
      area_id: utility
mode: single

MeowdyFeller avatar Dec 19 '24 00:12 MeowdyFeller

Since reporting the issue, I reload the general and feed-in price sensors every 30 minutes (ie. every price interval). Probably overkill but doesn't seem to do any harm. I seem to get NBN HFC dropouts randomly for a few minutes on some days which then triggers a failover to the backup link and sometimes a failure of the Amber integration feed. The regular reloads have cured this symptomatically if not at root cause.

TDStrasser avatar Dec 19 '24 01:12 TDStrasser

i can't even add the amber integration it just hangs up after entering the API token

chicknwinner avatar Dec 26 '24 18:12 chicknwinner

Are you a new customer? It might not be able to find a valid site yet.

madpilot avatar Dec 27 '24 03:12 madpilot

worked it out, i have ipv6 enabled and api.amber.com.au resolves to an ipv6 address and doesn't work.

with ipv6 disabled it works

chicknwinner avatar Dec 27 '24 06:12 chicknwinner

TIL.

I will tey and fix that when I’m back from leave.

madpilot avatar Dec 27 '24 08:12 madpilot

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.