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

+18
View File
@@ -49,6 +49,24 @@ nothing more is collected or sent.
their settings) and **Building** (joining a building). It also sets up
Home Assistant's Energy dashboard while you have none of your own. Your
own dashboards are never changed.
- **Cantabile support may open this Home Assistant** (off by default): when
you turn it on, Cantabile's support team can open this Home Assistant
through Cantabile's connection to help you, signed in as a user of its
own, "Cantabile support" (an administrator, so that it can look at your
integrations, logs and repairs; never the owner, and never with your
password, which it cannot change either). The add-on makes that user and
gives it a new password for each session that nobody sees; afterwards the
user is disabled again and has no password. A session lasts at most an
hour, ends after 15 minutes without use, and every request is recorded.
You see the user in Settings → People while it exists, and while a
session is open the add-on's own pages (below) say so at the top, with
**End now**: it ends the session at once and disables the user again.
Turning the option off and restarting the add-on ends it too. On these
pages the user "Cantabile support" cannot switch reading or control on,
change a protection or make the other choices that are yours. Home
Assistant must answer plain HTTP on its own port for this (with an
`ssl_certificate` in its `http:` configuration support is told it cannot
open it).
## Pages
+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)
+6 -1
View File
@@ -3,7 +3,7 @@
# the Hub's, wrapped by addon-run (Dockerfile). The image is prebuilt,
# per arch (README.md: building it from src/).
name: Cantabile Edge Agent
version: "0.1.676"
version: "0.1.901"
slug: cantabile_edge
description: Plans your home's energy with Cantabile and, with your consent, runs the devices you choose.
url: https://cantabile.cloud
@@ -41,15 +41,20 @@ map:
# consent_data: the owner's consent, given here when installing (needed: the
# add-on connects to Cantabile only with it); consent_control: control,
# separately (the Hub's wizard has the same two; DOCS.md "Your consent").
# support_ha: Cantabile's team may open this Home Assistant as its user
# "Cantabile support" (an administrator, never the owner) through Cantabile's
# connection; off unless the owner turns it on (edge/link/hatunnel.go).
options:
consent_data: false
consent_control: false
mode: shadow
claim_code: ""
dashboards: true
support_ha: false
schema:
consent_data: bool
consent_control: bool
mode: list(off|shadow)
claim_code: password?
dashboards: bool
support_ha: bool
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+10
View File
@@ -28,3 +28,13 @@ configuration:
Das Dashboard von Cantabile in Home Assistant (ein Eintrag in der
Seitenleiste: Übersicht, Energie, Geräte, Gebäude) und das
Energie-Dashboard, solange Sie kein eigenes haben.
support_ha:
name: Der Cantabile-Support darf dieses Home Assistant öffnen
description: >-
Wenn Sie dies einschalten, darf das Support-Team von Cantabile dieses
Home Assistant über die Verbindung zu Cantabile öffnen, angemeldet als
Benutzer „Cantabile support“ (ein Administrator; nie Sie und nie mit
Ihrem Passwort). Jede Sitzung wird aufgezeichnet, dauert höchstens eine
Stunde und endet nach 15 Minuten ohne Nutzung; danach wird der
Benutzer wieder deaktiviert. Schalten Sie es aus und starten Sie das
Add-on neu, um eine Sitzung sofort zu beenden.
+9
View File
@@ -27,3 +27,12 @@ configuration:
Cantabile's dashboard in Home Assistant (one sidebar entry: overview,
energy, devices, building), and the Energy dashboard while you have
none of your own.
support_ha:
name: Cantabile support may open this Home Assistant
description: >-
When you turn this on, Cantabile's support team may open this Home
Assistant through Cantabile's connection, signed in as the user
"Cantabile support" (an administrator; never you, and never with your
password). Each session is recorded, lasts at most an hour and ends
after 15 minutes without use; the user is disabled again afterwards.
Turn it off and restart the add-on to end a session at once.