core: Failing to authenticate Huisbaasje

The problem

The first problem started with data not coming in for the Huisbaasje integration entity’s. I noticed an error in the log saying:

2022-09-21 16:10:45.973 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] (‘Response is not json’, ‘HTTP method not allowed, supported methods: OPTIONS’)

Step 1: Restart HA - didnt help Step 2: Reload Huisbaasje integration - didnt help Step 3: Remove Huisbaasje integration Step 4: Try to add Huisbaasje integration - error message

I am getting the following error when logging into Huisbaasje image

Logger: homeassistant.components.huisbaasje.config_flow
Source: components/huisbaasje/config_flow.py:38
Integration: Huisbaasje ([documentation](https://www.home-assistant.io/integrations/huisbaasje), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+huisbaasje%22))
First occurred: 16:10:45 (5 occurrences)
Last logged: 16:24:25

('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')

What version of Home Assistant Core has the issue?

2022.9.1

What was the last working version of Home Assistant Core?

2022.9.1

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Huisbaajse

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.components.huisbaasje.config_flow Source: components/huisbaasje/config_flow.py:38 Integration: Huisbaasje (documentation, issues) First occurred: 16:10:45 (5 occurrences) Last logged: 16:24:25

(‘Response is not json’, ‘HTTP method not allowed, supported methods: OPTIONS’)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-09-21 16:10:45.973 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] ('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')
2022-09-21 16:12:08.061 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] ('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')
2022-09-21 16:12:55.962 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] ('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')
2022-09-21 16:13:39.448 WARNING (MainThread) [async_upnp_client.profiles.dlna] Only InstanceID 0 is supported
2022-09-21 16:15:29.175 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] ('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')
2022-09-21 16:17:39.453 WARNING (MainThread) [async_upnp_client.profiles.dlna] Only InstanceID 0 is supported
2022-09-21 16:21:39.465 WARNING (MainThread) [async_upnp_client.profiles.dlna] Only InstanceID 0 is supported
2022-09-21 16:24:25.403 WARNING (MainThread) [homeassistant.components.huisbaasje.config_flow] ('Response is not json', 'HTTP method not allowed, supported methods: OPTIONS')
2022-09-21 16:25:39.454 WARNING (MainThread) [async_upnp_client.profiles.dlna] Only InstanceID 0 is supported

Additional information

_I have double checked the entered credentials multiple times. And am able to logon to the designated ‘Energyflip’ formerly known as Huisbaasje app. It worked fine up until 30 minutes ago _

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I did some investigating, and it looks like they published an update to the servers which broke the current communication of the integration with the servers. The Mijnaurum dashboard is still visible on https://srv1.aurumeurope.com/mijnaurum/dashboard, but when you attempt to login the server returns a 405 Method not Allowed error. I did not manage to reverse engineer the new paths.

Instead I sent an e-mail to the support desk of EnergyFlip asking if they could either restore the endpoints or provide information about the new API; as it is working still on Android. They were quite helpful with an earlier issue so I’m hopefull they can help us.

A friend helped me with some reverse engineering and I already started working on some change.

I also got an answer back from energy flip stating that the moved some things which caused these functions to be unavailable. They discussed internally but could not provide another solution unfortunately.

But this reverse engineered solution already looks promising!

Tested and working again, great work @dennisschroer

Yeah good point. I think the renaming itself is not that hard I’m not sure how it will work with migrating the old configuration to the new one. But that will be another issue

Hey all! Thanks for reporting the issue. I noticed the same on my homeassistant instance. It seems the developers of Huisbaasje/EnergyFlip removed the “old” mijnaurum.nl portal, since all requests to it are being redirected to https://www.energyflip.com/nl/. However, the app on my phone still works. So there has to be another way to get the data via some API. I’ll try to investigate later tonight. But if you guys found anything please post it here ;+1: