masaccio / ha-kingspan-watchman-sensit

Kingspan Connect Sensor integration for Home Assistant
MIT License
9 stars 0 forks source link

Error code 500 - internal server #12

Closed CandCB closed 8 months ago

CandCB commented 9 months ago

Hi Masaccio, I'm trying to set up the Kingspan Watchman Sensit integration and already have hacs installed and working with another couple of integrations. I've tried to get your Watchman integration working but am hitting issues and don't know what the system is telling me.

I've downloaded the integration from github, v1.6.2, and can see the folders & files in the /custom components folder so that appears to be ok. When I go back to hacs I can see the Watchman integration listed and when I click on it it takes me to the github page. I then click on Add integration to my HA and it takes me to a new page to "Open Page In Your Home Assistant" so log in again.

I then get a new page with "Do You Want To Set Up Kingspan Watchman SENSiT?" So I OK that. I then get another message, "Please Wait, Starting Configuration Wizard For Kingspan Watchman SENSiT."

It thinks about it for a while then gives; "Error Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble"

I've tried searching the error but not got very far. I'm running HA as a virtual system, Home Assistant 2023.10.3 Frontend 20231005.0 - latest

Any thoughts, suggestions greatly appreciated! Thanks, Colin

masaccio commented 9 months ago

I guess trying 2023.11 could be an option, but I would start with enabling debug for the integration and see if there is anything obvious in the debug log. Use the context menu of the HA config to enable debug logging.

CandCB commented 9 months ago

Hi, Thanks for the quick reply. I'm going to update to 2023.11.1 and will see how that goes. I've also tried to enable logging;

Settings ---> Devices & Services --> Integrations, go to the detail page of the integration. Select the Enable Debug Logging button on the left side of the integration detail page.

However the integration doesn't show on that page so I can't enable. The other two hacs based integrations I'm using are there so I guess the installer hadn't got as far as registering fully?

After updating the HA version from 2023.10.x to 2023.11.1 the integration has loaded correctly and is functioning.

masaccio commented 9 months ago

In principle you can do it here:

image

I've never tried that as you can also edit your configuration.yaml to include this:

logger:
  default: warning
  logs:
    custom_components.kingspan_watchman_sensit: debug