[APP][Pro] Home Assistant - Community App

This is a text capability. Only boolean capabilities will show up in the log (if log is enabled in capability definition).

If you need a log, then you have to add the entity again using a boolean capability (alarm*) and add a converter that returns true or false based on your possible entity states.

1 Like

Thnx, that worked. Things getting clearer now.

Home Assistant Community App Crashes

My installed app continues to crash with the following error message. I am hoping there is a possible solution without removing and reinstalling the app and imported devices.

Exit Code: null, Exit Signal: SIGABRT

Diagnostic report: 8f55813b-5ad2-4ba5-948d-f56edfc023a1

Any suggestions? Thank you

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I would say, your Homey has no available RAM.

Overall free memory has been an issue for about a year. Even removing apps only temporarily solve the problem. HAC has not been problematic until about a month ago. I am also playing with a NAS version of Homey Self-Hosted, same HAC error with 1.9GB of 8.2GB used. May just have to remove HAC and then start building back up. Thank you

Good evening,
Diagnostics report code

694f8f54-2194-468c-9c2f-bbf33851e839

No other error code as far as I know.

I’m guessing that my home assistant instance is likely far too large to be used on a homey pro, but I would be curious to know what has caused the crash (happens once I confirm IP, PORT and API).

If there is a workaround, please advise, would be keen to try it.

:warning: The app has crashed. Exit Code: null, Exit Signal: SIGABRT <— <— js stacktrace —> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I got similar errors also from other users. How does your Homey RAM look like? Enough memory or full incl. swap?

I don’t know if it’s caused by RAM limit or by other limitations. Seems to happen since new NodeJS version.

I’m about 900Mb memory used from 2Gb.

The app seems to be removed from my homey.. more people have that issue?

No, this sometimes happens if the update got not installed completely (Homey issue). Just over install from the store.

And the home assistant instance is sitting at about 80,000 entities. Have rebooted the homey pro, but that didnt make a difference. if there is a number of entities constraint, I can spin off the entities i need to import into a different instance. no sense in duplicating homeassistant and homey parts.

The Homey app listens to all Entity changes on HA. Perhaps the full entity state list (sent on 1st reading) is too big.

The Homey app uses the standard HA websocket API. I don’t think, you can filter the content on HA side. And two instances would help, but will mess up your system(?)

I will check if I can find a reason for the error…

I asked on Slack. We don’t know an exacd cause, but it seems it’s caused by an HA entity state/event.
I already saw some entity states including huge JSON strings. Especially from some kind of network state entities including all kinds of found network devices.

Can you check in HA developer tools it there is an entity with such s big state content?

Edit: It seems to be a memory limit. Perhaps your amount of entities results in a high memory consumption for the homey app. Let’s wait for an answer from Athom…

Hi,

Got to the bottom of this.

it would appear that I had 250,000,000 or so known devices in a configuration file. Never got to the bottom of why this file enlarges on home assistant, but I deleted it, and now everything is working.

I will have to knock up a script that deletes the file once a week, and I think I will be back in business.

Thanks!

Oh, so an integration is spamming duplicated entities? Try to check every day what entities got added.
If you have other integrations importing/exporting entities Like MQTT auto discovery, Alexa etc. they can re-add exported entities counting up the entity ID with a trailing number.

something to do with bluetooth I think, at some point i’ll get around to stripping that out (once I remember if I actually use bluetooth for anything useful in Home Assistant).

Unplug the BT dongle and you’ll know :wink:

@RonnyW Now that there’s a Home Assistant add-on for Homey SHS, I wonder about the possiblity to integrate directly with Home Assistant, rather than communicating over IP?

No, that will be just a container running on the HA system. It’s the same as if you install SHS on a NAS or another system.

1 Like

Hi Ronny!

This is a longshot, because Homey Alarms, these things


are not devices with capabilities:
Is it possible to somehow sync an input_datetime helper with a Homey Alarm?

I mean, it’s not a problem to send the input_datetime values to a custom device, but the other way round, to pick a timestamp/alarm on Homey, which updates the H.A. input_datetime, isn’t possible (yet).