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.15k stars 30.19k forks source link

Opentherm Gateway entities aren't populated with values #80973

Closed iamkarlson closed 1 year ago

iamkarlson commented 1 year ago

The problem

I used OTGW integration for several years with no problems. Recently I tried to switch on the heating in my house, but the whole integration was somewhat flaky. There was a very small amount of sensors showing any values. Most of the entities were disabled. After several HA restarts - only OTGW main entity was working. Same as the screenshot but with another device name:

image

I thought that something had changed over the summer, so it became broken. I tried to repair it.

Firstly, I check configs - it's how it was configured in the past:

configuration.yaml

 opentherm_gw:
   opentherm_gateway:
     device: socket://<otgw_IP>6638 

It was alright, and I could open the web interface and receive data (including access from the HA machine). This serial address was configured through the original firmware interface that came with NodeMCU version from Nodo Shop.

So I tried to delete the integration and add it again - the same. Tried to re-add with a different name - didn't help.

Secondly, I updated otgwmcu firmware. I believe it was running an old version. I updated it with esptool following the manual here. I see a change, as it's now showing a new interface:

image

However, after I readded the integration - nothing new appeared in HA. I thought there's something wrong with history of entities so I added it with a completely new name. I used address as it's stated in the documentation:

the IP address of the ESP8266 in the "Remote host" field. Leave the "Remote port" at its default of 25238.

Address I used when setting it up was: socket://<otgw_IP>:25238. But it didn't help - I still see the same: device reporting something, and all other entities are disabled and I cannot remove them or update.

What version of Home Assistant Core has the issue?

Home Assistant 2022.10.5

What was the last working version of Home Assistant Core?

Home Assistant 2022.3

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

OpenTherm Gateway

Link to integration documentation on our website

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

Diagnostics information

No response

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 @mvn23, mind taking a look at this issue as it has been labeled with an integration (opentherm_gw) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `opentherm_gw` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant unassign opentherm_gw` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


opentherm_gw documentation opentherm_gw source (message by IssueLinks)

mvn23 commented 1 year ago

Thank you for the report. When (re)adding the integration to Home Assistant, only the climate entity is enabled. Do you have the climate entity available? All sensors and binary sensors are disabled by default. You can enable them by going to Settings, clicking Devices & Services, selecting the Entities tab (or go here) and searching for OpenTherm. You can then select the entities you want to enable and click Enable Selected at the top of the list.

If that is not what you meant and/or you don't have the climate entity available, please check the logs for errors and post them here.

iamkarlson commented 1 year ago

Hi @mvn23 It seems like it's indeed the case. Do you think it's valuable to add in the docs?

iamkarlson commented 1 year ago

Anyway, here you go: https://github.com/home-assistant/home-assistant.io/pull/24700

mvn23 commented 1 year ago

Thanks for the PR, please see the notes in my review.