Skip to content

Install instructions need upgrading after HA 2026.1 #229

Description

@lizdodd

Having got my dishwasher back on the wifi reliably (see previous issue) I managed to download all the extra programs for the dishwasher.
I wanted to update the data in devices.json

Install from https://github.com/hcpy2-0/hcpy/wiki/HomeAssistant-Addon directs one to /mnt/data/supervisor/addon_configs/ This doesn't exist without 2 further steps

~ mkdir -p /mnt/data/supervisor/addon_configs

~ mount /addon_configs /mnt/data/supervisor/addon_configs

Then I was able to proceed to the next phase.
Having finally retrieved my codes I was unsuccessful in making a new devices.json despite 6 or 7 tries

~ docker run -ti -v /mnt/data/supervisor/addon_configs/b0b5f39c_hcpy:/config d08b171227f4 /app/hc-login.py /config/devices.json Visit the following URL in Chrome, use the F12 developer tools to monitor the network responses, and look for the request starting hcauth://auth for the relevant authentication tokens: https://api.home-connect.com/security/oauth/authorize?response_type=code&prompt=login&code_challenge=uJBd7fQUnAGeditedEkjjGkbRbzcu14wKiw&code_challenge_method=S256&client_id=9B75AC9EC512edited6520DF774B020E1E6E2EB29B1F3&scope=ReadOrigApi&nonce=X3AzTlp0c2NfYjZRaTltYmRRZVp2QT09&state=WFdZWEhnUzd1Y3NUQ09JQXo2VnE3Zz09&redirect_uri=hcauth%3A%2F%2Fauth%2Fprod&redirect_target=icore Input code:eyJyZWdpb24iOiJFVSIsInN0YWeditedjlCNzVBQzlFIiwidG9rZW4iOiI4ZTdhOWYzMy01MDAwLTQ1YTQtOTFiZS0yMGJjNDllZDFiNGQiLCJjbHR5IjoicHVibGljIiwieC1yZWciOiJFVSIsIngtZW52IjoiUFJEIn0%3D Input state:V2ZFZkV0N2editedYWkprc3lGdz09 code='eyJyZWdpb24iOiJFVSIsInN0YWeditedwidG9rZW4iOiI4ZTdhOWYzMy01MDAwLTQ1YTQtOTFiZS0yMGJjNDllZDFiNGQiLCJjbHR5IjoicHVibGljIiwieC1yZWciOiJFVSIsIngtZW52IjoiUFJEIn0=' grant_type='authorization_code' state='V2ZFZkV0N2doSGNGdXlYWkprc3lGdz09' token_url='https://api.home-connect.com/security/oauth/token' token_fields={'grant_type': 'authorization_code', 'client_id': '9B75AC9EC5editedD813E2C1DD0D6520DF774B020E1E6E2EB29B1F3', 'code_verifier': 'KJJPAcrqhXETSoT1hem2AxfbJM7t2hrjFX_ZroZpLlY', 'code': 'eyJyZWdpb24iOiJFVSIsInN0YWeditedFIiwidG9rZW4iOiI4ZTdhOWYzMy01MDAwLTQ1YTQtOTFiZS0yMGJjNDllZDFiNGQiLCJjbHR5IjoicHVibGljIiwieC1yZWciOiJFVSIsIngtZW52IjoiUFJEIn0=', 'redirect_uri': 'hcauth://auth/prod'} Bad code? {'Date': 'Sun, 11 Jan 2026 02:19:44 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '83', 'Connection': 'keep-alive', 'access-control-allow-origin': '*', 'access-control-allow-methods': 'GET,POST,OPTIONS,PUT,DELETE', 'access-control-allow-credentials': 'true', 'access-control-allow-headers': 'Authorization,Content-Type,Accept,Cache-Control,Last-Event-ID,If-Modified-Since,X-Requested-With,X-Events-Facade,User-Agent', 'referrer-policy': 'origin', 'x-frame-options': 'sameorigin', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'api-gateway-service': 'api-gateway', 'strict-transport-security': 'max-age=31536000; includeSubDomains; preload', 'cinnamon-mdc': 'AAAAAQAAABMAAAAHdHJhY2VJZAAAABMzMTU3NzMwMjIxNTE1OTU4MDIx', 'x-vcap-request-id': 'd5fca552-cef0-48c8-5007-7673549ab0c7', 'hc-env': 'EU-PRD', 'ETag': 'W/"53-IwzoU6VFOHfMA5JUMazlWxB73Zw"'} { "error": "invalid_grant", "error_description": "invalid authorization_code" }

I find the steps quite difficult to follow, not helped by the difficulty of pasting out of the Advanced SSH, as a Ctrl-C to enforce a copy closes the hc-login.py script.
I would offer to rewrite but I need to solve the second part of the install beforehand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions