faanskit/ha-checkwatt

Integration login fail

Closed this issue · 12 comments

As from 18/11 2024 the integration fail due to not able to log in.
Energyinbalance web work ok, but not HA add-on.

more from logs:
2024-11-18 16:03:05.329 ERROR (MainThread) [pycheckwatt] CheckWatt has requested to back down by enabling the kill-switch
2024-11-18 16:03:05.329 ERROR (MainThread) [custom_components.checkwatt] Failed to login, abort update
2024-11-18 16:03:05.336 DEBUG (MainThread) [custom_components.checkwatt] Finished fetching checkwatt data in 0.277 seconds (success: False)

This error originated from a custom integration.

Logger: pycheckwatt
Source: custom_components/checkwatt/init.py:363
integration: CheckWatt (documentation, issues)
First occurred: November 18, 2024 at 4:02:55 PM (743 occurrences)
Last logged: 8:25:01 AM

CheckWatt has requested to back down by enabling the kill-switch
Unexpected HTTP status code: 500

This error originated from a custom integration.

Logger: custom_components.checkwatt
Source: custom_components/checkwatt/init.py:364
integration: CheckWatt (documentation, issues)
First occurred: November 18, 2024 at 4:02:55 PM (743 occurrences)
Last logged: 8:25:01 AM

Failed to login, abort update

To bad, hope they open for 3pp again.

Should be working again. Got his message from CW reg. killswitch. "Det trasslade lite för oss med webbservern. Nu är den på plats igen." /Marcus

------ Original Message ------ Received: 08:57 AM CET, 11/19/2024 From: sidequest-tomas @.> To: faanskit/ha-checkwatt @.> Cc: faanskit @.>, Comment @.> Subject: Re: [faanskit/ha-checkwatt] Integration login fail (Issue #80) To bad, hope they open for 3pp again. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "#80 (comment)", "url": "#80 (comment)", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

De verkar inte fått till det riktigt ännu iallafall. "Failed to authorize"

This error originated from a custom integration.

Logger: pycheckwatt
Source: custom_components/checkwatt/config_flow.py:42
integration: CheckWatt (documentation, issues)
First occurred: 10:08:28 AM (3 occurrences)
Last logged: 10:09:22 AM

CheckWatt has requested to back down by enabling the kill-switch

Fungerar igen.

Någon större ändring som gick igång idag? Från loggen (tog bort token auth) :

This error originated from a custom integration.

Logger: pycheckwatt
Source: custom_components/checkwatt/init.py:384
integration: CheckWatt (documentation, issues)
First occurred: January 8, 2025 at 2:58:23 PM (96 occurrences)
Last logged: 4:00:00 PM

An error occurred during the request. URL: https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11, Headers: {'accept': 'application/json, text/plain, /', 'accept-language': 'sv-SE,sv;q=0.9,en-SE;q=0.8,en;q=0.7,en-US;q=0.6', 'content-type': 'application/json', 'sec-ch-ua': '"Chromium";v="112", "Google Chrome";v="112", "Not:A-Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'wslog-os': '', 'wslog-platform': 'controlpanel', 'X-pyCheckwatt-Application': 'ha-checkwatt', 'authorization': 'Bearer ****'}. Error: 500, message='Internal Server Error', url='https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11'
An error occurred during the request. URL: https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11, Headers: {'accept': 'application/json, text/plain, /', 'accept-language': 'sv-SE,sv;q=0.9,en-SE;q=0.8,en;q=0.7,en-US;q=0.6', 'content-type': 'application/json', 'sec-ch-ua': '"Chromium";v="112", "Google Chrome";v="112", "Not:A-Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'wslog-os': '', 'wslog-platform': 'controlpanel', 'X-pyCheckwatt-Application': 'ha-checkwatt', 'authorization': 'Bearer ****'}. Error: 500, message='Internal Server Error', url='https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11'
An error occurred during the request. URL: https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11, Headers: {'accept': 'application/json, text/plain, /', 'accept-language': 'sv-SE,sv;q=0.9,en-SE;q=0.8,en;q=0.7,en-US;q=0.6', 'content-type': 'application/json', 'sec-ch-ua': '"Chromium";v="112", "Google Chrome";v="112", "Not:A-Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'wslog-os': '', 'wslog-platform': 'controlpanel', 'X-pyCheckwatt-Application': 'ha-checkwatt', 'authorization': 'Bearer *'}. Error: 500, message='Internal Server Error', url='https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11'
An error occurred during the request. URL: https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11, Headers: {'accept': 'application/json, text/plain, /', 'accept-language': 'sv-SE,sv;q=0.9,en-SE;q=0.8,en;q=0.7,en-US;q=0.6', 'content-type': 'application/json', 'sec-ch-ua': '"Chromium";v="112", "Google Chrome";v="112", "Not:A-Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'wslog-os': '', 'wslog-platform': 'controlpanel', 'X-pyCheckwatt-Application': 'ha-checkwatt', 'authorization': '
'}. Error: 500, message='Internal Server Error', url='https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11'
An error occurred during the request. URL: https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11, Headers: {'accept': 'application/json, text/plain, /', 'accept-language': 'sv-SE,sv;q=0.9,en-SE;q=0.8,en;q=0.7,en-US;q=0.6', 'content-type': 'application/json', 'sec-ch-ua': '"Chromium";v="112", "Google Chrome";v="112", "Not:A-Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site', 'wslog-os': '', 'wslog-platform': 'controlpanel', 'X-pyCheckwatt-Application': 'ha-checkwatt', 'authorization': 'Bearer ***'}. Error: 500, message='Internal Server Error', url='https://services.cnet.se/checkwattapi/v2/ems/revenue?fromDate=2025-01-09&toDate=2025-01-11'

This is a completely different issue. The BASE URL have changed to https://api.checkwatt.se/ so it looks like a major thing that has happened.

I tried a quick-fix to replace the URL and use the new login, but Checkwatt API report back 405 (Method not allowed).

Likely a major rework of pyCheckwatt is needed and I am not motivated to do that since I no longer is a customer of Checkwatt.

For now, the HA integration is broken.

v0.2.3-RC1 has been released. Updates pyCheckwatt to 0.2.8 based on PR from @andreasthell
Should be visible in HACS if you enable beta. May require restart of HA. When only pyCheckwatt is updated, it has been problement to get it refreshed before. Worst case, re-install ha-checkwatt.

Please report back if it works and I'll release it properly. (Cannot test myself, no longer CW customer)

Confirming that it works for me.

Confirming that it works for me.

Thanks. I'll release v.0.2.3 based on this.