diff --git a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts index 9a79a08dc7..3f83a69f59 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts @@ -157,380 +157,382 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) { .path=${mdiRefresh} .label=${this.hass!.localize("ui.common.refresh")} > - ${this._network - ? html` - -
-
-
- ${this._status === "disconnected" - ? html`` - : html` - - `} -
- ${this._status !== "disconnected" - ? html` -
- Z-Wave - ${this.hass.localize( - "ui.panel.config.zwave_js.common.network" - )} - ${this.hass.localize( - `ui.panel.config.zwave_js.network_status.${this._status}` - )}
- +
+ ${this._network + ? html` + +
+
+
+ ${this._status === "disconnected" + ? html`` + : html` + + `} +
+ ${this._status !== "disconnected" + ? html` +
+ Z-Wave ${this.hass.localize( - `ui.panel.config.zwave_js.dashboard.devices`, - { - count: - this._network.controller.nodes.length + - provisioningDevices, - } + "ui.panel.config.zwave_js.common.network" )} - ${notReadyDevices > 0 - ? html`(${this.hass.localize( - `ui.panel.config.zwave_js.dashboard.not_ready`, - { count: notReadyDevices } - )})` - : nothing} - -
- ` + ${this.hass.localize( + `ui.panel.config.zwave_js.network_status.${this._status}` + )}
+ + ${this.hass.localize( + `ui.panel.config.zwave_js.dashboard.devices`, + { + count: + this._network.controller.nodes.length + + provisioningDevices, + } + )} + ${notReadyDevices > 0 + ? html`(${this.hass.localize( + `ui.panel.config.zwave_js.dashboard.not_ready`, + { count: notReadyDevices } + )})` + : nothing} + +
+ ` + : nothing} +
+
+
+ + ${this.hass.localize("ui.panel.config.devices.caption")} + + + ${this.hass.localize("ui.panel.config.entities.caption")} + + ${this._provisioningEntries?.length + ? html` + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.provisioned_devices" + )} + ` : nothing}
-
-
- - ${this.hass.localize("ui.panel.config.devices.caption")} - - - ${this.hass.localize("ui.panel.config.entities.caption")} - - ${this._provisioningEntries?.length - ? html` + + +
+
+ ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.provisioned_devices" - )} - ` - : nothing} -
- - -
-
- - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.driver_version" - )}: - - ${this._network.client.driver_version} -
-
- - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.server_version" - )}: - - ${this._network.client.server_version} -
-
- - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.home_id" - )}: - - ${this._network.controller.home_id} -
-
- - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.server_url" - )}: - - ${this._network.client.ws_server_url} -
-
- - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_tx.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_tx.tooltip" - )} - - ${this._statistics?.messages_tx ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_rx.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_rx.tooltip" - )} - - ${this._statistics?.messages_rx ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_tx.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_tx.tooltip" - )} - - ${this._statistics?.messages_dropped_tx ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_rx.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_rx.tooltip" - )} - - ${this._statistics?.messages_dropped_rx ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.nak.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.nak.tooltip" - )} - - ${this._statistics?.nak ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.can.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.can.tooltip" - )} - - ${this._statistics?.can ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_ack.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_ack.tooltip" - )} - - ${this._statistics?.timeout_ack ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_response.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_response.tooltip" - )} - - ${this._statistics?.timeout_response ?? 0} - - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_callback.label" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.statistics.timeout_callback.tooltip" - )} - - ${this._statistics?.timeout_callback ?? 0} - - - -
-
- - ${this.hass.localize( - "ui.panel.config.zwave_js.common.remove_a_node" - )} - - - ${this.hass.localize( - "ui.panel.config.zwave_js.common.rebuild_network_routes" - )} - -
-
- -
-

Third-party data reporting

- ${this._dataCollectionOptIn !== undefined - ? html` - - ` - : html` `} -
-
-

- Enable the reporting of anonymized telemetry and statistics - to the Z-Wave JS organization. This data will be - used to focus development efforts and improve the user - experience. Information about the data that is collected and - how it is used, including an example of the data collected, - can be found in the - Z-Wave JS data collection documentation. -

-
-
- -
-

- ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.description" - )} -

-
-
- ${this._backupProgress !== undefined - ? html` + "ui.panel.config.zwave_js.dashboard.driver_version" + )}: + + ${this._network.client.driver_version} +
+
+ ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.creating" - )} - ${this._backupProgress}%` - : this._restoreProgress !== undefined + "ui.panel.config.zwave_js.dashboard.server_version" + )}: + + ${this._network.client.server_version} +
+
+ + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.home_id" + )}: + + ${this._network.controller.home_id} +
+
+ + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.server_url" + )}: + + ${this._network.client.ws_server_url} +
+
+ + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_tx.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_tx.tooltip" + )} + + ${this._statistics?.messages_tx ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_rx.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_rx.tooltip" + )} + + ${this._statistics?.messages_rx ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_tx.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_tx.tooltip" + )} + + ${this._statistics?.messages_dropped_tx ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_rx.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.messages_dropped_rx.tooltip" + )} + + ${this._statistics?.messages_dropped_rx ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.nak.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.nak.tooltip" + )} + + ${this._statistics?.nak ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.can.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.can.tooltip" + )} + + ${this._statistics?.can ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_ack.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_ack.tooltip" + )} + + ${this._statistics?.timeout_ack ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_response.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_response.tooltip" + )} + + ${this._statistics?.timeout_response ?? 0} + + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_callback.label" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.statistics.timeout_callback.tooltip" + )} + + ${this._statistics?.timeout_callback ?? 0} + + + +
+
+ + ${this.hass.localize( + "ui.panel.config.zwave_js.common.remove_a_node" + )} + + + ${this.hass.localize( + "ui.panel.config.zwave_js.common.rebuild_network_routes" + )} + +
+
+ +
+

Third-party data reporting

+ ${this._dataCollectionOptIn !== undefined + ? html` + + ` + : html` `} +
+
+

+ Enable the reporting of anonymized telemetry and + statistics to the Z-Wave JS organization. This + data will be used to focus development efforts and improve + the user experience. Information about the data that is + collected and how it is used, including an example of the + data collected, can be found in the + Z-Wave JS data collection documentation. +

+
+
+ +
+

+ ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.nvm_backup.description" + )} +

+
+
+ ${this._backupProgress !== undefined ? html` ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.restoring" + "ui.panel.config.zwave_js.dashboard.nvm_backup.creating" )} - ${this._restoreProgress}%` - : html` + ${this._backupProgress}%` + : this._restoreProgress !== undefined + ? html` ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.download_backup" + "ui.panel.config.zwave_js.dashboard.nvm_backup.restoring" )} - -
- - - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.restore_backup" - )} - + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.nvm_backup.download_backup" + )} - -
- - ${this.hass.localize( - "ui.panel.config.zwave_js.dashboard.nvm_backup.migrate" - )} - `} -
-
- ` - : nothing} +
+ + + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.nvm_backup.restore_backup" + )} + + + +
+ + ${this.hass.localize( + "ui.panel.config.zwave_js.dashboard.nvm_backup.migrate" + )} + `} +
+ + ` + : nothing} +