Comments (7)
Hi! thanks for the report. I updated the script with some patches that can fix the problem. Can you please try it out?
from homeassistant_on_openwrt.
Hi! thanks for the report. I updated the script with some patches that can fix the problem. Can you please try it out?
I have tried it:
Result:
Almost working.
To make it work I had to install the missing "paho-mqtt" module as @k3lwin noted.
SSH into the router and install the missing module: pip install paho-mqtt
(V1.6.1 was installed)
NOTE: When i add the MQTT integration it takes ~ 2min before the configuration page is available (not sure if this is normal, but I'm not complaining MQTT is working :D )
Thank you for the update!
from homeassistant_on_openwrt.
Isn't paho-mqtt installed automatically with HA ? You can check it in /etc/homeassistant/deps/
Usually, it takes some time to install all the required packages before using it. Sometimes it is required to restart HA.
from homeassistant_on_openwrt.
@devbis this folder does not contain any pip modules, only aiogithubapi. This module I installed manually (it was a requirement to get the homeassistant comunity store HACS integration working)
This is my folder tree on the openwrt target:
/etc/homeassistant/deps/
└── lib
└── python3.10
└── site-packages
├── aiogithubapi
└── aiogithubapi-22.12.2.dist-info
I reran the first part the script were the requirements are collected inside the /tmp/ha_requirements.txt
file.
here the paho-mqtt==1.6.1
requirement is listed.
in the /tmp/requirements.txt
file which is statically defined inside the script this requirement is not listed.
from homeassistant_on_openwrt.
I just performed a clean install an ran the script again. (there is an issue with the installation of frozenlist but after fixing this the script is able to finish. However some dependencies are missing after the install, I get an error in the HA log about pycountry
missing after the install and when I try to add the MQTT integration a new error is generated and points to paho-mqtt==1.6.1
missing.
I found a clue inside the /tmp dir pip-log.txt
but I'm not sure why it is failing to install because when I do this manually it installs just fine.
To fix these errors i installed these packages manually and rebooted.
pip install paho-mqtt==1.6.1
pip install pycountry
home-assistant_2022-12-29T23-02-24.129Z.log
from homeassistant_on_openwrt.
I added "integration" component to the script as it is mentioned in logs.
The probem of installing paho-mqtt seems to be related to the network problems. I don't want to incorporate libraries that could not be used by end-users. E.g. installations without using MQTT at all.
As for pycountry, I didn't find any mentions of the package in the code.
from homeassistant_on_openwrt.
Thank you, I just checked the pycountry
module is a dependency of the radios
module (radio_browser integration), not sure why it failed to install. Probably not needed to update the script for this.
from homeassistant_on_openwrt.
Related Issues (20)
- Bundle and publish as official opkg HOT 1
- HA Log error radios==0.1.1 package not able to be installed HOT 3
- pip complaining about update HOT 1
- script fails at install of "frozenlist-1.3.3" package using pip HOT 2
- zeroconf HOT 1
- error: subprocess-exited-with-error HOT 7
- Script exit after opkg update HOT 7
- Installation on External Storage HOT 4
- Is it HomeAssistant OS or docker container? HOT 1
- How to delete previous owner? HOT 1
- Does this version support the full plugin? HOT 2
- Error on transport creation for incoming connection HOT 7
- bluetooth to wifi proxy support missing? HOT 1
- doesnt appear to work for Banana PI BPI-R4 / missing dependency libbz2 HOT 5
- unable to finish homeassistant init process HOT 5
- "sed: unmatched '/'" stops the installation. HOT 3
- Homeassistant have to be restarted before each access. HOT 5
- it can run on arm aarch64 platform? HOT 1
- Whether or not you can specify a mounting location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant_on_openwrt.