StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
616 stars 111 forks source link

[BUG] #689

Open AnKloss opened 2 years ago

AnKloss commented 2 years ago

This error originated from a custom integration.

Logger: homeassistant Source: custom_components/shelly/block.py:61 Integration: Shelly smart home (documentation) First occurred: June 23, 2022, 9:07:06 AM (368149 occurrences) Last logged: 2:38:22 PM

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 599, in _async_add_entity entity.add_to_platform_abort() File "/config/custom_components/shelly/block.py", line 48, in add_to_platform_abort self._remove_handler() File "/config/custom_components/shelly/block.py", line 61, in _remove_handler self.instance.block_sensors.remove(self.ukey) ValueError: list.remove(x): x not in list

Can fix this ? mfg Andreas

kevincaradant commented 2 years ago

Hi

I got many issues with ShellyHASS plugin since the latest evrsion of HA :/ and I got the same issue that you.

Did you solve it ?

Thanks

Edit: image image

my config in configuration.yaml image I'm running under the latest version V1.0.0 and I already tried 1.0.0 beta V2 and same issue. i'm running under the latest stable version of HA

Everything seems work well in my component from HA so I don't understand the issue image I have all info that I need

I didn't see before this issue because I was aware about critical RAM used on the server... but I got like 700 000 messages by error in logs of HA with these errors.

AnKloss commented 2 years ago

Hello, Yes, I Uninstaller Shelly For Hass, Uninstaller Shelly, reboot and use only Shelly for HA. Now works, no problem any more. MfgAndreas Sent from my Huawei phone-------- Original message --------From: Kévin @.>Date: Sat, Jul 9, 2022, 02:29To: StyraHem/ShellyForHASS @.>Cc: AnKloss @.>, Author @.>Subject: Re: [StyraHem/ShellyForHASS] [BUG] (Issue #689) Hi I got many issues with ShellyHASS plugin since the latest evrsion of HA :/ and I got the same issue than you. Did you solved it ? Thanks

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

peterus commented 1 year ago

duplicate of #678

kevincaradant commented 1 year ago

@AnKloss thanks I will try to remove the plugin and install it again to see if it will be better.

@peterus I don't understand why you said it's duplicated. I don't see any similar things between both of them but maybe I miss something

Oh you edited your message but I clicked from the email received and it was before that your edit. Thanks I will follow when your issue will be closed

bcutter commented 1 year ago

@AnKloss thanks I will try to remove the plugin and install it again to see if it will be better.

@peterus I don't understand why you said it's duplicated. I don't see any similar things between both of them but maybe I miss something

Oh you edited your message but I clicked from the email received and it was before that your edit. Thanks I will follow when your issue will be closed

Did you solve this for yourself @kevincaradant ?

kevincaradant commented 1 year ago

No I didn't try to remove all conf from shelly because I have so many shelly and so many automation linked to shelly in HA. I'm scared that everything ( name of devices ect) in HA could be removed if I remove the integration.

Si I'm just waiting a fix /new version of shellyForHass about the issue mentioned just before.

bcutter commented 1 year ago

Unfortunately waiting is not an option for me. The log gets filled so freaking fast and the whole system gets quite some load only because of the Shelly integration. Thinking bout restoring some backups, if only the SQLite database would survive that... what a pity.

bcutter commented 1 year ago

No I didn't try to remove all conf from shelly because I have so many shelly and so many automation linked to shelly in HA. I'm scared that everything ( name of devices ect) in HA could be removed if I remove the integration.

Si I'm just waiting a fix /new version of shellyForHass about the issue mentioned just before.

Still waiting? -.-