- Nouveau générateur scripts/gen_api_reference.py : 19 namespaces → docs/api/metier/ (10) + docs/api/systeme/ (9) + notifications.md + types.md (96 types · 55 enums · 4 flags) + SUMMARY.md literate-nav - Badges permissionScope (perm-none/control/configure/admin) dans extra.css - Guide docs/integrations/jsonrpc-api.md (connexion TCP/WS, auth, conventions énergie) - mkdocs.yml : Référence API dans la nav, REST→JsonRPC renommé - mkdocs build --strict : 0 warnings · --check idempotent Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 KiB
Configuration
Méthodes
Configuration.CreateAndDownloadBackup
ADMIN
Create a backup of the current configuration and generate a download entry for the dedicated transfer connection.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError | |
downloadId |
String |
|
fileName |
String |
|
size |
Int |
Configuration.CreateBackup
ADMIN
Create a backup of the current configuration. It will be stored in the configured destination directory. Also the maxCout configuration will be considered.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteBackupFile
ADMIN
Delete an existing configuration backup file.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
fileName |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteMqttPolicy
ADMIN
Delete a MQTT policy from the broker.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
clientId |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteMqttServerConfiguration
ADMIN
Delete a MQTT Server interface of the server.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteTcpServerConfiguration
ADMIN
Delete a TCP interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteTunnelProxyServerConfiguration
ADMIN
Delete a Tunnel Proxy Server interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteWebServerConfiguration
ADMIN
Delete a WebServer interface of the server.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DeleteWebSocketServerConfiguration
ADMIN
Delete a WebSocket Server interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.DownloadBackupFile
ADMIN
Generate a download entry for an existing configuration backup file.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
fileName |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError | |
downloadId |
String |
optionnel |
fileName |
String |
optionnel |
size |
Int |
optionnel |
Configuration.GetAvailableLanguages
PUBLIC
Returns a list of locale codes available for the server. i.e. en_US, de_AT
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
languages |
String[] |
Configuration.GetBackupFiles
ADMIN
Get the list of configuration backup files from the configured destination directory.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
backupFiles |
BackupFile[] |
Configuration.GetConfigurations
PUBLIC
Get all configuration parameters of the server.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
backupConfigurations |
{'autoBackupEnabled': 'Bool', 'autoBackupInterval': 'Int', 'destinationDirectory': 'String', 'maxCount': 'Uint'} |
|
basicConfiguration |
{'d:language': 'String', 'd:location': {'latitude': 'Double', 'longitude': 'Double', 'name': 'String'}, 'd:serverTime': 'Uint', 'd:timeZone': 'String', 'debugServerEnabled': 'Bool', 'serverName': 'String', 'serverUuid': 'Uuid'} |
|
mqttServerConfigurations |
ServerConfiguration[] | |
tcpServerConfigurations |
ServerConfiguration[] | |
tunnelProxyServerConfigurations |
TunnelProxyServerConfiguration[] | |
webServerConfigurations |
WebServerConfiguration[] | |
webSocketServerConfigurations |
ServerConfiguration[] |
Configuration.GetMqttPolicies
ADMIN
Get all MQTT broker policies.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
mqttPolicies |
MqttPolicy[] |
Configuration.GetMqttServerConfigurations
ADMIN
Get all MQTT Server configurations.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
mqttServerConfigurations |
ServerConfiguration[] |
Configuration.GetTimeZones
PUBLIC
Get the list of available timezones.
Paramètres :
Aucun paramètre.
Retour :
| Champ | Type | Notes |
|---|---|---|
timeZones |
String[] |
Configuration.RestoreBackupFile
ADMIN
Restore an existing configuration backup file. Clients should warn the user before calling this method because the current configuration data will be wiped, the server will restart immediately afterwards and it will come back up using the restored backup.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
fileName |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetBackupConfiguration
ADMIN
Set the backup configuration. The destination directory is the location where the archives will be saved, the maxCount is the number of backups which will be kept. If maxCount is 0, all backups will be kept. The autoBackupEnabled property controls periodic configuration backups and autoBackupInterval defines the interval in hours.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
autoBackupEnabled |
Bool |
|
autoBackupInterval |
Int |
|
destinationDirectory |
String |
|
maxCount |
Uint |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetDebugServerEnabled
ADMIN
Enable or disable the debug server.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
enabled |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetLanguage
ADMIN
Sets the server language to the given language. See also: "GetAvailableLanguages"
Paramètres :
| Champ | Type | Notes |
|---|---|---|
language |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetLocation
ADMIN
Sets the server location.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
location |
{'latitude': 'Double', 'longitude': 'Double', 'name': 'String'} |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetMqttPolicy
ADMIN
Configure a MQTT broker policy. If the ID is an existing one, the existing policy will be modified, otherwise a new one will be added.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
policy |
MqttPolicy |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetMqttServerConfiguration
ADMIN
Configure a MQTT Server interface on the MQTT broker. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Setting authenticationEnabled to true will require MQTT clients to use credentials set in the MQTT broker policies.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
configuration |
ServerConfiguration |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetServerName
ADMIN
Set the name of the server. Default is nymea.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
serverName |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetTcpServerConfiguration
ADMIN
Configure a TCP interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
configuration |
ServerConfiguration |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetTimeZone
ADMIN
Set the time zone of the server. See also: "GetTimeZones"
Paramètres :
| Champ | Type | Notes |
|---|---|---|
timeZone |
String |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetTunnelProxyServerConfiguration
ADMIN
Configure a Tunnel Proxy Server interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
configuration |
TunnelProxyServerConfiguration |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetWebServerConfiguration
ADMIN
Configure a WebServer interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
configuration |
WebServerConfiguration |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.SetWebSocketServerConfiguration
ADMIN
Configure a WebSocket Server interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
configuration |
ServerConfiguration |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError |
Configuration.UploadAndRestoreBackup
ADMIN
Create an upload session for a configuration backup archive. The uploaded file will be stored temporarily under /tmp, the current configuration will be wiped after the upload finishes and the server will restart immediately using the restored backup. Clients should warn the user before calling this method because all current configuration data will be lost.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
fileName |
String |
|
size |
Int |
Retour :
| Champ | Type | Notes |
|---|---|---|
configurationError |
ConfigurationError | |
fileName |
String |
optionnel |
size |
Int |
optionnel |
transferId |
String |
optionnel |
transferToken |
String |
optionnel |
Notifications
Configuration.BackupConfigurationChanged
Emitted whenever the backup configuration changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
autoBackupEnabled |
Bool |
|
autoBackupInterval |
Int |
|
destinationDirectory |
String |
|
maxCount |
Uint |
Configuration.BackupFilesChanged
Emitted whenever the list of backup files changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
backupFiles |
BackupFile[] |
Configuration.BasicConfigurationChanged
Emitted whenever the basic configuration of this server changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
basicConfiguration |
{'d:language': 'String', 'd:location': {'latitude': 'Double', 'longitude': 'Double', 'name': 'String'}, 'd:serverTime': 'Uint', 'd:timeZone': 'String', 'debugServerEnabled': 'Bool', 'serverName': 'String', 'serverUuid': 'Uuid'} |
Configuration.MqttPolicyChanged
Emitted whenever a MQTT broker policy is changed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
policy |
MqttPolicy |
Configuration.MqttPolicyRemoved
Emitted whenever a MQTT broker policy is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
clientId |
String |
Configuration.MqttServerConfigurationChanged
Emitted whenever the MQTT broker configuration is changed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
mqttServerConfiguration |
ServerConfiguration |
Configuration.MqttServerConfigurationRemoved
Emitted whenever a MQTT server configuration is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Configuration.TcpServerConfigurationChanged
Emitted whenever the TCP server configuration changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
tcpServerConfiguration |
ServerConfiguration |
Configuration.TcpServerConfigurationRemoved
Emitted whenever a TCP server configuration is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Configuration.TunnelProxyServerConfigurationChanged
Emitted whenever the tunnel proxy server configuration changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
tunnelProxyServerConfiguration |
TunnelProxyServerConfiguration |
Configuration.TunnelProxyServerConfigurationRemoved
Emitted whenever a tunnel proxy server configuration is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Configuration.WebServerConfigurationChanged
Emitted whenever the web server configuration changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
webServerConfiguration |
WebServerConfiguration |
Configuration.WebServerConfigurationRemoved
Emitted whenever a Web server configuration is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |
Configuration.WebSocketServerConfigurationChanged
Emitted whenever the web socket server configuration changes.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
webSocketServerConfiguration |
ServerConfiguration |
Configuration.WebSocketServerConfigurationRemoved
Emitted whenever a WebSocket server configuration is removed.
Paramètres :
| Champ | Type | Notes |
|---|---|---|
id |
String |