diff --git a/apps/dashboard/src/App.tsx b/apps/dashboard/src/App.tsx index c0f3ef3..65f77ff 100644 --- a/apps/dashboard/src/App.tsx +++ b/apps/dashboard/src/App.tsx @@ -27,6 +27,11 @@ const intermediateBrightnessAtoms = atom({ [ZIGBEE_DEVICE.livingRoomFloorLamp]: atom(-1), }) +const DEVICE_FRIENDLY_NAMES = { + [ZIGBEE_DEVICE.deskLamp]: "Desk Lamp", + [ZIGBEE_DEVICE.livingRoomFloorLamp]: "Floor Lamp", +} as const + function App() { const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:" const wsHost = import.meta.env.VITE_API_HOST || window.location.host @@ -773,7 +778,7 @@ function LightControlTile({ })}
Desk light
+{DEVICE_FRIENDLY_NAMES[deviceName]}