This guide explains how to access the TrueNAS Scale VM's serial shell, delete the ip_bans.yaml
file in Home Assistant OS, and optionally edit configuration.yaml
.
-
Open TrueNAS Scale UI:
- Log into your TrueNAS Scale dashboard.
-
Navigate to Virtual Machines:
- Go to Virtual Machines in the side menu.
-
Access the Home Assistant VM:
- Locate your Home Assistant VM in the list and click on it.
-
Launch Serial Shell:
- Select Shell (or Serial Console depending on your TrueNAS version) to access the command line for your Home Assistant OS.
Once in the shell, run the following commands:
# Navigate to the Home Assistant config directory in the TrueNAS Scale VM environment
cd /mnt/data/supervisor/homeassistant
# Delete the IP ban file to clear all blocked IPs
rm ip_bans.yaml
# (Optional) Edit configuration.yaml with vi for adjustments
vi configuration.yaml
# Restart Home Assistant to apply changes
ha core restart