home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.67k stars 30.42k forks source link

Shelly CoIoT not receiving push updates #98021

Closed ohadlevy closed 1 year ago

ohadlevy commented 1 year ago

The problem

Hello,

Since 2023.8.0 I'm getting notifications that Shelly push notifications are not working, on a small subset of my devices.

I've rebooted the devices, and confirmed that they actually operate successfully (including status updates), so I'm uncertain if its the notification that is wrong or if there is another issue.

I am on a multi nic configuration, but I've confirmed all shelly's have the correct ip address for unicast and that they are able to open a connection (tested using netcat) to the udp address.

What version of Home Assistant Core has the issue?

2023.8.1

What was the last working version of Home Assistant Core?

2023.7.3

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

shelly

Link to integration documentation on our website

No response

Diagnostics information

config_entry-shelly-6bb03a0ec31e3882fde0d7a4d43eada3.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `shelly` 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 shelly` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


shelly documentation shelly source (message by IssueLinks)

bieniu commented 1 year ago

Duplicate #97887

bieniu commented 1 year ago

Sorry, I closed your issue too fast, your case looks a bit different. Please attach debug log for Shelly integration.

aufdb commented 1 year ago

Fallo en la actualización push del dispositivo shellyem-B151E3 de Shelly

bieniu commented 1 year ago

@aufdb We use English here.

aufdb commented 1 year ago

home-assistant/core] Shelly CoIoT not receiving push updates

El mié, 9 ago 2023, 16:50, Maciej Bieniek @.***> escribió:

@aufdb https://github.com/aufdb We use English here.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/98021#issuecomment-1671553700, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2ZVIQEU3UQG4URYQ6YQOTXUOPR3ANCNFSM6AAAAAA3ICVSVI . You are receiving this because you were mentioned.Message ID: @.***>

kleinerhobbit commented 1 year ago

Maybe i can provide some debug logs regarding this error.

I had this error on 15.08.2023 around 03.00 for the device "Shelly-TV".

home-assistant_shelly_2023-08-15T09-14-47.954Z.log

bieniu commented 1 year ago

@kleinerhobbit There are entries in your log:

Polling Shelly Block Device - Shelly1-TV

This means that push updates from the Shelly device do not reach the HA server. This is a problem with your device or network configuration, not with integration. So the fix for the problem is on your end. In the documentation linked by the repair issue you will find hints that may help.

tzvister commented 1 year ago

I'm having the same issue, ColoT is enabled, and nothing changed, router is same config, no firewall on anything. I've got 5 devices out of 14 that stopped syncing since 2023.8

thecode commented 1 year ago

I'm having the same issue, ColoT is enabled, and nothing changed, router is same config, no firewall on anything. I've got 5 devices out of 14 that stopped syncing since 2023.8

I don't understand what is "stopped syncing" this is just a warning issue, we didn't change anything in what you call "sync", the issue was added to alert users that push updates are not working. When you change the external to home assistant (for example from the button) does it reflect in real-time in Home Assistant?

In any case I suggest to create a new issue, add diagnostics and debug logs.

iassenk commented 1 year ago

Same here, HA 2023.8.3 - some of Shelly devices are in state "push update failure". It starts with 2023.8.1,

image

More than that, some other Shelly devices disappears and appears again after minute or two.

Error fetching LR AC PLUG* data: Error fetching data: DeviceConnectionError() Error fetching shellyrgbw2-**** data: Error fetching data: DeviceConnectionError() Error fetching shellyplug-s-** data: Error fetching data: DeviceConnectionError() Error fetching EM-*-Total_Pwr data: Error fetching data: DeviceConnectionError()

Nothing has been changed in network and hardware setup.

bieniu commented 1 year ago

It starts with 2023.8.1

No, it didn't start with 2023.8.1. You had this problem before, but HA from version 2023.8.x informs you about it.

tzvister commented 1 year ago

fair enough, but the result is, that until then, all shelly's are working from HA interface. (Shows as Unavailable). Now only Shelly's Native Phone App, and Cloud interface. . I've tried setting a static ColoT on the product, and reset it. No cigar.

Any suggestions?

On Sat, Aug 19, 2023 at 2:40 PM Maciej Bieniek @.***> wrote:

It starts with 2023.8.1

No, it didn't start with 2023.8.1. You had this problem before, but HA from version 2023.8.x informs you about it.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/98021#issuecomment-1684924694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFASJH6VWNUKFM7IDZS7KDXWCQ2BANCNFSM6AAAAAA3ICVSVI . You are receiving this because you commented.Message ID: @.***>

-- Tal Oron Internet & Sons http://www.internetandsons.com Linkedin https://www.linkedin.com/in/taloron/

bieniu commented 1 year ago

Adding "repair issue" has nothing to do with connections between HA server and devices. If your devices are unavailable in Home Assistant, you should open a new issue and attach the debug log (for Shelly integration) and diagnostics file. However, if you see a push update repair issue, it's almost 100% your network's problem and you have to solve it yourself. We can only give you tips on where/how to look for a solution.

thecode commented 1 year ago

This should be fixed by https://github.com/home-assistant/core/pull/98747, if you still experience issues after 2023.9.0 please reopen