openwrt: Install Home Assistant on your OpenWrt device with
you may want to uncomment thecorresponding line in/usr/lib/python3.11/site-packages/homeassistant/generated/config_flows.pyalso. Or you can create custom_components directory in /etc/homeassistant andcopy it there. Try to install requirements from manifest.json with pip3 manuallyto check it installs and doesn't require pre-compiled C libraries.Otherwise, like ZHA or zigbee2mqtt. NOTE: It may require restarting Home Assistant after adding a newcomponent via the UI to let it see newly installed requirements.E.g. ZHA installs paho-mqtt and will not allow configuring it unless HA isrestarted. Enabling other components and installing custom You may want to add more components to your HA installation.In this case you have to download tar.gz from PyPI:Then extract the content and copy the required components to/usr/lib/python3.11/site-packages/homeassistant/componentsIf the component uses the frontend wizard, and ZHA components as they arewidely used with smart home solutions. It is distributed with a shell script that downloads and installs everything that required for a clean start. Requirements: 256 MB storage space 256 MB RAM OpenWrt 23.05.0 or newer installed Generic installation Then, you have to cross-compile python3 dependencies and installthem as ipk packages. If the dependency is already installed via opkg or via pip3 you may wantto fix the strict dependency in manifest.json to a weaker one or removeversions at all. , ESPHome, it is connected to the zigbee chip. It is REQUIRED to erase Persistent Data Manager (PDM) before adding new devices.Otherwise, download the installer and run it. wget https://raw.githubusercontent.com/openlumi/homeassistant_on_openwrt/23.05/ha_install.sh -O - | sh After script prints Done. you have Home Assistant installed.Start the service or reboot the device to get it start automatically.The web interface will be on 8123 port after all components load. The only components with flows included are MQTT and ZHA.After adding a component in the interface or via the configHA could install dependencies and fails on finding them after installation.In this case restarting HA could work. Other components are not tested and may require additional changed inrequirement versions or python libraries. ZHA usage on Xiaomi Gateway The component uses internal UART to communicate with ZigBee chip.The chip has to be flashed with a proper firmware to be able tocommunicate with the HA. The recommended firmware is v3.23: https://github.com/openlumi/ZiGate/releases/download/55f8--20230114-1835/ZigbeeNodeControlBridge_JN5169_COORDINATOR_115200.bin You could try another Zigate firmwares for JN5169 chip. The baud ratemust be 115200 as it is hardcoded in zigpy-zigate. Use /dev/ttymxc1 port for ZHA configuration, device adding fails. Use luci zigbee tools submenu to send erase PDM command with the button orerase PDM in console: jntool erase_pdm Zigbee port must not be locked with any program, it keeps MQTT, Homeassistant on OpenWrt This repo provides tools to install the latest version of Home Assistant. (2024.3.x)on a system with OpenWrt 23.05+ installed. It provides the reduced version of HA with only minimal list of componentsincluded. Additionally,。
评论列表