SKEN
Start here

Home Assistant explained: devices, entities, automations and the rest

TL;DR

An integration connects to your hardware and creates devices. Every device has entities – single values and controls. Automations react to entities, scenes set many of them at once and dashboards show them on cards. Learn these few words and the rest of Home Assistant makes sense.

The first time you open Home Assistant, it throws a lot of words at you: integrations, entities, helpers, scenes, scripts, HACS, cards… You don't need to memorise them. You only need to see how they fit together – and one picture in your head is enough for that.

The whole thing in one line

Integration → device → entity → automation / scene → dashboard

It's easiest to explain on something concrete. Take a smart washing machine, for example an Electrolux.

  • The integration is how the washing machine talks to Home Assistant. The Electrolux integration knows how to connect to the machine and what the data it sends means – so HA knows what is what.
  • The device is the washing machine itself. In HA you see it as one item with its manufacturer, model and the room it stands in.
  • Entities are the machine's individual functions and readings. You can read or control each one separately.
Washing machine entityWhat it showsExample state
Wash statewhich phase the machine is inwashing, spinning, finished
Time remaininghow long is left42 min
Finish timewhen it will be done14:35
Selected programmewhat is runningCotton
Temperaturehow hot it washes40 °C
Spin speedhow fast it spins1200 rpm

Everything you do later, you do with entities, not with the whole machine. The automation "send me a message when the wash is done" only watches the wash state entity. A dashboard card in turn shows the time remaining and the selected programme.

It works the same with a small sensor: the Zigbee2MQTT integration finds a motion sensor in the bathroom (a device). It has several entities: motion, illuminance, battery and temperature. The automation "light on when there is motion" only works with the motion entity.

The words you will see everywhere

TermWhat it isExample
IntegrationThe connection to a brand, protocol or serviceElectrolux, Zigbee2MQTT, Shelly, Solarman
DeviceOne physical (or virtual) thing the integration foundWashing machine, bathroom motion sensor
EntityOne value or control of a devicebinary_sensor.bathroom_motion
State and attributesThe entity's current value and extra detailson, brightness 80 %
AreaWhere a device lives; everything else is sorted by itBathroom, Living room
AutomationWhen something happens, and if it fits, do thismotion after dark → light
SceneA saved state of many entities at onceMovie night
ScriptA sequence of steps you run with one commandLeaving home
HelperYour own virtual entitya "Guests at home" toggle
Apps (add-ons)Extra programs running next to HA on the same machineMosquitto, Zigbee2MQTT
HACSCommunity store for unofficial integrations and cardsAI Energy, Igy Cards
Dashboard and cardA screen of your home and one block on itphone overview, thermostat card

The entity is what matters most

Every entity has an ID in the form domain.name. The domain tells you what it is: light is a light, switch a switch, sensor a measured value, binary_sensor a yes/no thing (motion, open window), climate a thermostat. It always has a state too – for example on, 21.5, or unavailable when the device stops talking.

When something doesn't work, the first place to look is Developer tools → States. You will see every entity there, with its state and attributes.

An automation has three parts

  1. Trigger – when something should happen (motion, time, a change in electricity price).
  2. Condition – whether it should happen right now (it is dark, someone is home).
  3. Action – what happens (turn on a light, send a notification).

You can click all of it together in the UI, no YAML needed. But it helps to know what it looks like inside – one day you will copy it from a guide:

automations.yaml
alias: "Bathroom – light on motion"
triggers:
  - trigger: state
    entity_id: binary_sensor.bathroom_motion
    to: "on"
conditions:
  - condition: sun
    after: sunset
actions:
  - action: light.turn_on
    target:
      entity_id: light.bathroom_ceiling

Scene, script or automation?

  • A scene is a snapshot: "these lights at 30 %, blinds down". It doesn't wait and doesn't decide anything.
  • A script is a recipe, step by step: "turn everything off, wait a minute, lock the door". You, a button or an automation starts it.
  • An automation starts by itself when its trigger fires.

Apps and HACS – how to extend Home Assistant

Apps (formerly add-ons) are separate programs that run next to Home Assistant – for example the Mosquitto MQTT broker or Zigbee2MQTT. You have them if you run Home Assistant OS.

HACS is a community store. It has integrations and cards that are not official – often exactly the ones you are missing. My own projects install through HACS too. Just keep in mind: anything unofficial can break after an HA update.

Dashboards and cards

A dashboard is a screen of your home – on your phone, computer or a tablet on the wall. It is made of views (tabs), and views are made of cards. A card is one block: a thermostat, a graph, a camera, a list of lights.

To start, the automatic dashboard HA builds from your areas is completely fine. Build your own once you know what you really want to see.

Common beginner mistakes

  • Automations on a device instead of an entity. A device trigger is tied to one specific piece of hardware – replace the sensor and the automation stops working. An entity trigger only needs renaming.
  • Keeping default names like sensor.0x00158d0001_temperature. In a month you won't know what it is.
  • Twenty things from HACS in week one. Start without any and add them only when something is really missing.
  • No backup before the first big update. Turn on automatic backups and keep at least one off the HA machine.
  • Everything at once. Start with one room and one automation that actually helps you.

What's next

Now you know what Home Assistant is made of. In the next part we pick what to run it on – a Raspberry Pi, a mini PC, a virtual machine in Proxmox or a ready-made box – and why I run HA as a VM on Proxmox.