[Bug 256885] [NEW PORT] www/py-homeassistant: Open-source home automation platform

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Jun 2021 01:12:11 +0000

--- Comment #5 from rozhuk.im_at_gmail.com ---
(In reply to Kubilay Kocak from comment #3)

This port (py-homeassistant only) does not respect FreeBSD ports deps, I

First attempt was to make standard port that installs all deps during
installation from ports tree.
I success with this, but HA is useless/unsupportable in this mode: it starts
and you can configure it. But then you try to add some integration - HA report
that you have missed deps. (There is an app argument to disable pip auto
There is 1800 "integrations" (plugins):
https://www.home-assistant.io/integrations/ this mean that complete port will
all features will require to install more than 2000 ports. We have no most of
these ports in ports tree.
And I can not do this work.

In current state port installs all requirements to allow it to bootstrap.
And some ports that auto loaded at bootstrap by pip.
I'am force to downgrade some pip packets versions to use python packets from
Probably better will be remove all additional ports and let pip install it.

As far as I understand HA install via pip all packets that missed or version
Original HA deps mostly have fixed versions (== x.y.z), and I replace it to >=
for some ports from ports tree.

Bootstrap is in homeassistant_precmd().
Without this HA will require more ports to start first time and produce some
errors at first 1-2 attempt to start.

First port version was done in time of python 3.7.
After update python to 3.8 and reinstall HA it bootstrap and download all 3.8
pip packets into /var/db/homeassistant/deps/lib/python3.8/site-packages.
I remove by hands /var/db/homeassistant/deps/lib/python3.7 to clean up space.

Current port state: it is installs and work, but have some non critical issues:
1. on info page /config/info it does not show that it is Virtual Environment
2. chromium does not work with web ui, some error in script
3. ff some times glitches in web ui, refresh page fix this
Probably all these issues may be fixed if more ports will have version that HA
requires instead of that I force to use from ports tree.

I run it few days and have few integrations: IPP, MQTT+tasmota (mosquitto, 1
device: ESP8266+BME680), mobile app (4 devices), weather - all works fine.
"recorder" configured to use mariadb (db_url: mysql+pymysql://...).

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wed Jun 30 2021 - 01:12:11 UTC

Original text of this message