I had all the sensors updating without a problem locally (before duckdns SSL). I’d like to get everything working over duckdns SSL so that I can remotely monitor and set my alarm system.
I believe I have the port forwarding setup correct (TCP 443->443 and TCP 8123->8123 for the raspberry pi IP) and I am able to establish connection from my duckdns domain to my raspberry pi hassio server. Below is a snapshot of my 5 zones from HA (produced from http://<my_domain>.duckdns.org):
I know for certain that the sensors work because I can change the state of the sensor, restart the Home Assistant, and upon wake HA shows the updated sensors state. However, if I change the sensor state while HA is up and running over SSL, the HA doesn’t reflect the changed state.
I ran the logger for the konnected device and was able to query the software/firmware versions from the http://<konnected_IP>:<random port> which is below:
konnected software version: 2.2.6
konnected firmware version: 2.2.6
API Endpoint: https://<my_domain>.duckdns.org:8123/api/konnected
What I think are the important bits of my configuration.yaml is below:
I am not running Konnected any more (I have swithced to ESPHome) but I think this relates to internal connections between your konnected node and your home assistant instance needing to be unencrypted.
Set api_host (new in Hass 0.72) if you’ve also set base_url in your Hass configuration to an external facing hostname. This should be set to the internal host or IP address & port of Home Assistant using http (not https). For example: http://192.168.100.110:8123
This ensures that Konnected talks to Hass exclusively over your local LAN and isn’t dependent on DNS or the internet.
By using the internal IP address of your home assistant server (rather than the duckdns address) over http rather than https, traffic over your internal network is faster and more reliable.
I’m curious to the steps required to transition from Konnected to ESPHome. Do you have a sample config comparison between Konnected and ESPHome? I’ve never implemented a relay in ESPHome, so I’m not sure how complicated the relay functionality on the alarm board is to implement. I need to upgrade my Konnected firmware soon to use the latest functionality, so I’m considering making the switch to ESPHome as well at that point.
I mainly like the idea of having automations being 100% local to the ESP chip without having to rely on the HA instance in addition. It seems much more robust that way.
Automations are still run in HA. It is possible to run some locally, but I use the alarm panel and associated automations so this would lose some flexibility and features.
As an example, I have a node to control my sirens/strobes and detect tampers. The original Konnected setup looked like: