raiseValueError(f"Unknown domain {domain}") life=run_ttl_check(ttl_check_cmd(domain)) return{'ttl': life} 这样一来 HA 里面可以通过下面的 sensor 拿到信息 1 2 3 4 5 6 7 8 sensor: -platform:rest name:Certificate TTL resource:http://<web server>/cert/life/<subdomain> ...
After the NGINX Home Assistant add-on installation is completed. Go to theConfigurationtab of the add-on and add your DuckDNS domain next to thedomainsection andSavethe changes. Your NGINX configuration should look similar to the picture below (of course, you should changesmash-the-lkesub-doma...