Normally a service can be bound to several ports and the ports can then be defined with specific setups.
Port 443 is the standard well-known port for HTTPS, so you would normally bind the service to this port and set up SSL encryption.
Port 80 is the standard well-known port for HTTP, so you would just bind the service to this port.
Problem is that I can not really figure out how to bind the frontend to multiple ports.
Yeah… My first impulse was to set up a reverse Proxy with Apache.
But since the Home Assistant OS is so limited, I’d need another Raspberry Pi for that. I wish the Home Assistant OS could be a vanilla Raspberry Pi OS.
The Nginx Home Assistant SSL Proxy addon is the simplest way. I have https access via the fully qualified domain name, and also local http access on port 8123 with either the fully qualified domain name or the local IP address.
As I wrote I implemented the nuki ring webhook and after testing it, I deactivated it again. Why? Well every bell ring activated the automation. It sounds good, but e. G. The ring to open also activated the automation. When I deactivated the bell, the automation was triggered as well.
So if my kids are sleeping the sound on my Amazon Alexa would be triggered as well… therefore I will have a look if I can fetch if the bell is deactivated and will update the automation!
Thanks again for pointing in the right direction! The setup guide was very helpful! For the NGINX Home Assistant SSL proxy to work I had to set up MariaDB first. Somehow it seems to be a prerequisite now, even though the official setup guide doesn’t mention that either.
Anyways… It works now!
It sounds good, but e. G. The ring to open also activated the automation. When I deactivated the bell, the automation was triggered as well.
So if my kids are sleeping the sound on my Amazon Alexa would be triggered as well… therefore I will have a look if I can fetch if the bell is deactivated and will update the automation!
Yeah… I’m not sure if that is possible. I use an old WiFi electromechanical relay (Tuya local integration) to control my doorbell. That makes things a lot easier… According to the Nuki Bridge HTTP API (developer.nuki.io) it is not possible. ( See # 4.3 - Lock States )