diff --git a/src/panels/config/devices/device-detail/integration-elements/mqtt/device-actions.ts b/src/panels/config/devices/device-detail/integration-elements/mqtt/device-actions.ts index ff3be5d1a9..faa99cf83d 100644 --- a/src/panels/config/devices/device-detail/integration-elements/mqtt/device-actions.ts +++ b/src/panels/config/devices/device-detail/integration-elements/mqtt/device-actions.ts @@ -1,3 +1,4 @@ +import { mdiInformation } from "@mdi/js"; import type { DeviceRegistryEntry } from "../../../../../../data/device_registry"; import type { DeviceAction } from "../../../ha-config-device-page"; import { showMQTTDeviceDebugInfoDialog } from "./show-dialog-mqtt-device-debug-info"; @@ -8,6 +9,7 @@ export const getMQTTDeviceActions = ( ): DeviceAction[] => [ { label: "MQTT Info", + icon: mdiInformation, action: async () => showMQTTDeviceDebugInfoDialog(el, { device }), }, ]; diff --git a/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts b/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts index 5685b053d4..e914e6aead 100644 --- a/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts +++ b/src/panels/config/devices/device-detail/integration-elements/zha/device-actions.ts @@ -1,3 +1,11 @@ +import { + mdiCogRefresh, + mdiDrawPen, + mdiFamilyTree, + mdiFileTree, + mdiGroup, + mdiPlus, +} from "@mdi/js"; import { navigate } from "../../../../../../common/navigate"; import type { DeviceRegistryEntry } from "../../../../../../data/device_registry"; import { fetchZHADevice } from "../../../../../../data/zha"; @@ -33,6 +41,7 @@ export const getZHADeviceActions = async ( if (!zhaDevice.active_coordinator) { actions.push({ label: hass.localize("ui.dialogs.zha_device_info.buttons.reconfigure"), + icon: mdiCogRefresh, action: () => showZHAReconfigureDeviceDialog(el, { device: zhaDevice }), }); } @@ -46,12 +55,14 @@ export const getZHADeviceActions = async ( ...[ { label: hass.localize("ui.dialogs.zha_device_info.buttons.add"), + icon: mdiPlus, action: () => navigate(`/config/zha/add/${zhaDevice!.ieee}`), }, { label: hass.localize( "ui.dialogs.zha_device_info.buttons.device_children" ), + icon: mdiFileTree, action: () => showZHADeviceChildrenDialog(el, { device: zhaDevice! }), }, ] @@ -64,16 +75,17 @@ export const getZHADeviceActions = async ( label: hass.localize( "ui.dialogs.zha_device_info.buttons.zigbee_information" ), + icon: mdiDrawPen, action: () => showZHADeviceZigbeeInfoDialog(el, { device: zhaDevice }), }, { label: hass.localize("ui.dialogs.zha_device_info.buttons.clusters"), + icon: mdiGroup, action: () => showZHAClusterDialog(el, { device: zhaDevice }), }, { - label: hass.localize( - "ui.dialogs.zha_device_info.buttons.view_in_visualization" - ), + label: hass.localize("ui.dialogs.zha_device_info.buttons.view_network"), + icon: mdiFamilyTree, action: () => navigate(`/config/zha/visualization/${zhaDevice!.device_reg_id}`), }, diff --git a/src/panels/config/devices/device-detail/integration-elements/zwave_js/device-actions.ts b/src/panels/config/devices/device-detail/integration-elements/zwave_js/device-actions.ts index 5201a4ae89..5687081ecc 100644 --- a/src/panels/config/devices/device-detail/integration-elements/zwave_js/device-actions.ts +++ b/src/panels/config/devices/device-detail/integration-elements/zwave_js/device-actions.ts @@ -1,3 +1,11 @@ +import { + mdiChatQuestion, + mdiCog, + mdiDeleteForever, + mdiHospitalBox, + mdiInformation, + mdiUpload, +} from "@mdi/js"; import { getConfigEntries } from "../../../../../../data/config_entries"; import { DeviceRegistryEntry } from "../../../../../../data/device_registry"; import { @@ -44,12 +52,14 @@ export const getZwaveDeviceActions = async ( label: hass.localize( "ui.panel.config.zwave_js.device_info.device_config" ), + icon: mdiCog, href: `/config/zwave_js/node_config/${device.id}?config_entry=${entryId}`, }, { label: hass.localize( "ui.panel.config.zwave_js.device_info.reinterview_device" ), + icon: mdiChatQuestion, action: () => showZWaveJSReinterviewNodeDialog(el, { device_id: device.id, @@ -57,6 +67,7 @@ export const getZwaveDeviceActions = async ( }, { label: hass.localize("ui.panel.config.zwave_js.device_info.heal_node"), + icon: mdiHospitalBox, action: () => showZWaveJSHealNodeDialog(el, { device, @@ -66,6 +77,7 @@ export const getZwaveDeviceActions = async ( label: hass.localize( "ui.panel.config.zwave_js.device_info.remove_failed" ), + icon: mdiDeleteForever, action: () => showZWaveJSRemoveFailedNodeDialog(el, { device_id: device.id, @@ -75,6 +87,7 @@ export const getZwaveDeviceActions = async ( label: hass.localize( "ui.panel.config.zwave_js.device_info.node_statistics" ), + icon: mdiInformation, action: () => showZWaveJSNodeStatisticsDialog(el, { device, @@ -97,6 +110,7 @@ export const getZwaveDeviceActions = async ( label: hass.localize( "ui.panel.config.zwave_js.device_info.update_firmware" ), + icon: mdiUpload, action: async () => { if ( isNodeFirmwareUpdateInProgress || diff --git a/src/panels/config/devices/device-detail/integration-elements/zwave_js/ha-device-info-zwave_js.ts b/src/panels/config/devices/device-detail/integration-elements/zwave_js/ha-device-info-zwave_js.ts index 637b895d62..69cd2b88ec 100644 --- a/src/panels/config/devices/device-detail/integration-elements/zwave_js/ha-device-info-zwave_js.ts +++ b/src/panels/config/devices/device-detail/integration-elements/zwave_js/ha-device-info-zwave_js.ts @@ -102,7 +102,7 @@ export class HaDeviceInfoZWaveJS extends SubscribeMixin(LitElement) { ` : ""}