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
71.59k stars 29.91k forks source link

Shelly TRV becomes unavailable after adding integration #89494

Closed lukeelten closed 1 year ago

lukeelten commented 1 year ago

The problem

When I add a Shelly TRV to HA, the climate entity changes to "unavailable" immediately. This also happens to TRVs which are already added and working fine. At some random point in time they become "unavailable".

Furthermore the integration does not recognize the valve position anymore. It simply does not show up as an entity.

What version of Home Assistant Core has the issue?

core-2023.3.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

Shelly

Link to integration documentation on our website

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

Diagnostics information

I already activated debug logs for Shelly integration. Information about the device I try to add: Device Name: Heizung Schlafzimmer Device IP: 192.168.252.67 Device ID: A521D8

Log File: home-assistant_2023-03-10T09-00-42.374Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

This issue is related to #86641

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

Your device is not calibrated

'calibrated': False,

and returns valveError

{'I': 3116, 'T': 'S', 'D': 'valveError', 'R': '0/1', 'L': 2}
[0, 3116, 1]

this is the reason the climate entity is marked as unavailable.

I don't see any problem with Shelly integration.

lukeelten commented 1 year ago

Thanks for the hint. I used to add the TRVs while they are on my desk and mount (and calibrate) them later. Now I mounted and calibrated it first and added it to HA afterwards and it works fine.