- Install VSCode Extensions
- C/C++
- PlatformIO IDE
- PlatformIO->PIO Home->Open->New Project
- Project name: Your project's name.
- Board:
Espressif ESP32 Dev Module
, this my hardware board. - Framework: My alternative is
Arduino
.
- Create a new instance
- Choose
Debian 12
- Choose
CPU 2 vCPU
- Choose
RAM 2GB
- Choose
Storage 60GB
- Instance Network
- IPv4 Firewall:
All protocols: ALL
- IPv4 Firewall:
Reference: https://docs.home-assistant.io/installation/supervised-installation/
sudo apt update
sudo apt upgrade
sudo apt install \
apparmor \
bluez \
cifs-utils \
curl \
dbus \
jq \
libglib2.0-bin \
lsb-release \
network-manager \
nfs-common \
systemd-journal-remote \
systemd-resolved \
udisks2 \
wget -y
curl -fsSL get.docker.com | sh
Download the latest Debian package from OS Agent GitHub release page at:
https://github.com/home-assistant/os-agent/releases/latest
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_x86_64.deb
sudo dpkg -i os-agent_1.6.0_linux_x86_64.deb
wget -O homeassistant-supervised.deb https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
sudo apt install ./homeassistant-supervised.deb
Reference: https://community.home-assistant.io/t/debian-12-ha-supervisor-installation/640446/19
I think I¡¯ve found a solution. The problem is indeed with the cloud images of Debian. They come with netplan and systemd-networkd. This prevents Network Manager from taking over the interface. So the solution is:
sudo apt remove netplan.io
sudo systemctl disable systemd-networkd
sudo reboot
Reference: https://docs.emqx.com/en/emqx/latest/deploy/install.html
- Settings -> Add-ons -> Add-on store -> Search EMQX -> Install
- Enter the EMQX server address, port, username, and password
- Turn on
Start on boot
andShow in sidebar
- Open a browser and navigate to
http://<lightsail-public-ip>:8123
Reference: https://hacs.xyz/docs/use/
- Settings -> Devices & Services -> Add Integration
- Search for
MQTT
- Enter the MQTT server address, port, username, and password