cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.901: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-11-05 13:14:49 +02:00
1 parent d48b9aff87
commit e2c7085d2c
76 files changed
+5380 -330

No files matched your search

+9
View File
@@ -275,6 +275,15 @@ def main():
put(f"{DATA}/claim-code", code + "\n", own=own)
env["CANTABILE_MODE"] = opts.get("mode", "shadow")
env["CANTABILE_DASHBOARDS"] = "1" if opts.get("dashboards", True) else "0"
# Remote Home Assistant for Cantabile support (edge/link/hatunnel.go):
# only when the owner turns it on here (off by default); the link then
# offers it and keeps HA's "Cantabile support" user, through the
# Supervisor. Turning it off (and the add-on's restart) ends a session.
if opts.get("support_ha") is True:
env["CANTABILE_HA_REMOTE"] = "1"
log("remote Home Assistant for Cantabile support: allowed in the configuration")
else:
env.pop("CANTABILE_HA_REMOTE", None)
mqtt(env, own)
put(f"{DATA}/config.yaml", CONFIG, 0o644, own, keep=True)