Hi all,
I’m in need for some mental support, and perhaps even a solution to my problem I’m well-versed in IT, but not coding, so Home Assistant is sometimes an enigma to me.
I’ve been running HA succesfully on my Raspberry Pi 4B (32bit, and EOL next year, will be a project over the summer to move to arm64) in a Docker setup.
Kernel: Linux unificontroller 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
OS Version: Raspbian GNU/Linux 10 (buster)
IP address: 192.168.100.90/24
This machine has the hostname unificontroller
as that was the primary intended function, but seeing the performance of it, I kept adding other stuff (also in docker).
The OS has all updates applied, apt
has nothing new for it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Running Adguard Home and Caddy I’m providing the following destinations on the machine, as well as just the containers throught the IP:Port
fashion.
uptime.home
agh.home
unifi.home
dokuwiki.home
assistant.home
pfsense.home
netdata.home
The docker image I use is home-assistant/raspberrypi4-homeassistant:stable
Docker
The version of HA I’m running is
Home Assistant 2023.5.2
Frontend 20230503.3 - latest
The docker run
script I use:
#!/usr/bin/env bash
IP=$(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
DOCKERTAG='stable'
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ='Europe/Amsterdam' \
-p ${IP}:8123:8123 \
-v /mnt/raid5/homeassistant/config:/config \
--net=bridge \
ghcr.io/home-assistant/raspberrypi4-homeassistant:${DOCKERTAG}
Now for the situation at hand.
I’ve replaced a pretty bad Remeha thermostat (bad software, poor temperature management) with a Honeywell T6, Y6H810WF1005, over WiFi, not Zigbee. Since I already have my P1/DSMR gateway installed and data for my energy consumption (electricity and gas) and generation (solar panels) showing on the Energy dashboard, I would also like to show the temperature reported by the thermostat.
I have an account on https://developer.honeywellhome.com/user/me/apps where I created my API key.
I have an account for Resideo (Honeywell was acquired, or had a merger?) to use my app on Android to set up the thermostat.
Different email addresses (sub-addressing used), different passwords.
Supposedly this should work like a charm as the device supports HomeKit, but I’ve tried it a few times now and I keep getting stuck at the same spot.
When I try to add the integration using the documentation Honeywell Lyric - Home Assistant I do the following:
Menu Settings → Devices & Services → Integrations → “Add Integration”
Here I type honey
, click the “Honeywell” button, and chose “Honeywell Lyric”.
In the pop-up I enter a custom name, the ID and secret which I created on the developer website.
A new page opens with this URL (this might be omitting steps because I fiddled around with it before, no idea how to reset that):
https://api.honeywell.com/oauth2/authorize?response_type=code&client_id=[[bla]]&redirect_uri=https://my.home-assistant.io/redirect/oauth&state=[[bla]]
(client_id
and state
is redacted, for privacy and clarity reasons)
with the following body:
{
"code": 400,
"message": "The redirect URL provided does not match the redirect URL registered for the app."
}
Following the docs, if I replace the redirect_uri
to
https://api.honeywell.com/oauth2/authorize?response_type=code&client_id=[[bla]]&redirect_uri=http://192.168.100.90:8123/auth/external/callback&state=[[bla]]
I get the same error.
If I replace it with
https://api.honeywell.com/oauth2/authorize?response_type=code&client_id=[[bla]]&redirect_uri=http://assistant.home:8123/auth/lyric/callback&state=[[bla]]
(I suppose the IP address would work here as well, figured that I might as well use the DNS name)
I get a nice Resideo login screen, but it doesn’t accept my credentials!?
Sorry, we cannot find a user with these credentials.
Searching on Google gets me a lot of hits, with github repos, plugins, additional containers, etc, but I think most if not all of that has been obsolete since HomeKit was incorporated in HA core?
I would very much like to know what I need to fill out where?
Thank you for your time!