New URL for Home Assistant (migration to Caddy reverse proxy)
This commit is contained in:
@@ -48,7 +48,7 @@ while True:
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
data = json.dumps({'payload': 'RING', 'topic': 'lewe/doorbell', 'retain': 'False'}).encode('utf8')
|
||||
request = urllib.request.Request("https://www.nodebucket.de:8123/api/services/mqtt/publish", data, headers)
|
||||
request = urllib.request.Request("https://ha.nodebucket.de/api/services/mqtt/publish", data, headers)
|
||||
response = urllib.request.urlopen(request)
|
||||
except Exception:
|
||||
logger.error("Could not ring doorbell")
|
||||
|
||||
Reference in New Issue
Block a user