#installation-archived

1 messages Β· Page 13 of 1

rough stump
#

Should I enable supervisor to install Mosquitto MQTT broker?

humble mirage
#

No

#

Add-ons aren't magic, they're just a way of installing software for HAOS

rough stump
#

I can't find a way to install it without the add on store easily

humble mirage
#

Really?

#

What's your install method currently?

rough stump
#

docker compose

#

Seems like I have that already πŸ€”

rough stump
#

So now I'm looking to do anything in HA with it

humble mirage
#

An image of text ... how nauseated

#

The fuck... did you read your own compose file?

rough stump
#

Yea why?

humble mirage
#

Line 21

#
  mqtt:
    container_name: mqtt
    image: eclipse-mosquitto:2.0
``` you already have mosquitto
rough stump
#

Right I mentioned I figured I already have it, but I'm confused how it all ties together

humble mirage
#

What do you mean?

rough stump
#

I added a light now right, I can see it in the zigbee2mqtt UI

#

But how can I do anything with it in HA

humble mirage
#

Point HA at the same broker, configure HA support in Z2M

rough stump
#

configure HA support in Z2M
I did that, the first thing I think I'm stuck at

humble mirage
#

Stuck at .. what?

rough stump
#

To point it to the same broker

humble mirage
#

Yes

rough stump
#

What is the url or whatever πŸ€”

humble mirage
#

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

rough stump
#

Getting failed to connect, using mqtt as name and default port 1883

humble mirage
#

Then use the IP of the host

rough stump
#

localhost worked

#

Thanks!

rough stump
humble mirage
#

YAML

rough stump
#

I'm not sure if I wanna go the yaml route or node red πŸ€”

humble mirage
#

That's on you, not me

#

Try both, see which you prefer

placid sage
#

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?

grand pivot
#

the restart policy of the container determines that

#

restart: unless-stopped

placid sage
#

Then I'm all set. Thanks.

brazen herald
#

You can list all your running containers with docker ps if you want to double check

rough stump
manic bane
rough stump
manic bane
#

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

rough stump
#

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

manic bane
full hemlock
#

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).

vestal cypress
#

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?

humble mirage
quick hornet
plush marlin
#

How do I restore a backup in HA? Just trying to migrate to another machine, and cant see any obvious way to restore

brisk willow
#

how did you install HA?

humble mirage
#

Is your new install HAOS?

#

Because, if it's not HAOS there's no UI based restore

plush marlin
#

Ahhh, I'vve gone straight from HAOS to Docker

humble mirage
#

Then you get to un-zip that backup and extract things manually

stuck river
#

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

humble mirage
#

If you're trying to install Supervised, no it's not

#

Somebody didn't read the requirements...

quasi light
#

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...

stuck river
humble mirage
#

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

quasi light
#

My world... Apparently it just checked out, updated in the background while the gui still" worked" (as in throwing errors). Now reported installed tho...

stuck river
humble scaffoldBOT
#

@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).

humble mirage
#

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

stuck river
#

ok

humble mirage
#

Supervised is a minefield, doubly so if you're not even going to read the requirements

stuck river
#

i think ill just install core

humble mirage
#

I'd go with Docker for Container, unless you're comfortable building Python from source?

stuck river
#

with core?

humble mirage
#

Yes

stuck river
#

ok ill do that

humble mirage
stuck river
#

so docker is better then python

#

Tinkerer, how would i do it with docker

#

?

stuck river
#

thank you

quick hornet
#

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

storm sluice
#

yeah but there isnt really any reason to ever do that

humble mirage
#

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

quick hornet
#

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.

humble mirage
#

Yup... it'd be good to have some more in there for people who're not deep in Docker knowledge already

quick hornet
#

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.

humble mirage
#

It's the kind of thing that'll be directed to a community guide on the forum shrug

quick hornet
#

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?

quick hornet
#

ah, thanks. is bluez just a package?

humble mirage
#

Scroll down on that page πŸ˜‰

manic bane
#

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

humble mirage
#

Assuming you did actually map that config folder... we've had a few people here who overlooked that

quick hornet
#

i did... the second time πŸ˜‰

manic bane
#

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

quick hornet
#

ah, the old "where is my data" fun.

humble mirage
#

You can either copy them out from the container, or just snag them off the host file system

manic bane
#

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

storm sluice
#

basicaly all the mysql and mariadb images will automaticaly use a volume for /var/lib/mysql if you dont mount something there yourself

manic bane
#

Time to hunt it down, it is my own fault for forgetting, and its quite embarrassing too

humble mirage
#
docker inspect -f '{{ .Mounts }}' containerid
``` is your friend
manic bane
#

Aha thank you

quick hornet
#

wow, bluetooth works and detects my clocks. neat.

drifting fiber
manic bane
#

If you don't read the requirements you will encounter issues

#

Recommend HAOS for a Pi

drifting fiber
#

hmm ok

odd marlin
#

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

drifting fiber
#

well the reason i was using it is cause i wanna see if i cant get HA on a r pi 2

odd marlin
#

The rpi2 isn't supported anymore

drifting fiber
#

i know that, thats why i said if i cant

shy heath
#

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.

drifting fiber
shy heath
#

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)

shy heath
drifting fiber
#

hmm, guess i gotta go out and but a supported pi then :/

odd marlin
#

With current Pi prices being what they are, you'd probably be better off with a used low power desktop machine

drifting fiber
#

its hard to follow tutorials with that though

shy heath
#

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.

odd marlin
drifting fiber
#

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

shy heath
odd marlin
#

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

manic bane
#

@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

drifting fiber
#

yeah its fine my vm seems to work decent for now but i guess while on the topic what is a "container based install"?

shy heath
manic bane
drifting fiber
#

hmm (apologies from the start i am very new to this stuff) how would i do that?

shy heath
odd marlin
sullen flicker
#

"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?

fallen lichen
#

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

quick hornet
#

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.

fallen lichen
#

It really doesn't have much up-side

#

(but I agree on the documentation aspect, too)

brazen herald
#

Fortunately the documentation is open source so anyone can suggest a change πŸ™‚

turbid kernel
#

anyone running HA with in Proxmox?

#

need help getting BT working

#

getting error usb 2-1: device descriptor read/64, error -110

quick hornet
steep thistle
#

How I can enable "device_tracker" ?

brazen herald
steep thistle
#

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

brazen herald
steep thistle
#

I removed the lines

#

still no effects

brazen herald
#

Did you restart?

steep thistle
#

yes

brazen herald
#

And is there anything in the logs?

manic bane
#

Also just to be sure, you included the right password and right IP?

steep thistle
#

Where I can show the log ?

manic bane
#

As in how to view it or how to share it

brazen herald
#

Show as in share with us? A code sharing site such as hastebin

#

See? Under Settings > System > Logs

humble scaffoldBOT
#

show your Home Assistant logs

brazen herald
#

^ If you click that link it will open in your HA

humble scaffoldBOT
#

@steep thistle I converted your message into a file since it's above 15 lines :+1:

manic bane
#

So again, are you using the right IP and username/ password?

steep thistle
#

yes

manic bane
#

And are you 100% sure its a thompson device?

steep thistle
#

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.
manic bane
#

Is your router branded by a specific ISP?

steep thistle
#

it's branded to videotron Helix

#

it's the only one reason of why I use this one

manic bane
#

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)

steep thistle
#

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
steep thistle
#

I also tried Nmap Tracker but not work too

#

Also, Bluetooth is impossible to use with WSL

manic bane
#

Also wait you have this installed on WSL?

steep thistle
#

Yes, I want to see what I can do with that before thinking buying rasbery pie for this

manic bane
#

So did you use the core installation method?

steep thistle
#

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.

manic bane
#

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

steep thistle
#

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

manic bane
#

If nmap isn't working it sounds like something else is causing issues

steep thistle
#

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
brazen herald
#

I suspect your WSL is causing issues. Why did you go for that install method?

steep thistle
#

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

brazen herald
#

What is your primary OS?

steep thistle
#

Windows 11

manic bane
# steep thistle my linux skills are bads

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

brazen herald
#

Hmmm, personally I'd try and get HAOS running in a VM (or preferably on a dedicated machine)

steep thistle
#

For long term, I should use machine like rasbery

manic bane
#

Or a NUC

brazen herald
#

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 πŸ˜„

manic bane
#

Anything made in the last 10 years will run HAOS better than a pi

low notch
#

just don't think about hyperv

steep thistle
#

have a lot of old PC that I could setup for that.

manic bane
#

Perfect!

brazen herald
#

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)

steep thistle
#

I've a old Eee PC 701

brazen herald
#

Maybe not that one πŸ˜‚

steep thistle
#

not enought powerfull ?

#

it was the thing I've that consume less power

brazen herald
#

Something made and sold new in the last ~10 years would be my recommendation

low notch
#

that machine has a whopping 600mhz

brazen herald
#

EEE PCs went away when I was in secondary school, and I'm 32 now

low notch
#

even a rpi 1 has more

steep thistle
#

lol

brazen herald
#

So I'm both old, and so is that machine πŸ˜„

steep thistle
#

funny

brazen herald
#

(Also, flashing them to run a different OS was... interesting)

steep thistle
#

Others machine I've are regulars tower computers or laptops

brazen herald
#

Laptops are good, they have a built in UPS, sort of

steep thistle
#

it's depend of the age... battery are the first components to die

brazen herald
#

True, but they're also easy to source replacements for πŸ™‚

steep thistle
#

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

brazen herald
#

A machine you're using personally is never an ideal one to run a system on that you want to always be available

steep thistle
#

yep

brazen herald
#

Especially when it's Windows based, those updates seem to take forever at the most inconvenient moment

steep thistle
#

I want an indpeendant setup for that

#

lol windows updates

#

So I will think about all this and I will do more test later

copper steppe
#

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

odd marlin
#

That type of machine is probably the best value until the pi is actually available at MSRP

copper steppe
#

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.

odd marlin
#

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"

manic bane
#

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

copper steppe
#

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

odd marlin
#

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

manic bane
copper steppe
#

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 $

manic bane
#

Maybe time to order using Christmas money

odd marlin
#

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

copper steppe
#

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.

rough stump
manic bane
#

But your best bet is to use a reverse proxy, ngnix or traefik

rough stump
#

It's at the bottom

manic bane
#

Bottom of what

#

Your reddit post is empty

rough stump
rough stump
#

What if you open in another browser?

manic bane
#

It doesn't change

rough stump
#

I don't get why it shows that cert error when it should just route to the rpi's webserver

inland minnow
#

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

plush crag
#

just wait for it to finish

#

shouldnt have catted the journal πŸ˜‚

dim dome
inland minnow
#

so instead of looking for the logs I only had to run journalctl....

#

πŸ˜„

plush crag
#

uh

#

no

#

I'm guessing ha doesnt send logs to the journal

cinder marsh
#

@dim dome you might want to start a fresh VM and restore a backup

dim dome
#

great no backups only had it running 2 days didnt think it would die this easily

manic bane
#

When you shut down something running not gracefully things can break badly

cinder marsh
#

It's a shame to be sure. I've had many power outages and it had recovered without issue from emmc

manic bane
#

Especially when you shut down the PC so the VM just died

manic bane
#

*draw

#

Its why the first thing set up should be off device backups

dim dome
#

yeah ive never had a virtual machine do this i always have linuxes open and shutdown never breaks them

#

ah well

cinder marsh
#

@dim dome you could try repairing the VM somehow

manic bane
cinder marsh
#

@dim dome get that google drive backup add-on

inland minnow
#

now this is looking bad

dim dome
#

good idea will get an addon for it

manic bane
inland minnow
#

how do I restore a backup from this cli ?

#

I am really doomed geez

manic bane
#

You don't. You reinstall HAOS and then restore a backup lol

inland minnow
#

nothing is working, I run from one problem to anohter 😦

manic bane
#

You don't know how screwed your instance is

inland minnow
#

wait but my backups are located in my vm

cinder marsh
manic bane
inland minnow
#

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

manic bane
#

You don't need TLS for HA, unless you want to add more security. But if its all local theres limited benefit

placid sage
#

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.

low notch
#

yes

humble mirage
#

On first startup it's downloading further Docker images, downloading and installing Python packages, etc

manic bane
#

I love @humble mirage's 100 react to comments

#

Also yes enjoy the ping tinkerer πŸ˜›

#

We know you love them

inland minnow
placid sage
#

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 πŸ™ˆ

manic bane
#

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

inland minnow
#

Ok so

manic bane
inland minnow
#

I will move mqtt and z2m as dockers outside ha

placid sage
manic bane
low notch
#

did someone say Super Speed Storage

inland minnow
#

Ramdisk πŸ˜‚

#

Safe and fast

placid sage
manic bane
#

As the controller just syncs its config every time

low notch
#

your controller going down takes your dhcp router with it? that's amazing!

manic bane
#

Doesn't for me, which means something is broken with your setup

placid sage
manic bane
#

That sounds like something else is your issue

low notch
#

gross

manic bane
#

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

placid sage
placid sage
low notch
#

I think there is a fundamental misunderstanding of what the controller does, on the other hand I don't touch Ubi stuff so πŸ€·β€β™‚οΈ

placid sage
manic bane
low notch
#

yes, I get that. but it does not run dhcp and other services, right?

manic bane
#

Nope

#

It gives that to the device thats meant to do it

#

Eg the USG

low notch
#

then I was right

placid sage
low notch
#

very advanced and unify, hmmmm

manic bane
#

These are the only ports the unifi controller needs

placid sage
manic bane
#

With most being optional

#

None of them are DHCP

placid sage
#

Thank you guys! Happy New year!

manic bane
#

Happy new year! πŸ˜„

placid sage
#

Can't I use HAOS and then add other Docker containers on it? Or is that not possible or would break something?

brazen herald
#

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

quick hornet
#

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.

humble mirage
#

That's more a question for #zigbee-archived - and depends on whether you're using ZHA or Zigbee2MQTT

inland minnow
#

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

humble mirage
#

Images of text are a horrible thing

inland minnow
#

I know, but one more time, I am connecting that console through VNC and cannot copy paste content

#

I should configure sshd

humble mirage
#

I'd guess that you're using https:// when you should be using http:// - or the other way around

inland minnow
#

well I have a nginxconfigured and valid certs

humble mirage
#

And how are you trying to connect to HA?

inland minnow
#

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

#

I fixed this earlier, but do not remember how

humble mirage
#

So, while you may have NGINX you're still got HA handling SSL

inland minnow
#

ok so what do I ave to do ?

#

disable ssl in HA ?

humble mirage
#

Either ditch NGINX and have it handle SSL, or remove SSL from HA

inland minnow
#

I think I will go for the second option

#

where can I make sure to disable ssl inside HA ?

humble mirage
#

It's in the http: integration

inland minnow
#

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 :

humble mirage
#

Did you update your configuration.yaml to disable the use of the certs yet?

inland minnow
#
  1. edited the yaml -> removed the certs from http: -> rebooted -> error is back
brisk willow
#

You don't need to reboot the VM to load changes that can't be hot reloaded

#

Just restart HA

inland minnow
#

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....

humble mirage
#

Are you using http:// or https:// in the URL?

inland minnow
#

https://

humble mirage
#

So... given that you've just configured HA to not do SSL ... why?

inland minnow
#

I did not do anything yet

#

and why would I use nginx to create certs, and get https enabled, to disable it afterwards ? πŸ™‚

humble mirage
#

You're doing SSL in NGINX, so your connection directly to HA has no SSL

inland minnow
#

yes but it forces ssl, so when I type it without https

#

my nginx instance sends me to https anyway

humble mirage
#

Stop connecting to NGINX

inland minnow
#

I connect to HA's IP

#

192.168.3.183:8123 -> works, and redirects me to https:// (nginx forces ssl)

humble mirage
#

Then you've done something to force that

inland minnow
#

if I enter my domain name, it redirects me, but HA keeps loading and ends up showing nothing

humble mirage
#

Your first problem is getting access directly to HA working

#

Until that works nothing else will

brisk willow
desert condor
#

What is the terminal command for a config check in Home Assistant container?

humble scaffoldBOT
desert condor
#

Sweet!

inland minnow
#

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

humble mirage
#

Are you running HA and NGINX both in Docker?

inland minnow
#

nope

#

HA is running in a VM

#

nginx in a docker

#

they are on the same network BUT look

humble mirage
#

Then ... why are you setting IPs for Docker?

#

You simply expose the port to the host, and use the host's IP

inland minnow
#

Well I like the idea to have an ip I easily could reach

humble mirage
inland minnow
#

look

humble mirage
#

You're just over-complicating things

inland minnow
#

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 ?

humble mirage
#

Well, you get to pick which one is using port 80 - but NGINX doesn't need to use port 80, or 443

humble scaffoldBOT
#

@proper blaze I converted your message into a file since it's above 15 lines :+1:

humble mirage
#

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

proper blaze
#

ah

#

Okay that makes sense

#

God man I was looking at your config.

#

smh

#

gave me way more questions than I already had.

humble mirage
#

Questions are good. Answers are handy...

proper blaze
#

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?

humble mirage
#

Because that's where it is

proper blaze
#

okay...

#

But now if I remove below will there be a ui for customize?

  customize: !include customize.yaml```
humble mirage
#

Well, no, there's no longer a UI for that

proper blaze
#

as I see you have your set like the doc but I thought that was legacy.

humble mirage
#

It is

#

YAML customising is legacy

proper blaze
#

right

#

Understood I got that ADHD so track your ans linking haha

inland minnow
#

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 (!!!)

proper blaze
#

Now I recall when the customize ui was removed and that's y I made the separate file...

humble mirage
#

Well... when the UI existed it edited that file

proper blaze
#

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...

humble mirage
#

Without knowing what you mean by "clean"

proper blaze
#

But as there is no longer a Ui for customize and can.

humble mirage
#

You can certainly strip it down a lot, as I did

proper blaze
#

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
humble mirage
#

You could always use symbolic links

proper blaze
#

Okay...

#

pretend I am very special...

humble mirage
#

ln -s automations.yaml config-automations.yaml

#

Then you can work on config-automations.yaml as if it is automations.yaml

proper blaze
#

Ah

humble mirage
#

Linux basics

proper blaze
#

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 🧦

turbid rampart
#

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 …

proper blaze
#

So you already use nodejs on a pi?

turbid rampart
#

Yes running a discord bot

#

I only use pm2 to keep running a discord bot using nodejs

proper blaze
#

Pretty sure you could get a new sd install hassio on the pi

turbid rampart
#

Yes true

proper blaze
#

then there is a nodejs add-on

turbid rampart
#

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 ?

odd marlin
#

Add-ons are the only supported way to run additional software on HAOS, so you can't just SSH into it and install NPM

turbid rampart
#

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

low notch
#

stick to your current container install, what addons do you need anyway?

turbid rampart
#

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

grand pivot
#

nothing that you need to edit is "within docker"

#

things that exist in your host filesystem are mapped there

turbid rampart
#

I at least need a shared folder somewhere

#

Which isn’t done following the HA tutorial

grand pivot
#

you presumably mapped one when you created the container

#

it sure is

turbid rampart
grand pivot
#

it would be crazy to have your config directory live inside the container

turbid rampart
#

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

grand pivot
#

like this:

  - /PATH_TO_YOUR_CONFIG:/config
brisk willow
turbid rampart
#

It looked obvious in the tutorial but meh

grand pivot
#

or:

#

-v /PATH_TO_YOUR_CONFIG:/config \

turbid rampart
grand pivot
#

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

turbid rampart
#

Thanks for tzking the time to talk to complete noobs

#

Many help here I will try right away

desert condor
#

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

humble mirage
#

That'll extract it there, which may not be the right folder

desert condor
#

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?

humble mirage
#

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

desert condor
humble mirage
#
      - ./home-assistant:/config
``` so, your HA config folder is in `home-assistant/` under that folder with your compose file
desert condor
#

Sorry for being dense , but does that mean I have to cd into home-assistant folder, then extract it there?

humble mirage
#

Well, depends on what tar -tf ... shows

grand pivot
#

It means that you need to replace the contents of your config directory with the new contents from the backup

humble mirage
#

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

grand pivot
#

This is more of an 'understand what you're doing' than copy and paste stuff

humble mirage
#

Step #2 of backups is know how to restore

desert condor
#

Step one is to see what tar -tf shows, got it

humble mirage
#

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 πŸ˜‰

desert condor
#

I absolutely will!

desert condor
#

The restore was perfect! Thanks so much for your help RobC and Tinkerer!

fringe oar
#

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

odd marlin
#

Used thin client machines from eBay are a good value

brazen herald
#

Save yourself pain and get something more powerful than anything "pi"

odd marlin
#

You can get solid ones for like $80

brazen herald
#

Yup, second hand NUCs are good too

copper steppe
#

Old Lenovo thinkcentre or sell optim-something are good too

crude inlet
#

beelink mini pc n5095 at amazon or aliexpress

lyric laurel
#

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

manic bane
#

Or just use the backup and restore

lyric laurel
#

I can find a configuration.yaml, can I use that? The examples I see are all tar filse

#

files

manic bane
#

I'm not sure what you're trying to achieve

#

You said you want a config file

lyric laurel
#

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?

manic bane
lyric laurel
#

so in that case, where did those full backups I did go?

#

if it's not in appdata

manic bane
#

Hopefully off device

#

But what do you mean its a battery issue though with your device?

lyric laurel
#

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

manic bane
#

Battery for what

lyric laurel
#

the server running unraid

#

which had a VM of HAOS

brazen herald
#

Battery as in CMOS battery?

lyric laurel
#

no - PSU

manic bane
#

PSU doesn't have a battery?

lyric laurel
#

man i really have to get my act together. I work in IT but I sound like my parents...

manic bane
#

Did you mean the PSU died?

brazen herald
#

Why does the PSU want/need a battery?

lyric laurel
#

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

manic bane
lyric laurel
#

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

stoic cedar
#

What is the default port number for HA on docker?

low notch
#

8123 🧐

manic bane
crude inlet
#

@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.

quick hornet
#

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

manic bane
quick hornet
#

yes, will try there

quick hornet
#

er, how do you restore a backup in containerized?

low notch
#

you replace the contents of /config with that from your backup

quick hornet
#

manually. right. i should have expected that by now.

stoic cedar
#

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

inland minnow
#

OK, so, I did disable https in HA, to do this, I simply did remove http: section completely from my configuration.yaml file

humble mirage
inland minnow
#

does that look OK to you ?

humble mirage
#

Of course, you can use just about any second hand PC from the last decade and get better performance

inland minnow
#
  #  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```
humble scaffoldBOT
#

@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.

inland minnow
#

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 ?

humble mirage
#

Well, does it work if you use http://?

inland minnow
#

yep I can connect HA using http

#

not https πŸ˜‰

#

so I guess I am not FORCING https anymore

humble mirage
#

Then yes, trying to connect with https:// when there's no SSL will throw errors

inland minnow
#

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

humble mirage
#

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 πŸ˜›

inland minnow
#

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 ?

humble mirage
#

That's up to you

potent compass
#

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

humble mirage
potent compass
#

taaa

frank heart
#

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

humble mirage
#

Ubuntu ... Supervised ....

#

That's not been supported for ... years

timber needle
#

are the ghcr and docker hub images the same and published together?

humble mirage
#

Yes, and yes (there's going to be a slight lag)

humble mirage
frank heart
humble scaffoldBOT
#

@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).

humble mirage
#

It's not even hard

odd marlin
#

HAOS or Container are really the only sensible choices

humble mirage
#

Mosquitto in Docker is trivial, and you can even bridge it with your current one to allow you to migrate

frank heart
#

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?

humble mirage
#

Any reason to go with Proxmox?

#

Just install Debian on the host and run it all in Docker

quick hornet
#

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.

frank heart
#

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 πŸ™‚

odd marlin
#

Everyone will have their own opinions regardless of what you do, some louder than others

humble mirage
#

K8s are for crazy people

frank heart
#

Damn, so the Internet is still broken

humble mirage
#

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

frank heart
#

yeah no reason to run VM's, just pure containers will be fine

quick hornet
#

i have hyper-v running debian running containers. but then no-one ever accured me of being sane.

frank heart
#

Do we still manage docker containers with docker CLI in 2023? Maybe Portainer is the king?

brisk willow
#

Docker-compose makes CLI control E Z P Z

quick hornet
#

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

frank heart
#

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)

humble mirage
#

Portainer can screw you over though... be very careful

quick hornet
#

i've just created shell scripts for the 3? docker compose commands i need. start, stop, restart.

frank heart
#

I never learned Docker compose yet. Perhaps I just bite the bullet and do that then

humble mirage
#

It's just a bit of YAML

frank heart
#

yea I know, but behind YAML there is logic and thinking - very very hard can be

#

just like my automations..

quick hornet
#

it could be worse, it could be javascript...

brisk willow
#

Or XML

quick hornet
#

nah, xml is fine. just sprinkle in some awesome xpath to make it spicy and you're in for some fun.

brisk willow
#

I remember using some software package years ago that only supported XML config... I questioned the creator's sanity

quick hornet
#

probably .net. it was big on xml in the 0's

lone spear
#

Could i have some help, its keeps failing when i try to start it.

humble scaffoldBOT
#

@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:

  1. What version of the Home Assistant are you running? (remember, last isn't a version)
  2. What exactly are you trying to do that won't work?
  3. Is the problem uniform or erratic?
  4. What's the exact error message?
  5. When did it arise?
  6. What exactly don't you "get"?
  7. Can you share sample code, ideally with line errors where the error occurs?
lone spear
#

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.

quick hornet
#

running what? a script? a website?

#

oh, that's virtual box. so the virtual box ui opens then closes?

lone spear
#

Im trying to run it on virtual box, linux.

quick hornet
#

check the boot settings then.

lone spear
quick hornet
#

no idea. i don't use virtualbox. explore and see what you can find.

lone spear
#

alr thanks.

humble mirage
frank heart
#

Can I import a backup made in Supervisor to Container?

#

Can/Should

quick hornet
#

you can't import it. you can manually extract the files and put them in the right place. i did that this morning.

frank heart
#

what places were the needed files in? πŸ™‚

quick hornet
#

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.

frank heart
#

Yeah ok you mean just the config files - but are things like lovelace layouts, system Zones etc all defined in those?

quick hornet
#

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.

frank heart
#

sigh, i feel like energy has left the building already πŸ˜‰

#

oh well, tomorrow is a new day. Have a great NY everybody!

quick hornet
#

eh, you can get this all finished by next year if you try πŸ˜‰

lone spear
#

Im on the dashboard now, however i dont need hass.io, has this been moved?

humble mirage
#

That menu name died years ago

#

All the things that used to be there moved to more sensible locations over the last ... 2 years

frank heart
#

ha core stop

Command completed successfully.

A wild Energy Splurge appears!

real ember
#

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!

frank mica
#

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.

fallen lichen
frank mica
#

thanks

fallen lichen
real ember
frank heart
#

ha core stop

real ember
#

Perhaps I should upgrade Raspbian to Bullseye, then upgrade Docker to the latest, then try the latest:stable HA?

fallen lichen
#

How about libseccomp2

real ember
# fallen lichen 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.

frank heart
#

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?

humble mirage
#

Well, by default you don't use a specified network, like host then that's what you get

frank heart
#

Ok, I will stick to Host then

humble mirage
#

The only network I've created has been for Docker swarm, while playing with EMQX, but them I'm a Docker noob

frank heart
#

I used to play with swarm ~7 years ago at work, but haven't touched since - nor will

humble mirage
#

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

visual axle
#

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?

frank heart
#

"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

humble scaffoldBOT
humble mirage
visual axle
#

Found out i am running HA OS

#

is that a bad thing πŸ˜…

grand pivot
#

well, you could have found a gru hiding in your bed

frank heart
#

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 πŸ™‚

brisk willow
#

ZHA doesn't use MQTT

frank heart
#

that explains it

frank heart
#

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?

humble mirage
#

All in one is easier to manage IMO

frank heart
#

ok, I'll merge

grand pivot
#

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

real ember
# real ember Ah, that's it, thanks ... pi@rpi3bp2:~ $ sudo apt show libseccomp2 Package: libs...

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? πŸ™‚

frank heart
#

yeah the depends_on and networks seems like a reasonable reason to use a single file

humble mirage
real ember
# humble mirage 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)
humble mirage
#

I see at least two things there you need to fix

#

Start by fixing the obvious ERROR

brazen herald
#

And try using docker compose too

real ember
#

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. 😐

humble mirage
#

Check the container logs...

real ember
# humble mirage 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"}

humble scaffoldBOT
#

@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).

real ember
#

Btw I very much appreciate your time, Tinkerer!

humble mirage
#

I've never seen that one before... maybe try switching to just homeassistant/homeassistant:stable for the image

real ember
humble mirage
#

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

brazen herald
#

docker compose is incredibly useful. Copy it and the folders to another machine, run docker compose up -d and voilΓ , moved.

humble mirage
#

Also makes it trivial to back up your container configs

real ember
#

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!!

quiet needle
#

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

copper steppe
#

Fwiw I’d run something like proxmox and run haos as a vm

#

Then you can use your box for other things

glad schooner
#

Hi, I'm stuck at preparing home assistant page

#

Can someone help?

manic bane
humble scaffoldBOT
#

Please use a code share site to share code or logs, for example:

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.

glad schooner
#

How do I connect the home assistant to the Wifi?

manic bane
#

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)

glad schooner
#

yes it is

manic bane
#

How did you install HA?

glad schooner
#

Windows 11 - VirtualBox

manic bane
#

Then there might be some windows firewall settings interfering

glad schooner
#

The only device that is connected is the router

odd marlin
#

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

glad schooner
copper steppe
#

Do you need to set device to promiscuous or something?

#

Should 100% be bridged and reboot

#

Vm

floral iron
#

Hey guys, stuck on Preparing Home Assistant, can anyone take a peak at the logs and see what I'm missing?

floral iron
#

about an hour

copper steppe
#

Open url in new browser/tab

#

Iirc sometimes the ui just gets stuck

dark garnet
#

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

brazen herald
#

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.

humble mirage
#

The downside of Docker is ... ummm ... errr ....

brazen herald
#

You don't get automatic updates?

humble mirage
#

Oh yeah, you've got full control

brazen herald
#

But updating a docker container isn't hard πŸ™‚

dark garnet
#

Yea I use ouroburos for that function

#

or other things

feral blade
odd marlin
dark garnet
#

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.

feral blade
dark garnet
#

I standardized on Deb

odd marlin
#

Docker works on Ubuntu

feral blade
#

Home Assistant is not supported on Ubuntu running docker. Save time and go with Debian

brisk willow
#

Yes it is

odd marlin
#

That's Supervised that isn't supported

brisk willow
#

HA Supervised specifically isn't

feral blade
#

Believe me, I went the Ubuntu route and supervised didnt work

odd marlin
#

Supervised isn't the same as Container/Docker

brisk willow
#

If you're running HA Container, any *nix flavor is fine

humble mirage
#

Supervised != Docker

#

Supervised == Clusterfuck

feral blade
humble mirage
#

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

feral blade
#

I just looked and Im running docker on debian

#

my container says amd64-hassio-supervisor

#

I assume that is different from supervised?

humble mirage
#

So.... Supervised then

humble scaffoldBOT
humble mirage
#

Go there, dotsvertical -> System Info

feral blade
#

Home Assistant 2022.12.8
Supervisor 2022.12.1
Frontend 20221213.1 - latest

brazen herald
#

Supervised. Oops.

humble mirage
#

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

feral blade
#

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

humble mirage
#

You're running it in a VM...

odd marlin
#

You might as well just be running HAOS

humble mirage
#

Why the fuck aren't you just using HAOS

feral blade
#

Its just for running HA in a docker container

humble mirage
#

You've ... gone out of your way to activate pain mode for no benefit

feral blade
#

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?

humble mirage
#

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

brazen herald
#

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

feral blade
#

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.

humble mirage
#

Updates to the ADR

#

The requirements you hopefully read

brazen herald
#

Yeah. You need to update Debian and the packages too...

odd marlin
#

If you backup and restore like Tinkerer mentioned, you can probably be back up and running in like 30 minutes on HAOS

humble mirage
#

That gets updates from time to time, and if you don't update your install to match you end up with breakage

brazen herald
#

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.

feral blade
#

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?

humble mirage
#

Well, if the requirements change and you don't update your install to match the new requirements, then it breaks

feral blade
#

Thats more or less what im sayig

humble mirage
#

So, that'll be a break because you didn't touch Debian

#

The Supervisor auto-updates

feral blade
#

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

brazen herald
#

Nope.

#

It has very specific requirements listed on GitHub

humble mirage
#

Did you read the ADR?

brazen herald
#

But if you run HAOS you can just update the OS and Superviser and it will handle it all for you.

feral blade
humble mirage
#

Oh boy...

#

/remindme 6 months Check and see if @feral blade has a broken Supervised install

feral blade
#

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?

humble mirage
#

Ummmm, you can install Node Red regardless of how you install HA

#

Add-on-itis has struck again

feral blade
#

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!

odd marlin
#

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

brazen herald
#

And the reasons most people install Supervised are to break the rules of Supervised πŸ€ͺ

feral blade
high token
#

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

odd marlin
high token
#

good thing is you can very easily move by restoring a full backup

odd marlin
#

If it's untouched, you're not following the requirements

humble mirage
#

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

high token
#

Even if you are an advanced user and do follow the ADR I still don't see a reason to use Supervised

humble mirage
#

You want more frustration?

#

You like waking up not knowing if your smart house died overnight?

high token
#

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

feral blade
#

I'll bring up HAOS in a VM and see if that works for me

high token
#

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

high token
#

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

odd marlin
#

Create VM, backup, shutdown Supervised, restore to HAOS, ???, profit

feral blade
#

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

brazen herald
#

HomeKit works fine.

brazen herald
#

And HomeKit discovery can sometimes take a while, I find HA discovery picks up more devices when I restart HA

feral blade
# brazen herald HomeKit works fine.

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.

brazen herald
#

You can absolutely turn them off per device.

feral blade
brazen herald
#

Home Settings > Locks > Turn it off per lock (Status and Notifications). It's a per user config

feral blade
brazen herald
#

That's something he should fix with his network

feral blade
# humble mirage You want more frustration?

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.

odd marlin
#

It's been a while since I restored from a backup, but iirc just wait. If you want to check, open a new tab

humble mirage
#

That's normal, there's no progress other than it eventually rebooting into the restored install

feral blade
#

Oh it looks like its working... at login screen

manic bane
#

Can someone who knows code better than me add some sort of status bar to backups

manic bane
#

Honestly even an upload status then a random status bar for backups. Something to show it's doing something lol

feral blade
#

And I'm in... and all dashboards etc appear to be there!

manic bane
#

Maybe I'll code it.
If not_restored:
Progress_bar=rand()

#

It'll do something

#

Not ideal though

odd marlin
#

Fake progress followed by "done" is probably better than nothing

feral blade
#

Tested a kasa switch plug and the new HAOS install is working

odd marlin
#

πŸͺ„

manic bane
#

Yeah HAOS is supervised without the shotgun to shoot yourself with

feral blade
#

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"

#

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!

odd marlin
#

Also don't forget to copy your backups somewhere else if you don't already have something setup

feral blade
humble mirage
odd marlin
#

Yeah. There's various options. Samba, I think a Google Drive thing, I have SSH enabled and rsync them

dark garnet
#

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.

humble mirage
#

No, there's no way to do that

#

You'll have to manually extract the config folder from the backup

feral blade
#

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?

odd marlin
#

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

odd marlin
#

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

dark garnet
#

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?

humble mirage
#

No, the backup restore UI is part of the Supervisor

#

In the future, use a different backup method... one that suits you

placid sage
#

Is there any way to install a VM inside HASS OS?

feral blade
placid sage
#

ok

odd marlin
#

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

feral blade
feral blade
manic bane
storm sluice
#

i think its mainly meant to ease transition from docker to homeassistant os

#

but its uses tar archives, so it should be easy to just extract that over the config directory