Skip to content
Twentyfirst UIHalo

Device Tile

Connectors · DeviceTile

View as Markdown

A smart-home device (from Google Home, Apple Home, SmartThings, tado°, Dyson, eufy, Dreame …): its reading, its state and the controls its kind needs.

  • kind: switch, light, thermostat, vacuum, purifier, camera, lock or sensor sets the icon.
  • onToggle adds a switch; target with onTarget adds a − / + stepper for thermostats.
  • battery (low below 15 %), quick actions, offline, and the service it comes from.
Living roomHeating
20.8 °CHeating · humidity 46 %
Target 21.5 °C
Ceiling lightKitchen
80 %Warm white
Robot vacuumGround floor
CleaningHallway · 18 m² to go
Battery 64%
Air purifierBedroom
AQI 12Good · night mode
Front doorOutside
Offline
Window sensorOffice
Closed
Battery 12%

Props

DeviceTile

PropTypeNotes
namestringRequired
room?string
icon?IconName
kind?"switch" | "light" | "thermostat" | "vacuum" | "purifier" | "camera" | "lock" | "sensor"The kind sets the default icon and which controls appear.
on?booleanOn or off; with `onToggle` a switch.
onToggle?(on: boolean) => void
value?ReactNodeThe main reading: "21.5 °C", "Cleaning", "AQI 12".
status?ReactNodeA line under the value: "Heating to 22 °C", "Kitchen · 18 m² left".
target?numberThermostat target in °C; with `onTarget` a − / + stepper (steps of `step`, default 0.5).
onTarget?(value: number) => void
step?number
battery?numberBattery in percent (vacuums, sensors, locks).
actions?{ label: string; icon?: IconName; onClick?: () => void }[]Quick actions: "Start", "Dock", "Boost".
offline?booleanThe device does not answer.
service?ServiceRef
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.