# Firmware updates (OTA)

URL: https://docs.assistantcore.com/en/devices/ota-updates

Turn on Auto-update so ESP32 devices install new Assistant Core firmware over Wi-Fi, and check which version they run.

ESP32 devices can install new firmware over Wi-Fi (over the air, OTA), so you do not need to plug them into a computer again. Updates are off for a newly registered device until you turn on **Auto-update**.

## How updates work [#how-updates-work]

Every time a device connects to Wi-Fi, for example after a restart, it checks in with the platform. A device installs an update only when all of these are true:

- **Auto-update** is on for the device.
- Assistant Core has published firmware for the device's board.
- That firmware's version is higher than the version on the device. Devices never move to an older version.

The device then downloads the firmware, shows the upgrade progress on screen, installs it, and restarts on the new version. Its registration, Wi-Fi, and settings stay as they are.

The same check-in also delivers the server time, the activation code for a device that is not registered, and the connection details for voice. That is why a device that cannot reach the OTA URL never comes online. See [Configure the OTA URL](/en/devices/configure-ota-url).

## Turn on Auto-update [#turn-on-auto-update]

You need the **Assistant Owner** or **Assistant Admin** role on the assistant.

1. In the [Admin Panel](https://admin.assistantcore.com), select the assistant and go to **Devices**.
2. In **Connected devices**, switch on **Auto-update** for the device. The change saves right away.

The Web App does not have this setting.

## Install an update now [#install-an-update-now]

Restart the device (power off and on, or press **RST**). It checks for updates as soon as it reconnects to Wi-Fi. Keep it powered and on Wi-Fi until it restarts by itself.

<Callout type="warn">
Do not unplug the device while it shows the upgrade progress. If an update is interrupted, the device keeps running its previous version; restart it to try again, or reinstall from [Flash firmware](/en/devices/flash-firmware).
</Callout>

## Check the installed version [#check-the-installed-version]

Look at the **Last seen** column in **Admin Panel → Deploy → Devices**. Under the check-in time is the version the device reported at its last check-in. To compare with the latest release for your board, see the device card on [Flash firmware](/en/devices/flash-firmware).

## Troubleshooting [#troubleshooting]

<Accordions>
<Accordion title="The device does not update">
Check that **Auto-update** is on, then restart the device while it is on Wi-Fi. If the version under **Last seen** is already the latest release for the board, there is nothing to install.
</Accordion>

<Accordion title="The device ran firmware I flashed myself and stopped updating">
Updates are matched by board type. Firmware built for a different board, or with a higher version number than the published release, does not receive updates. Reinstall from [Flash firmware](/en/devices/flash-firmware).
</Accordion>
</Accordions>