diff --git a/src/panels/config/zha/zha-add-devices-page.ts b/src/panels/config/zha/zha-add-devices-page.ts index ff020d8a3e..04e7532518 100644 --- a/src/panels/config/zha/zha-add-devices-page.ts +++ b/src/panels/config/zha/zha-add-devices-page.ts @@ -72,7 +72,9 @@ class ZHAAddDevicesPage extends LitElement { : html`
- Search again + ${this.hass!.localize( + "ui.panel.config.zha.add_device_page.search_again" + )}
- Cluster Attributes + + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.header" + )} +
- View and edit cluster attributes. + + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.introduction" + )} +
- Select an attribute to view or set its value + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.help_attribute_dropdown" + )}
` : ""} @@ -138,30 +150,40 @@ export class ZHAClusterAttributes extends LitElement { return html`
- Get Zigbee Attribute + + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.get_zigbee_attribute" + )} + ${this.showHelp ? html`
- Get the value for the selected attribute + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.help_get_zigbee_attribute" + )}
` : ""} @@ -170,8 +192,11 @@ export class ZHAClusterAttributes extends LitElement { domain="zha" service="set_zigbee_cluster_attribute" .serviceData="${this._setAttributeServiceData}" - >Set Zigbee Attribute + ${this.hass!.localize( + "ui.panel.config.zha.cluster_attributes.set_zigbee_attribute" + )} + ${this.showHelp ? html`
- Cluster Commands + + ${this.hass!.localize( + "ui.panel.config.zha.cluster_commands.header" + )} +
- View and issue cluster commands. + + ${this.hass!.localize( + "ui.panel.config.zha.cluster_commands.introduction" + )} +
${this._showHelp ? html` -
Select a command to interact with
+
+ ${this.hass!.localize( + "ui.panel.config.zha.cluster_commands.help_command_dropdown" + )} +
` : ""} ${this._selectedCommandIndex !== -1 ? html`
@@ -134,8 +152,11 @@ export class ZHAClusterCommands extends LitElement { domain="zha" service="issue_zigbee_cluster_command" .serviceData="${this._issueClusterCommandServiceData}" - >Issue Zigbee Command + ${this.hass!.localize( + "ui.panel.config.zha.cluster_commands.issue_zigbee_command" + )} + ${this._showHelp ? html` - + - Select cluster to view attributes and commands + ${this.hass!.localize( + "ui.panel.config.zha.clusters.help_cluster_dropdown" + )}
` : ""} diff --git a/src/panels/config/zha/zha-device-card.ts b/src/panels/config/zha/zha-device-card.ts index bec3ef9c90..14d909a723 100644 --- a/src/panels/config/zha/zha-device-card.ts +++ b/src/panels/config/zha/zha-device-card.ts @@ -155,17 +155,29 @@ class ZHADeviceCard extends LitElement {
Nwk:
${formatAsPaddedHex(this.device!.nwk)}
LQI:
-
${this.device!.lqi || "Unknown"}
+
${this.device!.lqi || + this.hass!.localize("ui.dialogs.zha_device_info.unknown")}
RSSI:
-
${this.device!.rssi || "Unknown"}
-
Last Seen:
-
${this.device!.last_seen || "Unknown"}
-
Power Source:
-
${this.device!.power_source || "Unknown"}
+
${this.device!.rssi || + this.hass!.localize("ui.dialogs.zha_device_info.unknown")}
+
${this.hass!.localize( + "ui.dialogs.zha_device_info.last_seen" + )}:
+
${this.device!.last_seen || + this.hass!.localize("ui.dialogs.zha_device_info.unknown")}
+
${this.hass!.localize( + "ui.dialogs.zha_device_info.power_source" + )}:
+
${this.device!.power_source || + this.hass!.localize("ui.dialogs.zha_device_info.unknown")}
${ this.device!.quirk_applied ? html` -
Quirk:
+
+ ${this.hass!.localize( + "ui.dialogs.zha_device_info.quirk" + )}: +
${this.device!.quirk_class}
` : "" @@ -238,9 +250,11 @@ class ZHADeviceCard extends LitElement { this.showActions ? html`
- Reconfigure Device + + ${this.hass!.localize( + "ui.dialogs.zha_device_info.buttons.reconfigure" + )} + ${this.showHelp ? html`
@@ -256,8 +270,11 @@ class ZHADeviceCard extends LitElement { domain="zha" service="remove" .serviceData="${this._serviceData}" - >Remove Device + ${this.hass!.localize( + "ui.dialogs.zha_device_info.buttons.remove" + )} + ${this.showHelp ? html`
@@ -270,7 +287,9 @@ class ZHADeviceCard extends LitElement { ${this.device!.power_source === "Mains" ? html` - Add Devices + ${this.hass!.localize( + "ui.panel.config.zha.common.add_devices" + )} ${this.showHelp ? html` diff --git a/src/panels/config/zha/zha-network.ts b/src/panels/config/zha/zha-network.ts index d6d4ef10c7..a8c5761aef 100644 --- a/src/panels/config/zha/zha-network.ts +++ b/src/panels/config/zha/zha-network.ts @@ -41,19 +41,27 @@ export class ZHANetwork extends LitElement { return html`
- Network Management + + ${this.hass!.localize( + "ui.panel.config.zha.network_management.header" + )} +
- Commands that affect entire network + + ${this.hass!.localize( + "ui.panel.config.zha.network_management.introduction" + )} +
- Add Devices + ${this.hass!.localize("ui.panel.config.zha.common.add_devices")} ${this._showHelp ? html` diff --git a/src/panels/config/zha/zha-node.ts b/src/panels/config/zha/zha-node.ts index 01a7b5c57a..4343953d5c 100644 --- a/src/panels/config/zha/zha-node.ts +++ b/src/panels/config/zha/zha-node.ts @@ -54,7 +54,11 @@ export class ZHANode extends LitElement { return html`
- Device Management + ${this.hass!.localize( + "ui.panel.config.zha.node_management.header" + )}
- Run ZHA commands that affect a single device. Pick a device to see a - list of available commands.

Note: Sleepy (battery powered) - devices need to be awake when executing commands against them. You can - generally wake a sleepy device by triggering it.

Some - devices such as Xiaomi sensors have a wake up button that you can - press at ~5 second intervals that keep devices awake while you - interact with them. + ${this.hass!.localize( + "ui.panel.config.zha.node_management.introduction" + )} +

+ ${this.hass!.localize( + "ui.panel.config.zha.node_management.hint_battery_devices" + )} +

+ ${this.hass!.localize( + "ui.panel.config.zha.node_management.hint_wakeup" + )}
@@ -97,7 +107,9 @@ export class ZHANode extends LitElement { ${this._showHelp ? html`
- Select device to view per-device options + ${this.hass!.localize( + "ui.panel.config.zha.node_management.help_node_dropdown" + )}
` : ""} diff --git a/src/translations/en.json b/src/translations/en.json index 761b21376b..bec095541b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -566,11 +566,20 @@ "zha_device_info": { "manuf": "by {manufacturer}", "no_area": "No Area", + "buttons": { + "add": "Add Devices", + "remove": "Remove Device", + "reconfigure": "Reconfigure Device" + }, "services": { "reconfigure": "Reconfigure ZHA device (heal device). Use this if you are having issues with the device. If the device in question is a battery powered device please ensure it is awake and accepting commands when you use this service.", "updateDeviceName": "Set a custom name for this device in the device registry.", "remove": "Remove a device from the ZigBee network." }, + "quirk": "Quirk", + "last_seen": "Last Seen", + "power_source": "Power Source", + "unknown": "Unknown", "zha_device_card": { "device_name_placeholder": "User given name", "area_picker_label": "Area", @@ -1190,10 +1199,49 @@ "zha": { "caption": "ZHA", "description": "Zigbee Home Automation network management", + "common": { + "add_devices": "Add Devices", + "clusters": "Clusters", + "devices": "Devices", + "manufacturer_code_override": "Manufacturer Code Override", + "value": "Value" + }, "add_device_page": { "header": "Zigbee Home Automation - Add Devices", "spinner": "Searching for ZHA Zigbee devices...", - "discovery_text": "Discovered devices will show up here. Follow the instructions for your device(s) and place the device(s) in pairing mode." + "discovery_text": "Discovered devices will show up here. Follow the instructions for your device(s) and place the device(s) in pairing mode.", + "search_again": "Search Again" + }, + "network_management": { + "header": "Network Management", + "introduction": "Commands that affect the entire network" + }, + "node_management": { + "header": "Device Management", + "introduction": "Run ZHA commands that affect a single device. Pick a device to see a list of available commands.", + "hint_battery_devices": "Note: Sleepy (battery powered) devices need to be awake when executing commands against them. You can generally wake a sleepy device by triggering it.", + "hint_wakeup": "Some devices such as Xiaomi sensors have a wake up button that you can press at ~5 second intervals that keep devices awake while you interact with them.", + "help_node_dropdown": "Select a device to view per-device options." + }, + "clusters": { + "help_cluster_dropdown": "Select a cluster to view attributes and commands." + }, + "cluster_attributes": { + "header": "Cluster Attributes", + "introduction": "View and edit cluster attributes.", + "attributes_of_cluster": "Attributes of the selected cluster", + "get_zigbee_attribute": "Get Zigbee Attribute", + "set_zigbee_attribute": "Set Zigbee Attribute", + "help_attribute_dropdown": "Select an attribute to view or set its value.", + "help_get_zigbee_attribute": "Get the value for the selected attribute.", + "help_set_zigbee_attribute": "Set attribute value for the specified cluster on the specified entity." + }, + "cluster_commands": { + "header": "Cluster Commands", + "introduction": "View and issue cluster commands.", + "commands_of_cluster": "Commands of the selected cluster", + "issue_zigbee_command": "Issue Zigbee Command", + "help_command_dropdown": "Select a command to interact with." } }, "zwave": {