#installation-archived
1 messages Β· Page 13 of 1
I can't find a way to install it without the add on store easily
Really?
What's your install method currently?
https://mosquitto.org/download/
or https://github.com/vvatelot/mosquitto-docker-compose
or any number of guides
This is my current compose file: https://ibb.co/NtyCYr3, I'm a bit confused on where to go from here. I fired up the web UI for mqtt and added a light bulb
So now I'm looking to do anything in HA with it
Line 21
mqtt:
container_name: mqtt
image: eclipse-mosquitto:2.0
``` you already have mosquitto
Right I mentioned I figured I already have it, but I'm confused how it all ties together
What do you mean?
I added a light now right, I can see it in the zigbee2mqtt UI
But how can I do anything with it in HA
configure HA support in Z2M
I did that, the first thing I think I'm stuck at
Stuck at .. what?
Yes
What is the url or whatever π€
The broker field is the IP of the host running Mosquitto
Or, if you're running HA in the same Compose stack, just use the container name
Getting failed to connect, using mqtt as name and default port 1883
Then use the IP of the host
What is your preferred way of doing automations? yaml or?
I'm not sure if I wanna go the yaml route or node red π€
Do I need to run docker compose up -d after reboot of host machine with container install? If that's the case, I imagine there's a way to have it start on boot?
Then I'm all set. Thanks.
You can list all your running containers with docker ps if you want to double check
How do you install something like https://github.com/basnijholt/adaptive-lighting without the addon store?
Thats not an add-on, its an integration. You just need to install hacs first https://hacs.xyz/ then can add that
Ah, from what I understand people are against the add on store (supervisor), but this is different?
People aren't against the add on store, just its not required to have an add on store
HACS is an easy one click option for integrations which are integrated into HA (think like your MQTT integration, your ZHA integration, your tuya integration), compared to Add ons which are whole separate programs
Thanks
Btw what should be the permissions of the home assistant config folder when running with docker compose?
I currently have to edit anything in there with the root account
Like the instruction for HACS is wget -O - https://get.hacs.xyz | bash - which failed to create a custom_components folder because of permissions and after creating it manually it fails to create a zip
HTTP request sent, awaiting response... 200 OK
Length: 3966841 (3.8M) [application/octet-stream]
hacs.zip: Permission denied
Cannot write to βhacs.zipβ (Success).
ah nvm had to docker bash and run inside
I just have the permissions owned by my main user with drwxr-xr-x as the perms
Does anyone here know a way to make IPs mentioned in configuration.yaml be the same to the way we address the server? For context, my setup allows connecting to HA via LAN (192.168.x.x) and VPN (10.100.x.x). I want to access services linked via panel_iframe on the same server without specifiying the IP (or DNS name).
Hi there,
just a quick question
i have installed HAOS on a usb drive on a iMac but the WIFI card is not recognised, is there a way to enable the card?
iframe is just a pointer to the browser on where to actually find the resource
i'm doing first time container install as well. i added a new group (addgroup on debian host) and then added my user to that group and set the group perms on the folder. that allows me to write without sudo-ing. it needed a restart to get the permissions reloaded properly.
How do I restore a backup in HA? Just trying to migrate to another machine, and cant see any obvious way to restore
how did you install HA?
Is your new install HAOS?
Because, if it's not HAOS there's no UI based restore
For non-HAOS:
https://www.home-assistant.io/integrations/backup
This backup file can be used if you migrate to Home Assistant Operating System.
Ahhh, I'vve gone straight from HAOS to Docker
Then you get to un-zip that backup and extract things manually
I have received this Error when trying to setup Home Assistant Supervised [error] Ubuntu 22.04.1 LTS is not supported! I don't know if I have to update or downgrade
If you're trying to install Supervised, no it's not
Somebody didn't read the requirements...
Hi guys... Just got a notice that a Supervisor 2022.12.1 is available, but trying to install it I get an error no such version exists? What? Help please...
true i should have done that before
Also... don't use Supervised
If you want add-ons use HAOS, in a VM if necessary
If you want to run other software then just use Container
My world... Apparently it just checked out, updated in the background while the gui still" worked" (as in throwing errors). Now reported installed tho...
but I'm not using an VM I'm using an computer in my home with ubuntu
@stuck river When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
Right, so ... either use Container, or install HAOS inside a VM
You can run VMs in Ubuntu
They're not something limited to only Windows you know
ok
Supervised is a minefield, doubly so if you're not even going to read the requirements
i think ill just install core
I'd go with Docker for Container, unless you're comfortable building Python from source?
with core?
Yes
ok ill do that
https://github.com/home-assistant/architecture/blob/master/adr/0002-minimum-supported-python-version.md
Every December HA deprecates a Python version, so if you're running Core you'll need to build and install Python from source
thank you
i'm working through a noob container install process at the moment. There's a lot of stuff you need to know or learn about docker to use it. It's not too difficult but there is still that isn't in the docs
one important thing to know is that docker compose down deletes the container. if you want to stop it then you need to use docker compose stop
yeah but there isnt really any reason to ever do that
TBH I'd also not expect the HA docs to cover how to use Docker in any depth, they've deliberately stripped all of that kind of thing out
that's unfortunate. it makes the docs hard to use and unfriendly to onboarding people.
just adding the little things like the docker compose.yml convention and needing to be in the current directory to issue commands would make it far less mysterious.
Yup... it'd be good to have some more in there for people who're not deep in Docker knowledge already
They're easy docs so i can open a PR to change just those pages once i'm comfortable with my build. If they've already removed that sort of content it wouldn't be worth doing though.
It's the kind of thing that'll be directed to a community guide on the forum 
unfortunate. those aren't very discoverable.
since i'm here. I've got a bluetooth reciever which i've passed through to my debian system. i can see it identified correctly in lsusb. i can also see that the bluetooth service is working. from what i can find this should "just work" through dbus in the ha container, but it doesn't. any hints?
ah, thanks. is bluez just a package?
Scroll down on that page π
Create a community guide then PR link it from the docs? Might work
But best part of docker, even if you delete the container it doesn't do anything except have to re create it. Since the config, etc is all stored outside of it
Assuming you did actually map that config folder... we've had a few people here who overlooked that
i did... the second time π
You only make that mistake once
I discovered the other day I never mapped my mariaDB to a directory. I am still not sure where the data actually is, but its worked for 12 months and nothing has broken yet
ah, the old "where is my data" fun.
The good news is that you can recover those files, fairly easily
You can either copy them out from the container, or just snag them off the host file system
Yeah thats going to be next years problem. I've got nothing important on it for now, just annoying. I have no clue how I managed to do it
Are the only things needed from the container these? /var/lib/mysql & /etc/mysql/my.cnf
basicaly all the mysql and mariadb images will automaticaly use a volume for /var/lib/mysql if you dont mount something there yourself
Time to hunt it down, it is my own fault for forgetting, and its quite embarrassing too
docker inspect -f '{{ .Mounts }}' containerid
``` is your friend
Aha thank you
wow, bluetooth works and detects my clocks. neat.
so i was working on installing home assistant using this tutorial https://peyanski.com/how-to-install-home-assistant-supervised-official-way/#SMART_HOME_Getting_Started_Actionable_Guide but i keep getting this error and i dont know how to fix it
Yeah just don't use supervised
If you don't read the requirements you will encounter issues
Recommend HAOS for a Pi
hmm ok
That tutorial is misleading because it says you can run other things on the OS along with Supervised, but that's an unsupported use case. It also says to use Raspberry Pi OS instead of Debian, which is also not supported
well the reason i was using it is cause i wanna see if i cant get HA on a r pi 2
The rpi2 isn't supported anymore
i know that, thats why i said if i cant
I used that tutorial successfully to install HA supervised on a RPI 3B. Only needed one or two tweaks that weren't mentioned in the review.
did you ever bump into anything like i got?
I would like to use a more supported version but unfortunately my use case (the Pi is also a controller so I need to run a display manager and browser)
No, that looks a bit different. I just had some missing file dependencies that weren't mentioned in the tutorial. I did install plain Debian on the Pi though, since I had found out through other ways that it was more supported than RPiOS
hmm, guess i gotta go out and but a supported pi then :/
With current Pi prices being what they are, you'd probably be better off with a used low power desktop machine
its hard to follow tutorials with that though
Good luck finding a Pi at this moment in time. My 3B is a tad short on memory for what it has to do but all the so called lightweigth browsers seem to get stuck when running HA frontend so Chromium is eating a lot of memory. But a 4GB Pi 4 is unavailable everywhere I looked. Have you tried putting plain Debian on the Pi? That seems to be the first thing that generates an error.
Something like this is probably about the same price as a scalped Pi, but considerably faster: https://www.ebay.com/itm/354458365920
i was running a VM HA on my main pc but could not figure out if i could communicate to my r2 to like turn off the light or something
That thing would look a lot more ugly on the wall of my living room than the Pi with 7" touchscreen that is there now. And it is missing the GPIO pins to control my heater. I was looking at ODROID devices but I'm a bit hesitant because they are much less common and I'm afraid I will run into compatibility problems at some point. Any Pi-like SBC you could recommend?
The ODROID N2+ is officially supported and is/was sold as the Home Assistant Blue. There's also the ODROID H2 or H3 lines which are just regular x86 machines
Not "more supported" but is the only supported OS. Alongside keeping all the dependencies exactly up to date. And if things are not right then it may cause issues
@drifting fiber if you're wanting to run HA on a pi2 you could try a container based install. It will be very slow though so recommend using some other hardware
yeah its fine my vm seems to work decent for now but i guess while on the topic what is a "container based install"?
'Supported' is more supported than 'unsupported', isn't it?
Running a docker container for it
hmm (apologies from the start i am very new to this stuff) how would i do that?
Ah, thanks, I didn't know the HA Blue is actually and Odroid. I will take a deeper look into the different boards they have. THe N2L has an MIPI connector so maybe it will work with the RPI touchscreen?
Not sure, I don't have an ODRIOD myself, but yeah Blue is just an N2+ under the hood: https://www.home-assistant.io/blue/
"I just managed to install HAOS on non-UEFI system. If anyone will be stucked with this here is an overview of what I did:
Write image of haos_generic-x86-64-9.4.img.xz with Etcher
Boot some linux distro (e.g. Ubuntu) and create 3 partitions at this SSD/HDD: /boot (~ 500MB), bios_grub (~ 1MB) and root (I used 20GB for this)
Install some Linux on this partitions (I used Debian) next to HAOS, which will install Grub at disk bootloader area e.g. /dev/sda (itβs possible to install Grub only, not whole linux distro, as the Grub-bios is what is needed actually)
Boot installed Linux distro, mount HAOS EFI system partition with grub-efi and append content of grub.cfg to your /boot/grub/grub.cfg
Reboot - menuentry for HAOS should now be present. Now itβs possible to boot HAOS.
With βset defaultβ set HAOS the default boot system so additional installed linux will not boot.
I think itβs simplest way to have HAOS on non-UEFI system. "
Would this theoretically work?
From the thread... it seems like a few people were successful.... but I imagine most non-UEFI hardware at this point is probably even more underpowered than Pi3s
just working through this myself. essentially you install docker on an os and then run HaOS as a docker container. The downsides are that you can't have integrated addons and you manage it with docker commands (to start and stop).
you'll find that people here really really don't want you to use supervised installs. I think they need to change the feature matrix to make that a lot clearer.
It really doesn't have much up-side
(but I agree on the documentation aspect, too)
Fortunately the documentation is open source so anyone can suggest a change π
anyone running HA with in Proxmox?
need help getting BT working
getting error usb 2-1: device descriptor read/64, error -110
simply moving the last line up to the top would make that item carry more weight. usually these tables list the important things first and the small stuff last.
How I can enable "device_tracker" ?
What kind of device tracker do you want? It's probably an #integrations-archived, but the #ios_and_mac-archived or #android-archived apps are often a good starting place.
I try to add my router
I added this :
# Router
device_tracker:
- platform: thomson
host: 10.0.0.1
username: admin
password: xxxx
new_device_defaults:
track_new_devices: true
but it don't seem to have any effect
new_device_defaults:
track_new_devices: true
Those lines are not valid for the Thomson #integrations-archived: https://www.home-assistant.io/integrations/thomson/
Only the parameters listed are supported.
Did you restart?
yes
And is there anything in the logs?
Also just to be sure, you included the right password and right IP?
Where I can show the log ?
As in how to view it or how to share it
Show as in share with us? A code sharing site such as hastebin
See? Under Settings > System > Logs
^ If you click that link it will open in your HA
@steep thistle I converted your message into a file since it's above 15 lines :+1:
So again, are you using the right IP and username/ password?
yes
And are you 100% sure its a thompson device?
It's a technicolor device
Model:CGM4331COM
Vendor:Technicolor
Hardware Revision:2.0
Serial Number:338930041107104084
Processor Speed:1503 MHz
DRAM Total Memory:1024 MB
DRAM Used Memory:777 MB
DRAM Available Memory:247 MB
Flash Total Memory:2048 MB
Flash Used Memory:141 MB
Flash Available Memory:1907 MB
Thomson
Thomson produced networking equipment (under the brand name SpeedTouch) till 2010 and was then renamed to Technicolor.
Is your router branded by a specific ISP?
You may have to use this custom integration https://github.com/shaiu/technicolor, the thompson integration may only support thompson devices (which if so, is poor wording in the integration)
with this one
Bad logger message: Failed to connect to Technicolor ((TypeError("'NoneType' object is not subscriptable"),))
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/technicolor/router.py", line 42, in setup
await self.hass.async_add_executor_job(self._api.srp6authenticate)
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.9/site-packages/technicolorgateway/__init__.py", line 29, in srp6authenticate
token = self._br.find(lambda tag: tag.has_attr('name') and tag['name'] == 'CSRFtoken')['content']
TypeError: 'NoneType' object is not subscriptable
I also tried Nmap Tracker but not work too
Also, Bluetooth is impossible to use with WSL
How so
Also wait you have this installed on WSL?
Yes, I want to see what I can do with that before thinking buying rasbery pie for this
So did you use the core installation method?
yes
As I seen, I can't use bluetooth at all in WSL ... I don't know if it also have issues with networking.
At least all my "zigbee" smart devices work
thermostats, smartplugs, etc.
I have heard wsl has had issues. But unsure how many of those issues would affect a core install of HA
Soemone else can help out
person tracking won't seem configurable at all ... I tried a lot of things...
But I'm not a reference, I want to die each time I need to play with command lines
If nmap isn't working it sounds like something else is causing issues
I tried "home-assistant-arpscan_tracker" also
no effects too
also that don't help ... my logs are saturated of this error x 1000 :
2022-12-28 21:39:11.549 WARNING (MainThread) [pyhilo] Unknown device attribute gateway_asset_id: ba8c8404-03b8-4da9-83c6-9629d0cb9b99
2022-12-28 21:39:11.550 WARNING (MainThread) [pyhilo] Unknown device attribute gateway_asset_id: ba8c8404-03b8-4da9-83c6-9629d0cb9b99
2022-12-28 21:39:11.550 WARNING (MainThread) [pyhilo] Unknown device attribute gateway_asset_id: ba8c8404-03b8-4da9-83c6-9629d0cb9b99
I suspect your WSL is causing issues. Why did you go for that install method?
Because it was the only one method I was able to do currently
my linux skills are bads
But I already have functional WSL setup for web dev
What is your primary OS?
Windows 11
You are using Linux already though through wsl. Its not that much more to use an actual Linux install
Plus wsl is a crippled version of Linux, it's fine for temp usage. Not great for anything more
Hmmm, personally I'd try and get HAOS running in a VM (or preferably on a dedicated machine)
For long term, I should use machine like rasbery
Or a NUC
I don't know if the issues you're having with Bluetooth and the Thomson integration are 100% down to your install method, but the docs do call out that it's an advanced method.
Any mini PC will do, fanless is great
The Raspberry Pi part is not needed π
Anything made in the last 10 years will run HAOS better than a pi
just don't think about hyperv
have a lot of old PC that I could setup for that.
Perfect!
Pick the old PC that uses the least amount of power to run and install HAOS on there is my recommendation π
(*It will need to support UEFI boot)
I've a old Eee PC 701
Maybe not that one π
Something made and sold new in the last ~10 years would be my recommendation
that machine has a whopping 600mhz
EEE PCs went away when I was in secondary school, and I'm 32 now
even a rpi 1 has more
lol
So I'm both old, and so is that machine π
funny
(Also, flashing them to run a different OS was... interesting)
Others machine I've are regulars tower computers or laptops
Laptops are good, they have a built in UPS, sort of
it's depend of the age... battery are the first components to die
True, but they're also easy to source replacements for π
the first I have to think is to find a machine that will don't use a lot of power for this kind of usage...
my workstation is almost alway on ... it was another reason of the "wsl setup"
but it's bad idea
A machine you're using personally is never an ideal one to run a system on that you want to always be available
yep
Especially when it's Windows based, those updates seem to take forever at the most inconvenient moment
I want an indpeendant setup for that
lol windows updates
So I will think about all this and I will do more test later
I really like running HA (and a bunch of other cool stuff) on an old small-form-factor PC you can buy off ebay etc for like $100
Like a Lenovo Thinkcentre, or a Dell Optiplex.
us129.99
That type of machine is probably the best value until the pi is actually available at MSRP
Even if pi comes back, it's still way better option. And is fairly power efficient.
You can run proxmox (etc), and run a bunch of other stuff on it, if you want to learn/use OSS/linux/etc
I run pfsense, ha, uptime kuma, heimdall dashboard, whoogle; and have experiments with things like node-red, opnsense, etc. Super nice.
All depends on your use-case I suppose. I like HA and my OPNsense to be on separate hardware (pi4 and a repurposed Sophos, respectively) so that I can reboot my other hypervisors without affecting my "core services"
I'm planning to get OPNsense, going to test it on a VM, but run it properly on actual hardware. Because I don't want the risk of a hypervisor failing causing my network to go down
I might do that too - but the hardware support for brand-new NICs is better in proxmox than it is in opnsense π
I consider HA to be "core services" just about as much as my pfsense, since it controls most of my home automation.
All my "experimental stuff" is on a different proxmox
Check out used Sophos hardware on eBay. I got a Sophos XG115 rev 3 for around $100. Since it's just an x86 computer, you can put OPNsense or whatever else on it
The one I got has 4 NICs and uses very little power with an Intel Atom E3940 processor. Has no trouble handling full gigabit WAN
Yeah was going to look on ebay for stuff or a cheap fanless machine from aliexpress too
I've got my eye on one of those 4 * 2.5GB boxes, which would do my proxmox/pfsense/ha just nicely. But not super cheap. Couple hundred $
Like https://www.aliexpress.us/item/3256803916388691.html or similar. Lots of options there.
That's basically what I've been looking at. Except a lot cheaper than I've seen lol
Maybe time to order using Christmas money
I was considering one of those fanless things but they were way more expensive than the Sophos and didn't seem worth the extra cost, especially since OPNsense really doesn't use much in the way of resources
My dinky little E3940 hovers around 0-10% CPU usage most of the time
My i5-6500T runs half a dozen services, including HA and pfsense (on proxmox) and runs about 4% all the time. Looks like it's 3x the power usage, fwiw, but I'm mostly solar powered so π€·ββοΈ
I think most of the CPU is a couple of sh*tty integrations that poll with 1s intervals.
Any network pro able to help me access my Home Assistant instance outside my local network? I tried to formulate the question with details here: https://www.reddit.com/r/HomeNetworking/comments/zy1odm/issues_port_forwarding_on_ubiquiti_edgerouter_x/
There are no details there. Just that you tried to port forward on a edgerouter
But your best bet is to use a reverse proxy, ngnix or traefik
I already set that up with swag
It's at the bottom
Huh it shouldn't be, but here's the Nginx proxy config for homeassistant: https://srcb.in/rMdLhnJcBA
What if you open in another browser?
It doesn't change
Okay here's my router config: https://sourceb.in/xJpHz0kzmV
And this is what I see when I visit my domain: https://ibb.co/YN6f3CN
I don't get why it shows that cert error when it should just route to the rpi's webserver
someone here could help me ? HA webui is not starting anymore for some reason
I think I could find the logs in /mnt/config/logs/ but system.journal displays a bunch of unreadable content when I cat it
hahahaha jesus now that I ran cat I can't even enter any command anymore
I guess I have to reboot the VM again
im stuck in a boot loop anyone know how to fix π’
https://gyazo.com/75b95441fe3f7caef9ab7afd5ef3c340
@dim dome you might want to start a fresh VM and restore a backup
great no backups only had it running 2 days didnt think it would die this easily
When you shut down something running not gracefully things can break badly
It's a shame to be sure. I've had many power outages and it had recovered without issue from emmc
Especially when you shut down the PC so the VM just died
Luck of the drawer
*draw
Its why the first thing set up should be off device backups
yeah ive never had a virtual machine do this i always have linuxes open and shutdown never breaks them
ah well
@dim dome you could try repairing the VM somehow
HA is constantly writing to database, something linux isn't really doing
@dim dome get that google drive backup add-on
good idea will get an addon for it
Hope your backups are good
You don't. You reinstall HAOS and then restore a backup lol
nothing is working, I run from one problem to anohter π¦
You don't know how screwed your instance is
wait but my backups are located in my vm
Thats why you get them off device before the shit hits the fan
that's great....
ok my last backup was run on the 22nd
I hope restoring the backup will work
this is so frustrating π
I mean, come on, I simply did restart the VM
ok I just rebooted the instance using the shell
OK I'm in
the webui is reachable...
geez
ok so I lost my mqtt config I've finalized in the last days + Z2M
I wonder if I should not be installing mqtt in a separate docker....
running on my unraid server
so, if something bad happens to HA, I'd keep the docker running at least
I have mosquitto running actually, in a separate docker, anyone here could share his config file ? I need TLS to be enabled on the server, no auth
I run everything in separate containers
You don't need TLS for HA, unless you want to add more security. But if its all local theres limited benefit
Hi, looking for an advice. Does HASS require internet for the initial boot?
I stuck in the boot screen for many hours and I tried more then 10 times.
yes
On first startup it's downloading further Docker images, downloading and installing Python packages, etc
I love @humble mirage's 100 react to comments
Also yes enjoy the ping tinkerer π
We know you love them
I need it to pair my meross plugs it seems
Oh no, my DHCP SERVER AND UNIFI controller are down as I burned my sd card and try to restore everything with an old router without internet π
And thats why you don't run essential services on an SD card....
Fix your internet, then fix the rest
I was saying before, I will keep my internet infrastructure on different physical hosts to anything else I do
Ok so
Ah fun
I will move mqtt and z2m as dockers outside ha
I know, but was using the sd till it's limit. Now I am about to change to sss
What are you running as the DHCP server? Don't want to let your router run it?
did someone say Super Speed Storage
Running the Unifi controller as dhcp server with an unifi security gateway
A unifi sg should still act as DHCP without the controller
As the controller just syncs its config every time
your controller going down takes your dhcp router with it? that's amazing!
Doesn't for me, which means something is broken with your setup
Yes it does. Everything is down
That sounds like something else is your issue
gross
I had my unifi controller down for about 8 hours whilst I broke things and moved it from native install to docker install across hosts, didn't break anything
I set up the dhcp on the controller not on the usg if I remember right.
It syncs with the USG
Ok, will do some more testing
I think there is a fundamental misunderstanding of what the controller does, on the other hand I don't touch Ubi stuff so π€·ββοΈ
Interesting. Maybe something more is broken
Controller is just a management util, it provisions the devices after you change something. Same as how the TP Link Omada stuff works iirc
yes, I get that. but it does not run dhcp and other services, right?
then I was right
Probably. I am just doing it for fun but i have already a very advanced setup
very advanced and unify, hmmmm
These are the only ports the unifi controller needs
Oh ok. Another learning today π
Yea, for a non tech guy probably more then nothing π I take it as a learning
Thank you guys! Happy New year!
Happy new year! π
Can't I use HAOS and then add other Docker containers on it? Or is that not possible or would break something?
That is not possible and would break things
If you want other containers, either use #add-ons-archived or run HA as a container and everything else as containers
if i restore a backup from my existing ha to a new one with a different zigbee adapter am i going to have problems? i'm ok with repairing the hardware but i don't want to lose the entity id and names.
That's more a question for #zigbee-archived - and depends on whether you're using ZHA or Zigbee2MQTT
hm, so I restored my old backup, and HA webui was reachable again, but now, it is not anymore
only thing I changed is I added an authorised proxy
each time I try to reload the UI, through IP:8123, I see this error displayed again
"invalid method encountered"
hmm
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
(this is the error displayed in FF)
yeah, it really starts to fail when I add this trusted proxy setting in my config file
Images of text are a horrible thing
I know, but one more time, I am connecting that console through VNC and cannot copy paste content
I should configure sshd
I'd guess that you're using https:// when you should be using http:// - or the other way around
well I have a nginxconfigured and valid certs
And how are you trying to connect to HA?
well when I go through local IP https://192.168.3.183:8123 -> it works, but of course certs is not "valid" as it states my domain name instead of IP
and when I try to use https://mydomain.duckdns.org, it is stuck on the loading page
I fixed this earlier, but do not remember how
So, while you may have NGINX you're still got HA handling SSL
Either ditch NGINX and have it handle SSL, or remove SSL from HA
I think I will go for the second option
where can I make sure to disable ssl inside HA ?
It's in the http: integration
oh wait
I think I remember what I did earlier
I had old certs in my ssl folder
removing them now (since I restored a backup they are there again)
hm
I removed the certs, restarted HA, and there we go again
the same error
so what I did :
Did you update your configuration.yaml to disable the use of the certs yet?
- go to settings - network and enter my domain name (https://domain.duckdns.org) -> rebooted HA VM, and it was working
- edited the yaml -> removed the certs from http: -> rebooted -> error is back
You don't need to reboot the VM to load changes that can't be hot reloaded
Just restart HA
yeah I'm in the cli, used reboot
ok so now I removed the http: section completely
lets see...
An error occurred during a connection to 192.168.3.183:8123. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
great, just great....
Are you using http:// or https:// in the URL?
https://
So... given that you've just configured HA to not do SSL ... why?
I did not do anything yet
and why would I use nginx to create certs, and get https enabled, to disable it afterwards ? π
You're doing SSL in NGINX, so your connection directly to HA has no SSL
yes but it forces ssl, so when I type it without https
my nginx instance sends me to https anyway
Stop connecting to NGINX
I connect to HA's IP
192.168.3.183:8123 -> works, and redirects me to https:// (nginx forces ssl)
Then you've done something to force that
if I enter my domain name, it redirects me, but HA keeps loading and ends up showing nothing
Your first problem is getting access directly to HA working
Until that works nothing else will
yes, so stop doing that and just restart home assistant instead (ha core restart)
What is the terminal command for a config check in Home Assistant container?
- HAOS
ha core check - Container uses
dockercommands - Core requires you to activate the venv first
Sweet!
Wooooow
OK now this is something
I discovered that my router asks for a computer name in order to enable NAT
thing is, my docker containers are running using br0 and I assign them a specific fix IP address (eg: for nginx)
but when I reboot my server, the IP it reports gets .242 again !
but my nginx server is 220
Are you running HA and NGINX both in Docker?
nope
HA is running in a VM
nginx in a docker
they are on the same network BUT look
Then ... why are you setting IPs for Docker?
You simply expose the port to the host, and use the host's IP
Well I like the idea to have an ip I easily could reach

You're just over-complicating things
after my server reboot, the exxact same rule was displaying .242 (which is my unraid servers IP)
well another problem I have
if my unraid server runs its webui on port 80
and my nginx does as well (and also on port 443 for https)
then what happens ?
Well, you get to pick which one is using port 80 - but NGINX doesn't need to use port 80, or 443
@proper blaze I converted your message into a file since it's above 15 lines :+1:
They'll work, but the UI editors won't
automation: !include config-automations.yaml
``` will include the file `config-automations.yaml`
The UI editor for automations only edits automations.yaml
ah
Okay that makes sense
God man I was looking at your config.
smh
gave me way more questions than I already had.
Questions are good. Answers are handy...
haha
Okay so you guess 1st q you cleared up... and def makes sense
Next q, Why is the "customize" under ha but all the others dont have that?
okay...
But now if I remove below will there be a ui for customize?
customize: !include customize.yaml```
Well, no, there's no longer a UI for that
as I see you have your set like the doc but I thought that was legacy.
ok I've changed ports, changed all my dockers config to be on the same IP ad the host
as my modem is too dumb to be able to create a NAT based on an IP address (!!!)
Now I recall when the customize ui was removed and that's y I made the separate file...
Well... when the UI existed it edited that file
yea I get that.
So really there is no way for me to really clean up my tree config?
As I can not change the name or put the yam's for scripts, scenes, automation and configurations without braking the UI's...
Without knowing what you mean by "clean"
But as there is no longer a Ui for customize and can.
You can certainly strip it down a lot, as I did
I use VSCODE a lot. when I look at the config folder I like to have my yaml dif config files like all in line.
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include config-sensor.yaml
cover: !include config-cover.yaml
light: !include config light.yaml
camera: !include config-cameras.yaml
climate: !include config-climate.yaml
You could always use symbolic links
ln -s automations.yaml config-automations.yaml
Then you can work on config-automations.yaml as if it is automations.yaml
Ah
Linux basics
Yea... So much I need to learn.
But now you say it I had just done something like that for my Synology with the docker π§¦
Hello! Iβve been scouting around for some time and althought searching I donβt find a good answer in the doc or in google
I have a raspberry4 used only to run a small discord bot (low bandwith) and I would like to start using HA while keeping my discord bot (nodejs, npm)
I tried to install HA on docker but then realized I canβt use add-ons and my knowledge is too limited to use Supervisor
-> can you tell me if I am able to install nodejs/npm on HAOS ?
-> if not, what would you recommend? Knowing I can use docker but limited skills. Iβm able to learn tho but will never master it
I would like to avoid buying a 2nd Pi β¦
So you already use nodejs on a pi?
Yes running a discord bot
I only use pm2 to keep running a discord bot using nodejs
Pretty sure you could get a new sd install hassio on the pi
Yes true
then there is a nodejs add-on
By reading HAOS documentation i wasnβt sure if I would be able to run nodejs on it or even install dependancies etc with npm
You mean i could install a nodejs add-on to HAOS and then be free to do anything like if I was on a standard raspberry OS ?
Add-ons are the only supported way to run additional software on HAOS, so you can't just SSH into it and install NPM
Exactly what I had in mind β¦ i will search into this nodejs add-on then !
Thanks for the tip
I understood we can run the nodejs code into a docker , i just need to understand how to setup the docker β¦ iβm used to manually pulling my code from github and using things like npm install to gather all dependencies before running the nodejs
First step would be for me to learn how to pack my nodejs into docker then
I read some docs, looks good but dockerizing my nodejs will add more constraints like logging which would not be accessible anymore (today i can ssh to my Pi and open my log files)
Maybe I should just run HA on docker for now and see later if I need add-ons ?
I know I will need integrations and eventually custom ones using HACS but Iβm not sure if that can be achieved with the container version of HA
stick to your current container install, what addons do you need anyway?
Exactly this, i think I mixed up add ons with integrations at some points. Iβm unsure if I will need add ons , i just figured container wasnβt so good idea
I realized when I tried to access my configuration file and couldnβt because itβs within docker π€·π»ββοΈ
So i stumbled early in the HACS addition step
nothing that you need to edit is "within docker"
things that exist in your host filesystem are mapped there
I at least need a shared folder somewhere
Which isnβt done following the HA tutorial
Yes, couldnβt find it, maybe due to the path itself iβm not sure
it would be crazy to have your config directory live inside the container
For the configuration file path I used a relative path (like /ha) and couldnβt see. Tried docker compose aswell with same result. Lack of knowledge here
like this:
- /PATH_TO_YOUR_CONFIG:/config
Home Assistant Container Hardcore
It looked obvious in the tutorial but meh
Where does this start ? I used /HA but couldnβt see it in my home/ neither in usr/shared etc
that's the complete path
it doesn't start anywhere
/HA, assuming that you created that
if you want it to be relative to where you start the container, use ./xxx
Thanks for tzking the time to talk to complete noobs
Many help here I will try right away
If want to restore a backup, do I cd into my docker-compose folder and run this :
sudo tar -xzvf home-assistant-20221228-190001.tar.gz
That'll extract it there, which may not be the right folder
Okay cool! When I run ls in the docker-compose folder, i see, home-assistant, zigbee2mqtt, data, docker-compose.yml . Does that mean it's the right location?
If that's where you mapped them to
We don't know what you did, as you haven't shared your compose file
Also, tar supports the t option to list what it'll extract rather than extracting
tar -tzf home-assistant-20221228-190001.tar.gz
Ah okay here's my compose file https://paste.debian.net/1265644/
- ./home-assistant:/config
``` so, your HA config folder is in `home-assistant/` under that folder with your compose file
Sorry for being dense , but does that mean I have to cd into home-assistant folder, then extract it there?
Well, depends on what tar -tf ... shows
It means that you need to replace the contents of your config directory with the new contents from the backup
I've no idea what that tar file contains since I don't have it in front of me, and don't know how you created it
This is more of an 'understand what you're doing' than copy and paste stuff
Step #2 of backups is know how to restore
Step one is to see what tar -tf shows, got it
Here's what I got, looks like a ton of stuff https://paste.debian.net/1265645/
Ok, so if you extract that in the folder with your compose file it'll over-write everything in the existing config folder
I'd suggest you rename the existing one so you can recover if you've screwed up π
I absolutely will!
The restore was perfect! Thanks so much for your help RobC and Tinkerer!
Hi, any advice on hassio on a budget? I have it on a VM right now and was thinking in migrating to a Orange pi 4 LTS or an old PC
Used thin client machines from eBay are a good value
Save yourself pain and get something more powerful than anything "pi"
You can get solid ones for like $80
Yup, second hand NUCs are good too
Old Lenovo thinkcentre or sell optim-something are good too
beelink mini pc n5095 at amazon or aliexpress
so i'm being impatient, but my server died and i need a replacement battery to set up unraid again (with the HA VM) - where would i find the config file that I can use to restore to a new desktop? I can find a config, but none of the backups that I could have sworn I did, even if it wasn't recent
Replacement battery?
But if you have a backup, should have a configuration.yaml
Or just use the backup and restore
I can find a configuration.yaml, can I use that? The examples I see are all tar filse
files
sorry - i'm not being clear, you are correct, I should have asked "a config file I can use to restore in a new version - because most of the how to videos are the full-backup#####.tar.gz files and this is just a yaml
I would think the yaml could just be copy pasted?
Yeah but you will lose any automations made in the gui, any integrations done in the gui, etc
Hopefully off device
But what do you mean its a battery issue though with your device?
Honestly don't know what happened, we had rolling blackouts last weekend and for some reason, my battery died
I ordered a replacement, but it'll be here sunday
Battery for what
Battery as in CMOS battery?
no - PSU
PSU doesn't have a battery?
man i really have to get my act together. I work in IT but I sound like my parents...
Did you mean the PSU died?
Why does the PSU want/need a battery?
yes - this is just showing my ignorance, I meant the PSU died
battery has nothing to do with it, outside of me being tired and not being clear
I still have things to learn in IT
PSUs are pretty easy to get. Wouldn't be hard to get a new one, then boot it all up
it's true - I'm not panicking, was just hoping to get started on the new home assistant build. The best options locally are not ideal cost, power or sizewise, so I ordered something on newegg refurbished
What is the default port number for HA on docker?
8123 π§
If you're asking about port forwarding, HA's supported method is host networking. not exposing individual ports
@lyric laurel backups are in the /backup directory
It's a VM you said? Appdata is for the docker apps
So your backups are within the vm's file system.
how do you add a new usb device to a supervised install? i need to add my new zigbee dongle to my old install so i can migrate to containerized. i can see the tty, but restarting things doesn't seem to make it auto detect, wondering if there's a manual step i'm missing somewhere
Are you using ZHA? Regardless will probably find better support in #zigbee-archived to get a stick detected
yes, will try there
er, how do you restore a backup in containerized?
you replace the contents of /config with that from your backup
manually. right. i should have expected that by now.
Thanks but host networking wasn't working for Docker on Windows, i had to manually specify a port before it was being found locally.
I am now running into the issue of trying to pass a usb zwave controller to docker.
The shortages in rasberry pi's is really making this a lot more difficult than it needs to be
OK, so, I did disable https in HA, to do this, I simply did remove http: section completely from my configuration.yaml file
Ah... Docker on Windows... there's a reason that's not supported
does that look OK to you ?
Of course, you can use just about any second hand PC from the last decade and get better performance
# ssl_certificate: /ssl/fullchain.pem
# ssl_key: /ssl/privkey.pem
use_x_forwarded_for: true
trusted_proxies:
- 192.168.3.220
- 192.168.3.0/24```
@inland minnow To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
ok thanks I didn't know about the backticks π
I still CAN try to reach HA through https:// but as I have no more certificate in my http: section here is what it tells me :
Secure Connection Failed
An error occurred during a connection to 192.168.3.183:8123. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG
I guess this is allright ?
Well, does it work if you use http://?
yep I can connect HA using http
not https π
so I guess I am not FORCING https anymore
Then yes, trying to connect with https:// when there's no SSL will throw errors
so, now I need to head back to nginx, but for some reason, I succeeded with ALL my apps, always, but with HA, I'm strugling
I'll create a new cert and redirection, again
ok
it finaly works
damn
thanks @humble mirage for you help π I indeed had to disable ssl and make my HA instance been reachable though http before I was able to re-generate the cert correctly
You should write down what you did, so that when you have to do it again in a few weeks you get it working first time π
I should, but I'm gona make a BACKUP this time as well π
next step, configuring a mqtt docker outside HA
and also run a Z2M docker outside HA
or is it better to keep Z2M inside HA as an addon ?
That's up to you
Hey i'm trying to add my domain to the lets encrypt addon and the box to input it just removes anything you put in there whatever it is
I can't add a picture but can anyone help? It's quite infuriating lmao
#add-ons-archived can help with add-ons
taaa
Heya. Some recent Ubuntu or HA update broke my Ubuntu based Supervised installation, slightly. There used to be a #supervisor but I am not sure where to ask anymore..
So, details about my issue:
Since 2 days, I get the "Unsupported system - Systemd Journal issues" warning in HA Settings and upon further inspection on the Ubuntu level I can see the journald-remote service fails to start to this error:
"systemd-journal-remote[9756]: Failed to read key from file '/etc/ssl/private/journal-remote.pem': Permission denied"
That file does not exist, not sure if it ever has. Is there some known fix which I just failed to find with google?
Today I also learned that Debian 11 is a supported host OS, so I will start planning to migrate there - or proxmox + Container
are the ghcr and docker hub images the same and published together?
Yes, and yes (there's going to be a slight lag)
If you really want add-ons run HAOS in a VM
I've always had Addons, I'm slightly concerned about being able to get my MQTT and everything setup correctly - but I know it's not impossible
@frank heart When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
It's not even hard
HAOS or Container are really the only sensible choices
Mosquitto in Docker is trivial, and you can even bridge it with your current one to allow you to migrate
I heard tomorrow is a day off, maybe I wake up with a surplus of energy and I just get it done and switch to Container. Any recommendations about proxmox etc?
Any reason to go with Proxmox?
Just install Debian on the host and run it all in Docker
i just finished migrating from supervised to containerized. still writing up a few pieces but otherwise it's do-able and the trouble will mostly be around how to migrate from your current instance to the new one.
if I do that, next time I ask somebody will say "why didn't you install proxmox and run it there" or "why didn't you build a kubernetes cluster" or "why are you not running it in AWS EKS or Azure ACR" etc etc, just trying to go for the path most future proof here π
Everyone will have their own opinions regardless of what you do, some louder than others
K8s are for crazy people
Damn, so the Internet is still broken
Proxmox makes sense if you want to run VMs, but only if you want VMs... even then you can layer it on top of Debian
yeah no reason to run VM's, just pure containers will be fine
i have hyper-v running debian running containers. but then no-one ever accured me of being sane.
Do we still manage docker containers with docker CLI in 2023? Maybe Portainer is the king?
Docker-compose makes CLI control E Z P Z
depends on what you want to do. simple stuff that is in the ui and you're fine but any sort of tinkering or debugging will always require you to find a cli because this is linux based software and cli rules the ui space there
debug I can do via CLI, but when I am doing d2d activities a simple UI is king (which I can explain my wife to use over the phone)
Portainer can screw you over though... be very careful
i've just created shell scripts for the 3? docker compose commands i need. start, stop, restart.
I never learned Docker compose yet. Perhaps I just bite the bullet and do that then
It's just a bit of YAML
yea I know, but behind YAML there is logic and thinking - very very hard can be
just like my automations..
it could be worse, it could be javascript...
Or XML
nah, xml is fine. just sprinkle in some awesome xpath to make it spicy and you're in for some fun.
I remember using some software package years ago that only supported XML config... I questioned the creator's sanity
probably .net. it was big on xml in the 0's
Could i have some help, its keeps failing when i try to start it.
@lone spear Don't ask to ask, just ask your question. Then people can answer when they're around.
When you do ask a question, try to provide as much background detail as possible. Ask yourself these questions first so that others don't have to:
- What version of the Home Assistant are you running? (remember, last isn't a version)
- What exactly are you trying to do that won't work?
- Is the problem uniform or erratic?
- What's the exact error message?
- When did it arise?
- What exactly don't you "get"?
- Can you share sample code, ideally with line errors where the error occurs?
I running on 7.0.4 vertial machine and 9.4 HAOS, when ever i try to run its opens then its closes right away. There no error message other than aborted. Im just trying to get it working on a vertial machine.
running what? a script? a website?
oh, that's virtual box. so the virtual box ui opens then closes?
Im trying to run it on virtual box, linux.
check the boot settings then.
where do i find them?
no idea. i don't use virtualbox. explore and see what you can find.
alr thanks.
https://www.home-assistant.io/installation/windows#hypervisor-specific-configuration has some information
you can't import it. you can manually extract the files and put them in the right place. i did that this morning.
what places were the needed files in? π
it depends where you're keeping your config, but you just find the homeassistant tar inside the tarball that has the configuration.yaml in and put the contents into the folder that you're sharing to the docker machine as the /config volume.
Yeah ok you mean just the config files - but are things like lovelace layouts, system Zones etc all defined in those?
so mine went into /data/ha and in the compose.yml file i have volumes: - /data/ha:/config
yes. just take everything from that tar file which contains the configuratin file, including the hidden folder with the .at the start, those contain important stuff.
sigh, i feel like energy has left the building already π
oh well, tomorrow is a new day. Have a great NY everybody!
eh, you can get this all finished by next year if you try π
That menu name died years ago
All the things that used to be there moved to more sensible locations over the last ... 2 years
ha core stop
Command completed successfully.
A wild Energy Splurge appears!
Hey guys, could anyone please help me understand this issue I'm having? I'm running Home Assistant 2021.3.4 on Raspbian Buster on a Raspberry Pi 3B Plus, in a Docker Compose Container (version 20.10.22, build 3a2c30b) and I want to upgrade to the latest stable HA so I can access the Bluetooth integration. When I pull the latest:stable HA it appears to succeed, but when I up the docker for HA, it keeps restarting over and over. I then revert back to HA 2021.3.4 and HA comes up fine. I have tried reading all of the HA breaking changes from 2021.3.4 through 2022.12 to see if there is something (like the OS or the docker version) that I need to upgrade before running the latest stable HA, but I can't understand where I am going wrong, nor how to get everything running with the latest stable HA. I also tried pulling HA 2021.12.8 and that caused HA to keep restarting. The logs when I inspected them didn't help isolate the problem. I know that I should (and will) try again and then trace down log entries from Raspbian, docker and HA to find the specific problem. But what I'm looking for at the moment is more of an understanding of what the minimum requirements are AFA Raspian version required and docker version required to support HA Container latest:stable. I can't seem to find this information as I've searched the web and subreddits over the last week. Can anyone help? Thanks!
Hi Guys, Just joined the discord server to figure out an issue during installation, Appreciate it if anyone could help here.
My other Ring Gen2 motion and contact sensors show up with the manufacturer and product code details. They are able to show up on the alarmo too but not the keypad. Is there something I'm missing here? Tried to reset and paired a ton of times, but still no luck. Looking for some help here. Here are the screenshots.
@frank mica Try #zwave-archived
thanks
https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-container has the required Docker version. But yes, the logs themselves would be helpful and likely a good idea to incrementally upgrade as there probably are some breaking changes along the way that you don't want the be overwhelmed w/
My docker version is 20.10.22 so that seems fine. I'll figure out my libseccomp version next...
ha core stop
This seems to be a problem...pi@rpi3bp2:~ $ sudo apt show libseccomp
N: Unable to locate package libseccomp
N: Unable to locate package libseccomp
E: No packages found
Perhaps I should upgrade Raspbian to Bullseye, then upgrade Docker to the latest, then try the latest:stable HA?
How about libseccomp2
Ah, that's it, thanks ... pi@rpi3bp2:~ $ sudo apt show libseccomp2
Package: libseccomp2
Version: 2.3.3-4
Priority: optional
Section: libs
Source: libseccomp
I'll upgrade to libseccomp2 2.4.2 or newer and see if that works.
Ok docker-compose experts. Should I create shared networks for all my containers? Like anything I would need exposed outside docker could use a 'external' network? and 'internal' or 'db' if its inside docker connectivity only?
Well, by default you don't use a specified network, like host then that's what you get
Ok, I will stick to Host then
The only network I've created has been for Docker swarm, while playing with EMQX, but them I'm a Docker noob
I used to play with swarm ~7 years ago at work, but haven't touched since - nor will
I only use it so I can run an EMQX cluster across different hosts... not that I need EMQX, a single host with Mosquitto is enough, technically
I havent really changed my HA config, but when i try to restart i get this error: Invalid configuration maximum recursion depth exceeded while calling a Python object. What does this mean? Also where can i find what instance of HA im running?
"EMQX: The most scalable MQTT Broker for IoT. Connect 100M+ IoT devices in 1 cluster at 1ms latency."
I have a few devices less, so probably not needed in my use case
βοΈ ->
-> System Info
Is this the info i need to provide? https://i.imgur.com/HROMe5U.png
Found out i am running HA OS
is that a bad thing π
well, you could have found a gru hiding in your bed
Hmm, I was running Mosquitto + Z2Mqtt before - now I configured ZHA and didn't configure a Mqtt broker yet - however my Zigbee devices are showing up and I am rebuilding my network.
ZHA doesn't need an external mqtt broker?
.. or am I now depriving myself of wonderful MQTT experiences when I don't use Mosquitto externally in Docker swarm of k8s π
ZHA doesn't use MQTT
that explains it
aha, here I was creating compose.yaml files per "addon", but some tutorials I find seem to suggest to have single compose.yaml file which includes all related services. Any tips on choosing one or the other approaches?
All in one is easier to manage IMO
ok, I'll merge
it becomes more annoying to selectively update/start/stop individual services, but easier to do them all at once
and having them all in one file allows the services to share a docker network/namespace for communication between them
you can use profiles now to group/isolate services in a single docker-compose.yaml, but that's also a mixed bag in terms of convenience
Okay, I've upgraded libseccomp2 to version 2.5.1-1~bpo10+1 and now docker and libseccomp2 are above the minimum required versions for the latest:stable HA. I've docker pulled and initialized HA latest:stable, and docker shows it continually restarting.
my home-assistant.log only shows the following:
2022-12-30 12:34:19 WARNING (MainThread) [homeassistant.loader] You are using a custom integration hubitat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-12-30 12:35:12 ERROR (SyncWorker_0) [homeassistant.components.wemo] Unable to get description url for WeMo at: 192.168.18.70
What other logs could I inspect to find the error causing HA to continually restart? π
yeah the depends_on and networks seems like a reasonable reason to use a single file
I'd up the log level to at least info and see what happens
sudo docker run -it --rm -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro -v /home/pi/homeassistant/media:/media homeassistant/raspberrypi3-homeassistant:stable hass -c /config --script check_config
results:
Testing configuration at /config
INFO:homeassistant.helpers.storage:Migrating core.device_registry storage from 1.1 to 1.3
INFO:homeassistant.helpers.storage:Migrating core.entity_registry storage from 1.1 to 1.8
ERROR:homeassistant.components.mqtt.mixins:Manually configured MQTT sensor(s) found under platform key 'sensor', please move to the mqtt integration key, see https://www.home-assistant.io/integrations/sensor.mqtt/#new_format
Fatal error while loading config: 'issue_registry'
Failed config
General Errors:
- 'issue_registry'
Successful config (partial)
And try using docker compose too
Okay, I believe that I've corrected the mqtt syntax in configurations.yaml, and now my config check
"sudo docker run -it --rm -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro -v /home/pi/homeassistant/media:/media homeassistant/raspberrypi3-homeassistant:stable hass -c /config --script check_config
shows:
Testing configuration at /config" with no additional errors.
But when I execute, "sudo docker runΒ --init -dΒ --privileged --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro -v /home/pi/homeassistant/media:/media --device=/dev/ttyUSB1 --device=/dev/ttyUSB0 --net=host --restart unless-stopped homeassistant/raspberrypi3-homeassistant:stable"
then a sudo docker ps -a shows "homeassistant/raspberrypi3-homeassistant:stable "/init" 16 seconds ago Restarting (100) 4 seconds ago"
It is not creating any home-assistant.log entries in my config folder. π
Check the container logs...
sudo cat /var/lib/docker/containers/5163354e3f826ee356d617e21eab4ebafa397d1aba56ad987d4782fbb2e07ac8/5163354e3f826ee356d617e21eab4ebafa397d1aba56ad987d4782fbb2e07ac8-json.log
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:42.553523247Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:43.47002196Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:44.648098461Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:45.911201764Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:47.465291926Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:49.746094943Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:43:53.81452218Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:44:01.015369181Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:44:14.510552845Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:44:41.000300968Z"}
{"log":"s6-overlay-suexec: fatal: can only run as pid 1\n","stream":"stderr","time":"2022-12-30T21:45:32.971404665Z"}
@real ember When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.
You have to change this every time (thank the Discord devs for that).
Btw I very much appreciate your time, Tinkerer!
I've never seen that one before... maybe try switching to just homeassistant/homeassistant:stable for the image
I just tried sudo docker pull homeassistant/homeassistant:stable
Error response from daemon: pull access denied for homeassistant/homeassistant, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Maybe I am running into a permission problem?
Maybe it's telling you that it's time to catch up to the changes of the last year or two
ghcr.io/home-assistant/home-assistant:stable
Or... embrace Compose
docker compose is incredibly useful. Copy it and the folders to another machine, run docker compose up -d and voilΓ , moved.
Also makes it trivial to back up your container configs
YES! Ok, I already had docker-compose setup and I executed "sudo docker-compose up -d" and now it's magically working! I just wasn't using docker-compose to run HA, I was using the older docker start, so that seems to have been the problem. Even my mqtt sensors and switches are now working and I am finally running on HA latest. Thanks, Tinkerer!
I've been struggling for a long time to get this updated so thanks again, Tinkerer! Happy New Year!!
I have to learn compose.
I think I messed up my YAML somewhere along the line and am getting an error code 500- Iβm not too far along on my HA, so Iβd rather uninstall and reinstall. Any advice on how to do this?
Iβm running HAOS on a mini pc
Fwiw Iβd run something like proxmox and run haos as a vm
Then you can use your box for other things
Press the blue dot and share the logs
Please use a code share site to share code or logs, for example:
- http://pastie.org/ (select YAML for the language)
- https://dpaste.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
Thanks for replying, I actually did go past the page. However, the home assistant is unable to detect any devices. I reckon the problem is that I'm connected to LAN and not wifi.
How do I connect the home assistant to the Wifi?
Nope that wouldn't be a problem. connecting over ethernet would be more reliable
Presuming the ethernet is on the same network as the wifi devices (eg connected to the wifi router)
yes it is
How did you install HA?
Windows 11 - VirtualBox
Then there might be some windows firewall settings interfering
The only device that is connected is the router
I haven't used Virtualbox in a long time, but iirc it defaults to NAT and you have to do extra setup for bridged mode
Changed the settings to bridged mode
Do you need to set device to promiscuous or something?
Should 100% be bridged and reboot
Vm
Hey guys, stuck on Preparing Home Assistant, can anyone take a peak at the logs and see what I'm missing?
How long have you let it sit
about an hour
Question: I am about to embark on replacing my SmartThings setup with Home Assistant. I have a smaller NUC PC I was going to use. Question is... whats the best method for install? I was considering docker since I use it a lot and wanted to know of any drawbacks
Docker is great. If you already use it then go with it.
Any #add-ons-archived that sound interesting can be run as their own docker container.
The downside of Docker is ... ummm ... errr ....
You don't get automatic updates?
Oh yeah, you've got full control
But updating a docker container isn't hard π
What kind of hardware are you installing on?
Just avoid Core and Supervised. HAOS and Container are both good choices depending on how you want to use it
I like the docker route since I can do all my compose setup and then back up the data directory with a simple cron task I already have as part of base ansible linux deployments.
Docker works but definitely install it on Debian. Ubuntu is not supported even though it appears to work at first.. you will encounter problems.
I standardized on Deb
Docker works on Ubuntu
Home Assistant is not supported on Ubuntu running docker. Save time and go with Debian
Yes it is
That's Supervised that isn't supported
HA Supervised specifically isn't
Believe me, I went the Ubuntu route and supervised didnt work
Supervised isn't the same as Container/Docker
If you're running HA Container, any *nix flavor is fine
Why?
Did you read the requirements?
Conclusion: Expert. Maintaining a Debian installation to a very specific set of requirements is hard.
The creators of it say don't use it
Most posts are from people who thought they had the skills to run it, and found out the hard way they don't
Or they just ignored the requirements and then whine that it's broken
I just looked and Im running docker on debian
my container says amd64-hassio-supervisor
I assume that is different from supervised?
So.... Supervised then
Go there,
-> System Info
Home Assistant 2022.12.8
Supervisor 2022.12.1
Frontend 20221213.1 - latest
Supervised. Oops.
I really hope you've read the requirements and are actually complying with them... and that you're remembering to check them regularly for changes
I think the reason it may turn people off is that they dont want to dedicate a machine to running Debian. But I'm running a dedicated Debian 11 install on a virtual machine in XCP-ng. No problems at all. When I upgrade Home Assistant, I do it in the GUI and everything is fine.
I dont install ANYTHING else on that Debian VM
You're running it in a VM...
You might as well just be running HAOS
Why the fuck aren't you just using HAOS
Its just for running HA in a docker container
You've ... gone out of your way to activate pain mode for no benefit
Ok, I'm definitely interested in what you are saying, I'm no expert in HA thats for sure.... but I havent had any problems for a year or so
What pain am I meant to be feeling?
Well, you'll know the day you miss an update to the ADR and HA crashes to a halt
It's happened to others already
Take a backup, install HAOS in a VM, restore the backup
I'm willing to bet that over the last year you've missed some updates that should have been done to keep the install "right", it just hasn't crashed and burned - yet
Updates to home assistant? Or to Debian?
It tells me when there is an update available to HA, and I click update. It updates, and then everything has worked.
Yeah. You need to update Debian and the packages too...
If you backup and restore like Tinkerer mentioned, you can probably be back up and running in like 30 minutes on HAOS
That gets updates from time to time, and if you don't update your install to match you end up with breakage
And considering what updates have been happening recently which will effect people running a supervised install, I would strongly recommend switching to HAOS sooner rather than later.
Good tip, thats why Im here, to figure out whats up.
Except, all is well at the moment, I cant quite see how it will get messed up unless I touch debian somehow. It sounds like it might be possible to run a GUI update that requires updates to debian first and if those debian updates arent present, then HA breaks?
Well, if the requirements change and you don't update your install to match the new requirements, then it breaks
Thats more or less what im sayig
So, that'll be a break because you didn't touch Debian
The Supervisor auto-updates
On debian, I can just run apt get update and apt get upgrade, and I would imagine that whatever needed dependencies would be up to date and HA would be happy
But if you run HAOS you can just update the OS and Superviser and it will handle it all for you.
Yes, I read the ADR... it looks vaguely familiar from when I set things up last year.
Oh boy...
/remindme 6 months Check and see if @feral blade has a broken Supervised install
The decision tree for installing HA is too complex.. I did it this way not because it was the best but because other ways didnt let me install node-red for some reason... and other issues I cant remember. Theres too much jargon that a newb has to learn... like what does "Supervised" even mean?
Ummmm, you can install Node Red regardless of how you install HA
Add-on-itis has struck again
There were limitations when I went other routes... what those limitations were, I cant remember... i first played around with it 2 years ago before settling on the current setup... and the current setup has been fine... I agree things can break... Ive seen a lot of that in my lifetime!
The first 2 options on the Linux install page (HAOS and Container) are the preferred methods, the other 2 (Core and Supervised) have warnings advising you to not use them
And the reasons most people install Supervised are to break the rules of Supervised π€ͺ
My setup: Dedicated Debian VM that is untouched ---> Docker container that should theoretically control all dependencies --> update from the GUI means that I only get the software they push to me.
If you have a server/machine capable of running VMs you should definitely go with HAOS. There is no real point using a VM to run Debian to run Supervised in
then you don't have to worry about anything breaking
Except the requirements say you have to maintain Debian according to its standards
good thing is you can very easily move by restoring a full backup
If it's untouched, you're not following the requirements
Also... anything you're running in your current install in the form of an add-on you can run in HAOS
Hell, anything you're running at all in your current install you can run in Container too, it just takes more than two clicks
Even if you are an advanced user and do follow the ADR I still don't see a reason to use Supervised
You want more frustration?
You like waking up not knowing if your smart house died overnight?
most people use the argument "well I want everything HAOS has and install extra containers" which of course leads to warnings to say the least
I'll bring up HAOS in a VM and see if that works for me
from what I'm reading you have the hardware to run other things you want in another VM in docker for example should you want to run things not found as addons
I have a lot of hardware
If you are restoring the full backup you might want to first shutdown Supervised installl to test it out
rather than running two identical instances
Create VM, backup, shutdown Supervised, restore to HAOS, ???, profit
I will take the advice here and try out HAOS... but I came here today for another reason... I have a HomeKit controller integration. It has discovered two of my ecobee Switch+ installs... but for some reason it is not discovering about 3 more. Does anyone know how to make it discover the rest?
The switches are all on the same VLAN. They are all working.
I dont have a HomeKit hub... which is a new requirement(?) of HomeKit since I first started using the switches
When I changed the name of one of the switches in the ecobee app, suddenly HA discovered it.
But when I changed the name of another switch, nothing popped up in HA
One reason I use HA is to NOT use HomeKit
HomeKit is pretty much trash... but I havent tried the new rewrite in iOS 16 and I dont have a HomeKit hub anyway
Crickets
HomeKit works fine.
But you're asking about an #integrations-archived in the installation channel π
Indeed... sorry
I'll move to #integrations-archived
And HomeKit discovery can sometimes take a while, I find HA discovery picks up more devices when I restart HA
HomeKit, has major issues though... for example my friend gave me access to his vacation home... a nice gift for sure.. But now whenever he is there I get notified about locks opening, and garage doors closing even when I'm 1000 miles away. And there is no way to customize notifications in HomeKit... if I turn off notifications that turns them off for all homes, not just the vacation home.
You can absolutely turn them off per device.
As a user or do I have to bother the administrator to do that for me?
Home Settings > Locks > Turn it off per lock (Status and Notifications). It's a per user config
I see that....thanks. But I don't see a way to silence "HomeKit Hub is not responding" notifications.
That's something he should fix with his network
Here is why I installed supervisor and not HAOS. Because I wanted a VM on XCP-ng, I went to the HAOS installation page and didn't see any method that looked compatible with XCP-ng... I saw vdi files and ova files for virtualbox etc. What I just learned today is that its simple to 1) import an OVA file into Xen Orchestra 2) I have to set the bios to UEFI. I got it running and I'm at the "preparing home assistant" screen now.
Now restoring from backup
No progress bar or any indication that restore is happening.. But XCP-ng shows some disk activity on the VM.
It's been a while since I restored from a backup, but iirc just wait. If you want to check, open a new tab
That's normal, there's no progress other than it eventually rebooting into the restored install
Thanks, yes I once restored to the afore mentioned Debian install from Ubuntu... and it eventually worked... so I have faith.
Oh it looks like its working... at login screen
Can someone who knows code better than me add some sort of status bar to backups
Honestly even an upload status then a random status bar for backups. Something to show it's doing something lol
And I'm in... and all dashboards etc appear to be there!
Maybe I'll code it.
If not_restored:
Progress_bar=rand()
It'll do something
Not ideal though
Fake progress followed by "done" is probably better than nothing
Tested a kasa switch plug and the new HAOS install is working
πͺ
Yeah HAOS is supervised without the shotgun to shoot yourself with
Very smooth migration
OK, now the dirty secret... when I examine my debian 11 install I saw a notice that "Unsupported system - Systemd Journal issues
System is unsupported because Systemd Journal and/or the gateway service is missing, inactive or misconfigured . Use the link to learn more and how to fix this.
Warning - 12/24/2022"
which pointed to this page: https://www.home-assistant.io/more-info/unsupported/systemd_journal
and I ran the command on debian but the HA notification didnt go away: sudo apt install systemd-journal-remote -y
So this is to say that you guys were right, the foundation may have been crumbling beneath my feet without me knowing it!
So now I'm on more stable ground and didnt even know that I needed to be changing anything. Thanks everyone
Now if anyone can get HomeKit Controller to discover devices, I would be happy!
Note I posted in #integrations-archived
Also don't forget to copy your backups somewhere else if you don't already have something setup
You mean sync the backups to storage outside of HA? Whats a best practice?
There's various #add-ons-archived that handle that
Yeah. There's various options. Samba, I think a Google Drive thing, I have SSH enabled and rsync them
Is there a quick and easy way to restore using a backup from HAOS VM to a HA docker container?
Don't see the restore option on a brand new install.
No, there's no way to do that
You'll have to manually extract the config folder from the backup
Theres one issue with HAOS in XCP-ng thats possibly outside the scope of this channel... When you run a VM, the hypervisor has a tools package that is optional but helpful to run things smoothly. For example, when there is a power outage, the battery backup gracefully shuts down the VMs with a script. I need to figure out if there are "xen tools" for the HAOS VM I'm running. What is HAOS branched from? Debian?
Most modern Linux distro already have open-vm-tools on them by default which is a generic package that handles most things like ACPI shutdown from a hypervisor
Thats helpful to know
I haven't used used XCP-ng but if there's a shutdown button (not a power off button), it should send an ACPI shutdown command and shut down gracefully
Ugh so I can't restore a simple backup? Will I have this issue with my docker setup down the road if I have to rebuild?
No, the backup restore UI is part of the Supervisor
In the future, use a different backup method... one that suits you
Is there any way to install a VM inside HASS OS?
I highly recommend XCP-ng. Great community. Very stable software. Powerful scalability. Uses existing Citrix Xen commands so tons of user experience out there.
ok
I'm pretty ingrained in libvirt/QEMU after using it for years but it sounds like it could be a good solution. I used XenServer years ago but back then the only way to control it was via a Windows-only application
XCP-ng is a lightweight distro based on Centos.
The one gotcha with backups in the web GUI is that you have to click on the name of the backup to get a popup dialog box, then click on the three dots and choose download. Obfuscated UI design is bad. They really need a download button present right in the table row of each backup.
I do docker backups by coping the docker directory I mounted it all in to my NAS every night. Quick and dirty and works

