dietpi-software install 134 162

reboot

#dependencies
apt-get install apparmor udisks2  systemd-journal-remote -y 
apt-get install jq wget curl avahi-daemon libglib2.0-bin network-manager dbus apparmor -y
apt-get install lsb-release apt-utils  -y


reboot

#check for current OS agent version https://github.com/home-assistant/os-agent/releases/latest

#OS Agent install as of 2/2/24
wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb
dpkg -i os-agent_1.6.0_linux_aarch64.deb


#Supervised install.  It always installs the latest version.
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb
apt install ./homeassistant-supervised.deb

#after a few mins http://192.168.1.xxx:8123 will be loading



####    DONE home assistant sould work now   ####\

#For my Orange pi5 changing mac address i had to
nano /etc/network/interfaces
#add
    auto eth0
iface eth0 inet dhcp
        hwaddress ether AA:BB:CC:DD:EE:FF




######              Old Way         ##################

dietpi-software install 162 134

apt-get install apparmor udisks2 systemd-journal-remote -y apt-get install jq wget curl avahi-daemon libglib2.0-bin network-manager dbus apparmor -y apt-get install lsb-release apt-utils -y

reboot
#after a few mins http://192.168.1.xxx:8123 will be loading



####    DONE home assistant sould work now   ####





#check for current OS agent version https://github.com/home-assistant/os-agent/releases/latest

#OS Agent install as of 2/2/24.   !!!Note replace the 1.16.0s with the latest version!!! 3 in total







# Supervised install.  It always installs the latest version.

dpkg -i os-agent_1.6.0_linux_aarch64.deb

wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb apt install ./homeassistant-supervised.deb

wget https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_aarch64.deb

HA remote shutdown commands
services.msc
     Remote Registry  to Automatic
allow an app windows firewall
     WMI to enable
          File and Printer Sharing
####  There are two options #####
  
     Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
         Add a 32-bit DWORD named "LocalAccountTokenFilterPolicy" with a value of "1"
reg add HKLM\Software\Microsoft\windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
device manager, on network card select
            wake on magic packet when system .....
####Option 1

regedit    
####Option 2

Open up power shell in admin mode and run: