AIO + Home Assistant Users

29 comments started 2024-05-21 last 2025-03-19
Home Automation
J
#1 Jellybaby

Home Assistant app ios+android and mobile browser just flat out refuses to load for me on default home dashboard, the Home Assistant app on ios starts to load, shows energy rate charts from octopus then goes black then loads them again then goes black and stays black and I get a dashboard load error when trying to connect via mobile browser safari on ios it says "A problem repeatedly occurred on <insert dashboard here>" and if I try brave I get "This site cannot provide a secure connection" and with Chrome it just says "can't open this page".

Anybody else have trouble with dashboard/app loading when default cards are laid out for GivTCP?

D
#2 DreadorUK

Can't help with GivTCP don't use it as I just use the API to read and use nodered but I did have an issue with my iPad's on this months initial firmware version, self resolved in 24.05.02 - currently on 24.05.04 and still working fine.

J
#3 Jellybaby

Even with 6 cores and 8gb memory it can take teh main dashboard 10-20s to load and I get the same CPU hammering on just the one with the GivTCP stuff it puts in when you add it to home assistant.

#4 PianSom

There is something wrong with your setup. I suggest you trash it and start again from scratch.

As a benchmark - I am running HA (including Predbat, GivTCP, Solcast, etc as well as an Influxdb database and other applications including a 4K-capable media server!!) on a 4yo i3 4-core NUC under Docker. The main HA dashboard comes up in an instant.

J
#5 Jellybaby

PianSom Do you ever take ownership of the main page and change it? After some experimenting it seems like just the givtcp stuff that auto populates is enough to prevent it loading, I did try it with a brand spanking new install.

With windows browser on PC everything loads even on a PC that isn't hosting the VM its just mobile browser and HA app that is giving me grief which unfortunately means no HA app period and browser I have to go to the "Energy" page first and avoid loading the main dashboard.

T
#6 treborUK

Jellybaby you can set the default page to the one you want, and never need to use the default dashboard. I also deleted most stuff from the default dashboard once I had my own dashboard setup

#7 PianSom

Jellybaby
I have lots of dashboards. I don’t use the auto-populated one.

I have one dashboard which has all the GivTCP entities, plus the entities from my PV inverter, plus the entities from Solcast, plus the entities from my Eddi and Zappi.

#8 PianSom

Jellybaby With windows browser on PC everything loads even on a PC that isn't hosting the VM its just mobile browser and HA app that is giving me grief

To make sure I understand you correctly, are you saying you don’t have a problem with HA loading on the machine which is running it or indeed on another machine, but do have a problem with accessing it remotely on a mobile device?

If so, doesn’t this point to an issue with the mobile device or with comms/networking, rather than an issue with GivTCP, HA or the AIO?

J
#9 Jellybaby

PianSom It works until I try and load the tab with all the GivTCP info and the App I can't make load into a different window to start with, I don't know if its just too much to try and load sensor wise for the mobile devices or not.

I got a separate page for everything EXCEPT the GivTCP stuff including the default predbat stuff it populates the overview page with and that loads fine.

Thats why I was wondering if anybody that used GivTCP and didn't take ownership and just let everything populate the initial dashboard had any trouble.

T
#10 treborUK

I did let it auto-add everything to the default page including GivTCP but never had any issues with loading time whether from the raspberry pi direct, from a browser on another pc or phone, or the homeAssistant app.

J
#11 Jellybaby

treborUK Maybe it doesn't like running in a VM, I did end up assigning 6 cores and 8gb ram to see if that made a difference but it didn't.

Wish I had something spare to see if running it as an actual OS would have the same problem before buying a mini pc to run it on.

#12 PianSom

Jellybaby
I still don't understand the issue. Let me try asking again in a different way: is your problem that you cannot get one of your dashboards to work correctly on one (mobile) device?

J
#13 Jellybaby

PianSom on mobile phones AND mobile browser, it shows a few things but rest is not loaded then the screen goes blank then it comes up again and tries to load then goes blank again, ill do a video.

#15 PianSom

Jellybaby
I can’t really tell anything from the video, but it seems to be the case that there’s not a problem with HA. But there is an issue with how your mobile device is displaying HA info.

If I were you I’d post on the HA forums the details of your hardware and what you are seeing. They won’t know about GivTCP, but I doubt that is the primary issue.

J
#16 Jellybaby

100% yesterday to today = 9.6kwh, drawing from grid+battery so its nearly out despite being on 14% somehow.

Edit 30s later
nvm it hit 0.0%

G
#17 geoffreycoan

Jellybaby I find my default dashboard can take sometimes a while to load, but it gets there in the end. Sometimes pauses when scrolling down due to the large number of entities but never actually crashes.

I wonder if it is the default dashboard or something else in HA causing the issue? I find regular memory leak issues with studio server, it often consumes all cpu and I have an automation to identify this and restart the causing add on (usually studio server but has been occasionally app daemon)

You can look at the system monitor entities to see cpu, memory, etc

J
#18 Jellybaby

geoffreycoan cpu doesn't even get to 10% and memory is fine, not going to go near 8gb of ram, I wouldnt mind it taking a while to load but it just black screens on ios app and on ios browsers it wont load.

J
#19 Jellybaby

Couldn't see a general thread so thought id just post in an old one of mine.

Does anybody have a way of getting a loud alert when connection to AIO drops, current Netgear switch keeps shutting down traffic which my old 4 port one NEVER done and it would be nice to get it fixed ASAP with a tone that would even wake me up if it had to.

#20 PianSom

Jellybaby
Are you an iOS user? If so the code snippet below is what I user to sound a notification even if I am in Sleep mode and have a grid failure. Vary the volume as needed. (There is a similar setting for Android, but I don't have it to hand).

      - metadata: {}
        data:
          title: POWER CUT
          message: >-
            Connection to the grid lost - house is on battery.

            Current load is {{
            states('sensor.givtcp_XXXXXXXX_load_power')|int              
            }}W.                

            Current state of charge is {{              
            states('sensor.givtcp_XXXXXXX_soc')|int }}%.               

            Battery will last approximately {{              
            ((states('sensor.givtcp_XXXXXXX_discharge_time_remaining')|int)/60)|int              
            }} hours.
          data:
            persistent: true
            push:
              sound:
                name: default
                critical: 0
                volume: 0.5
        action: notify.mobile_app_YYYYYYYYYY
J
#21 Jellybaby

PianSom Appreciated, what do I do with this though?

#22 PianSom

Jellybaby
You need to set up a HA automation where the Trigger is the a drop of your connection to the AIO (maybe have a look at the Ping integration https://www.home-assistant.io/integrations/ping/ and have a Trigger of the AIO failing to respond in a reasonable time) and then the Action on fail is as I posted above (but with the changes as required for this case).

J
#23 Jellybaby

PianSom So that bit above goes into the automation section, not sure if it will work the same as it just keeps last readings til its updated which it can't do.

I will have a look at that ping thing.

J
#25 Jellybaby

couldn't get the ping thing to work, said for it to check every 5 minutes and the log showed only one attempt and result after 10 minutes, probably user error but no clue what im doing.

I have to to refresh every minute, having an alert if it isn't updated after like 5 minutes is what I was trying to sort out,

#27 PianSom

Jellybaby
Honestly, I think the best advice I can give if you are just starting out with HA and automations is to go and hang out in the HA forum. They are pretty friendly there too and happy to help get people started, and if you do a bit of poking around (the search function is MUCH better than it is here) then you will probably find something you can work with. Iirc there may even be some “automations for beginners” links.

Geoffrey and I have given you some basic examples to get you started. Use those as a basis and you’ll soon be cooking on gas (are we allowed to say that here?? 🙂 )

J
#28 Jellybaby

geoffreycoan Nice, I assume it needs predbat to be installed? Gave up on that last year.

G
#29 geoffreycoan

Jellybaby Nice, I assume it needs predbat to be installed?

No, that automation is entirely to check that GivTCP and Mosquitto Broker are running and that you are getting data from the inverter into HA. There is a separate automation for doing similar checks on Predbat