#installation-archived

1 messages · Page 66 of 1

mellow hemlock
#

Hello! I have big troubles with MQTT. I am positive it is a bug. I have a fresh HA installation and install the Addon Mosqitto. I use an MQTT client and enter my homeassistant credentials. Then I look in the logs of Mosquitto and get "error: received null username or password for unpwd check"

#

I have tried with a dedicated home assistant user. I have tried with several mqtt clients. Even the in homeassistant integrated MQTT service.

#

I already backed up my system and started from a fresh installation. It will not let me connect. upon googling I see that others have stumbled upon the same issue but no solution was offered

#

someone has an idea what else I could try? I am quite desperate to get this to work because many of my devices rely on MQTT

proven grove
#

One solution would be to install MQTT on another machine (rPi, etc) and then just use that.

mellow hemlock
#

I have only one RPi and this is the one where Home Assistant is running on. I see the issue is marked as "Closed" on github though, this makes me wondering if they are actively working on a fix?

proven grove
#

You're right... it got marked as stale for some reason... Did you try your own HA user and password?

mellow hemlock
#

yes. tried that already

#

i added a user via HomeAssistant. I also added a user in mosquitto via the YAML

#

nothing works

proven grove
mellow hemlock
#

Neither my normal home assistant user nor a new created user works.

#

also the error reads "null username or password" which means it doesnt receive any password.

#

i also tried to set anonymous login to true but this didnt work either

proven grove
#

Ok... hold on... something I just thought about... your MQTT password, is it more than 8 characters?

mellow hemlock
#

my dedicated username is "mqttuser" and my password is "mqttpassword"
my normal home assistant username and password has each 8 characters.

trim pagoda
#

question. i am going to run HA on virtual box for the time being. i intend on having live cam views on dashboard. whats a good setup for performance in this so i dont get lag? i have 64gb ram an nvidia 2060 and an i9 11th gen

verbal mica
#

Hello, I've got HA running through Docker Compose but I am getting a consistant [Errno 101] Network unreachable error. I have searched around the server and haven't found solutions, does anyone have any suggestions?

raven forge
#

Share your compose file. Where are you getting this error?

verbal mica
#

Compose file is the default one offered on the Linux installation page. I'm finding this error in home-assistant.log

version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /PATH_TO_YOUR_CONFIG:/config # I have set this properly and configs have been created
      - /etc/localtime:/etc/localtime:ro
      - /run/dbus:/run/dbus:ro
    restart: unless-stopped
    privileged: true
    network_mode: host
#

Error:
ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=19 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=19, family=2, type=2, proto=0, laddr=('0.0.0.0', 52321)>

raven forge
#

Not sure that's of concern. Where are you running this on?

verbal mica
#

This is on Ubuntu 24.04, I'm having trouble actually connecting on local_ip:8123 so I was assuming it's probably related

#

I've opened 8123 with ufw and my HA host has a static ip

raven forge
#

I'd try disabling UFW entirely for the time being. Did you install docker as snap or from the docker repos?

verbal mica
#

Actually seems like I have a bigger issue than HA, I can't ping ipv4 addresses and I don't have an ipv4 address in ip addr

#

Installed Docker using apt install docker

raven forge
#

Well how did you configure your static ip?

verbal mica
#

I just set it as a static IP through my router. I just realized that I had NetworkManager and systemd-networkd running at the same time, that's probably the issue

inner copper
#

Hey all. I just got my HA up and running on my pi. Was able to access it at the homeassistant.local address. Do I need to do anything else with the pi itself or am I set to just use the site now? I’ve done nothing with the cli

dire spoke
humble mirage
#

question. i am going to run HA on

soft shadow
#

I finally got able to get a new install of HASS running on my PI - but it never actually starts the web interface. I have it attached to a monitor, so I can see its the right IP address (static assigned by router), so ethernet works - checked ha network info, its there.... but how can I check what's happening with the web interface (even when direct IP is used)?

#

(From CLI?)

#

When exploring the DNS setting logs in CLI, it suddenly said: mmc1: Controller never released inhibit bit(s). brcmfmac:brcmf_sdio_read_control: read 1536 control bytes failed: -5

crude inlet
#

@mellow hemlock what is the client device?

lethal solar
#

Hi All, new to HA... I'm trying to install on to a new Minisforum S100, but am having a hell of a time getting the OS to flash onto the ssd. I've gone through the method 1 steps here (https://www.home-assistant.io/installation/generic-x86-64/) several times and have also tried using etcher (while running linux live off of a usb). The harddrive is, afaik, not removable, so I don't think I can try Method 2.

After getting it (as far as I can tell) flashed and rebooting I land at this GRUB command line (not actual picture, but similar interface: https://linuxdecoded.com/storage/2020/09/bootscreen1.png). Has anyone run into this? Do I need to try to replciate these steps (https://linuxdecoded.com/fix-if-your-distro-boots-into-grub-cmdline/)?

raven forge
#

You might have to follow the efibootmgr stuff on that site.
Please boot your live iso again and share what efibootmgr and lsblk -o +FSTYPE says.
Did you disable secure boot and enabled UEFI booting?

lethal solar
raven forge
#

That's fine. The live iso was booted with EFI or otherwise efibootmgr would've complained. Lots of disks/partitions. Which one is the internal one? Where did you flash HAOS onto?
I don't see the partition layout I expect. I suspect the flashing didn't work. Take a look at this: #installation-archived message
Also try the command from there. I forgot about the labels. If you want to do the efibootmgr --create stuff we need to find the right disk/partition.

lethal solar
raven forge
#

No problem. Feel free to ping me if you have any news.

soft shadow
crude inlet
mellow hemlock
#

All clients were working on another dedicated Mosquitto mqtt server before I switched over to home assistant.

#

When hitting the re configure button of the mqtt service in home assistant I do not get past the first screen without correct credentials. I type the correct ones in and then can see the second screen.

rustic mauve
#

Here's a what would you do question for yall...
I have a perfectly good debian 12 box in front of me doing nothing. This and the other 3 computers I have laying around do not have uefi bios. What I WANT to do is load x86 bare metal but that ain't happening. I think by path of least resistance is supervised....
Iknow, but this is just a dev server. I want to load the dev this time so I can try out the new bluetooth description stuff, and I'm not loading dev on my house. Also I hate VM's. I have run supervised for years before I flipped to x86 HAOS bare metal, so I know what I'm getting into...
So, talk me out of it.....

raven forge
#

Why do you hate VMs? I find them absolutely awesome and would have recommended one had you not said that.

humble mirage
rustic mauve
#

I could try a VM. I did run supervised for several years, so I know what's up with that so was leaning that way. It's a dev server only... Not production. I could try it I suppose. Didn't pick yet.

proven grove
earnest marten
#

Hi everyone, am trying to install haos but the installed webpage says: An error occured while installing Home Assistant, check the logs below for more information.

#

i can provide the log but it seems there's no where to send files in this chat

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.

humble mirage
#

The use of code share sites was mentioned in #rules - which apparently you didn't take the time to read 😉

earnest marten
earnest marten
steep salmon
#

I am having an installation problem. The image seems to take. HA starts in CLI but then when the web interface starts it gives the same error.

earnest marten
steep salmon
#

Is anyone running Homeassistant on a rpi4?

#

While trying to install HOME ASSISTANT I get this message from the web interface. _________[supervisor.docker.interface] Can't install ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2024.5.5: 500 Server Error for http+docker://localhost/v1.44/images/create?tag=2024.5.5&fromImage=ghcr.io%2Fhome-assistant%2Fraspberrypi4-64-homeassistant&platform=linux%2Farm64: Internal Server Error ("Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")

humble mirage
#

Do you have working IPv6 connectivity?

raven forge
#

Note that ghrc.io has no AAAA record. I would try to check ha host logs and perhaps ha host logs -t dockerd to be more specific.
One of these should have more information about the 500.
If not enter login and then run a manual pull. In this case docker pull ghcr.io/home-assistant/raspberrypi4-64-homeassistant:2024.5.5.

sterile raft
#

heya guys, i just managed to get home assistant container running - now i want to install the supervisor above it, however i wonder a bit - as i started the container via docker run, what is the difference to docker compose and what would you propose i better use? also, i use portainer if that is of importance

crude inlet
#

You can't add the supervisor this way

sterile raft
#

ah i just read, apparently it wont even work on raspberry os

#

the second part of the question still is valid: what is the beauty of compose over run?

crude inlet
#

Supervisor is for managing containers as add-ons. You are choosing to manage your own containers with a plain container install, which is fine.

#

Using compose keeps things more managed and is a way to add consistency...mapping out the volumes the containers use and access to hardware, etc in a formal way

sterile raft
#

would docker run also survive a raspberry restart then?

crude inlet
#

not automatically

sterile raft
#

i see, will look into that

#

and a third question, i made a backup, now i want to restore it. however the backup page only gives me a "create backup" but no restore. according to the manual there should have been a restore option on the welcome dialog, but tbh i didn't see any

crude inlet
#

there is no restore option for container install. you would just extract and copy the config directory contents over the current one

raven forge
sterile raft
#

yeah, thank you. just discovering a new issue, it always tells me "Login attempt or request with invalid authentication from DESKTOP-xxx.fritz.box (192.168.10.14). See the log for details."

#

which in fact is the device i am logged in in HA

#

logging out and in and restarting HA do not help

#

only happens for the windows pc tho, no issues with the app

#

WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from DESKTOP-XXXXXXX.fritz.box (192.168.10.14). Requested URL: '/api/websocket'. (Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/6.6.2 Chrome/112.0.5615.213 Safari/537.36)

#

firing up every 3 seconds or so

thorn tundra
#

Hello! Maybe someone can help me? I first time boot my HomeAssistant on mini PC today and want to install it, but something went wrong and it returned something like this: home assistant cli not starting jump into emergency console

raven forge
sterile raft
#

any idea how i could solve the issue with the invalid authentication? ran out of ideas

#

in fact i CAN log in, but this is clogging up the logs and causes unneccessary writes

humble mirage
#

You need to track down whatever is the source of those login attempts

#

Did you install any app on Windows that interacts with HA?

sterile raft
#

i had(!) hass agent but terminated it, still happened

humble mirage
#

Check that it's really terminated

sterile raft
#

dang, but it still ran a service, thanks!

#

and another question.. on HA container, installing a container takes insanely long

#

downloading but also extracting

#

thought it was the SD card, but another one shows the same

humble mirage
#

Another one of what?

proven grove
sterile raft
#

sorry, had to afk - another sd card showed the same

#

around 30min for installing/extracting the HA docker image

#

around 15 for portainer

#

i have the feeling like the raspberry is like "overwhelmed" with the file actions?!

proven grove
#

Yeah, that's not normal... when you say "raspberry", what model is it?

sterile raft
#

4B 8GB

proven grove
# sterile raft 4B 8GB

Wow... yeah, that should not be showing IO contention at all. So, interesting theory... can you traceroute to ghcr.io and see what happens?

sterile raft
#

i would need to try from the raspberry too, however its not really the issue... it connects and then halts

#

then downloads... then halts...

#

and eventually finishes

proven grove
#

Ok, so not a network issue then... I mean, it could be a bad Eth port on the rPi or a bad connector for the SD card. Since you've already swapped out the SD cards, I don't think it's a problem there.

#

On my 4B, I have no issues at all pulling images, so I'm not sure.

sterile raft
#

maybe i am just unlucky and both cards are meh 😄 guess i'll get a new one soon to see if that could help

proven grove
#

Lol also yes.

#

But I wouldn't expect the same behavior on two bad cards, tbh. If nothing else, I would expect to see file system errors or something on one of them.

civic surge
#

Hello, I run windows 10 and currently runnong HA on VirtualBox and would like to know if it's better to run HA using QEMU on windows 10???

sterile raft
#

@proven grove so this is happening since 30min - apparently all downloaded, but busy extracting... therefore halting other processes (like HA) from properly running: https://imgur.com/G1eldUc

#

and somewhat processing 1mb per minute

rustic mauve
#

Temperature throttle? low power supply?

rustic mauve
# raven forge Why do you hate VMs? I find them absolutely awesome and would have recommended o...

So I am trying a VM (virtualBox). I already had Deb-12 running, so tried this. I got this to work the first time I tried, but it was on the bench and in a different subnet from where it needs to live. I could log into HA, happy happy. I physically moved it to the final location, I thought rather that futz with changing the IP, I would kill the VM and build a new one. Didn't work. I am on my 7th re-install, and no connection... I am able to ping the VM from anywhere in my network. The IP is literally right next to my main HA (.11 instead of .8), so everything should work. Symptoms see the VM start, no problem that I see, it pops up to the home CLI page, tells me the IP. I try to open the IP and it cannot establish a connection. I have not been in this yet via browser to change anything. I can root around in the CLI looks ok there.
What do I need to look at? I try from the browser on the machine that's running the VM and it cannot connect. Also tried from a different PC and FF & Chrome.

raven forge
#

I'd suggest Proxmox VE like tinkerer said but if you use VirtualBox I'd need to see how you set up the network for the VM. You basically want to bridge the VM's network to the host's. Don't use WiFi. I never ran VirtualBox on linux though. In the VM itself you can run ha network info and stuff like ping 1.1.1.1.

rustic mauve
#

bridged, and I can ping the VM and the host from a different machine.

#

So icmp ok

#

Ii see them both in my router as well

#

Weird, right?

raven forge
#

Then that should be okay. You can run something like ss -lntp to see what ports are listening. Also check ha core logs and ha supervisor logs. Can you reach the observer port in a browser?

rustic mauve
#

It's just bothering me. I know I can try something else.

raven forge
#

Debian doesn't use UFW as far as I know but perhaps there's a firewall active. Try iptables -L. I'm not convinced it would even apply to VM traffic though.

rustic mauve
#

I see red in the core log... frozen runpy

#

and the core shuts down. Well that will do it.

raven forge
#

Doesn't tell me much. With newer versions you can run ha core logs -vf to follow the logs if that helps you.

cursive plank
#

any guidance on how i can get secure access to home assistant? when using studio code server add on, i get a warning that "code-server is being access in an insecure context." i am currently using remote access via cloud-flair

rustic mauve
# raven forge Doesn't tell me much. With newer versions you can run `ha core logs -vf` to foll...

So the 8th time it just worked. I'm in. I killed the VM completely again and extracted the virtual disk file again and everything was the same except I grabbed the mac before it was started and reserved an IP address instead of it picking one. I am in and up.no errors in core.
Well you did help, got me looking at the log. Let's see if it will reboot on power-up now...
Thanks for the push and the help.

mellow hemlock
#

Sorry to bother again with my MQTT problem/bug. I opened an issue on GitHub but it doesn’t seem to interest much. Is there anything else I should do to draw some attention to it?

raven forge
#

Context?

mellow hemlock
#

Sorry that was yesterday already.

#

I can’t get Mosquitto to work and even with a freshly flashed sd card this error is reproducible

humble mirage
#

What error?

#

Github issues get looked at when a dev has time, trying to bump it or get devs attention will have the opposite effect to what you want 😉

copper steppe
#

Have you documented clearly the steps you took, where the behaviour diverged from expected, and any logs from that time?

#

what's your issue url

weak sand
#

Hi, I have installed HA via a VM, my VM powered up perfectly but then I can't access to my HA from my browser with the link my VM gives. I already had installed HA with this method but then I had to delete everything and now I'm trying to get it back but It doesn't work. Maybe I need to change the link my VM gives me ?

amber sage
weak sand
#

The IPv4 address ?

weak sand
humble mirage
#

Yes, it is the IPv4 address

worldly iron
#

I'm having some random network issue with my HA machine (no device can connect, but router says it's connected fine) and I connected an HDMI to show the "actual" (not sure how it's called) log and try to find the cause. There are some ffmpeg and memory dump errors. Is there a way I can connect and see this screen from my computer? SSH?

weak sand
humble mirage
#

What IP are you trying? What's the (LAN) IP of your router?

weak sand
raven forge
#

What VM software are you using? What ip does your PC/Phone have?

weak sand
#

im using virtualbox and my IP is 172.20.10.3

raven forge
#

The VM should have a similar ip as the host that's running the VM. Ideally similar to your PC so you can reach it unless you have some advanced network setup that can route this.
My guess is you haven't bridged correctly. Can you show the network config for the VM?

lime valley
#

hello everybody, i am pretty new to hassio but already experienced with homebridge and networking, so now i face something pretty akward:

owning 3 homepods, i know i could add them when i freshly started with hassio. they were auto suggested by the "apple tv" integration and i accepted and boom: integrated.

i also run openwrt router and access points and i am segregating my network into 3 vlans, from main to guest to iot.

so i started seperating my hardware around and therefore nuked my previous test hassio installation and started fresh.

but now i have the problem that all 3 homepods are still auto suggested and presented but i cant add them (3 modals are being presented but at the end there is a generic error, something went wrong)

any ideas how to debug this?

#

maybe its something with mDNS on port 5353, i had to add avahi server with reflector yes and a rule for vlan iot to lan

humble mirage
#

VLANs and reflectors are going to cause problems

#

Move everything HA needs to talk to onto the same VLAN as HA

lime valley
#

homepods and HA are at the same (main) vlan

#

reflector is just for stupid light bulbs and so on

#

logs and debugging is also not helping

carmine sand
#

I'm having troubles upgrading to HA Core Update 2024.5.5 https://i.postimg.cc/5Ng00YnK/image.png
right now I have 2024.4.3 installed and I can't get the new version to install. I tried rebooting and starting from scratch. It might be related to a prior gone-wrong ugprade attempt? maybe I stopped a prior one in the middle and rebooted?

This is more about the Home Assistant upgrade but wanted to try here first before I nudge the general channel...

humble mirage
#

Read the channel topic - you're in the right place 😉

dire spoke
#

Anything in the logs?

velvet gorge
#

After adding usb storage (I was running low on space for some reason) I seem to have supervisor issues every time I try boot, it switches me to emergency cli or something on the home assistant display.

Eventually after a day or two, it comes up in a restricted mode with barely anything loaded. Although my matter stuff works from the app dashboard I can't load thread.

Is there a way I can reinstall supervisor from here? Or like the latest update? My add-ons do update still and home assistant core aswell. Just not seen anything for the OS or supervisor yet.

#

USB was a mistake, it never seems to work out for me on Raspberry Pi. I should've extended my partition to the full SD card cause it's definitely big enough

Now invalid config for energy, history, and logs

Edit: please tell me there's an easy fix that doesn't involve starting from scratch? 😅

weak sand
amber sage
#

if you open a command prompt can you ping that IP address

trim briar
#

I changed my docker compose to a stack and I'm on onboarding again?

#

my config dir is correct

humble scaffoldBOT
#

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

trim briar
#
docker-compose.yml  hassio  mqtt```
proven grove
#

$PWD is probably different and HA is rebuilding your configuration because nothing existed in that folder?

trim briar
#

yes, the folder had the files added to it

#

can I make it just use the files

proven grove
#

Either point to the old folder OR stop the container and copy the old files over to the new folder.

trim briar
#

I'll take option 1

#

Why does it do that though, shouldn't it just use a volume I give it

humble mirage
#

$PWD probably wasn't what you thought it was

proven grove
humble mirage
#

I always explicitly full path things to avoid confusion

trim briar
#

oh nice it overwrote my db

#

so it did find the files

proven grove
#

Did you have a backup? Also, what do you mean it found the files?

trim briar
#

it wrote to the same dir

trim briar
#

next time I'm migrating I'm turning this bitch into an image

noble trout
#

Hi, I have HA installed in k8s, and I'm having problems with the trusted_proxies - there's no wildcard option as far as I know and the IPs of my ingress pods keep changing. Can i somehow make this more relaxed?

tender wren
#

Use an IP range

noble trout
#

the format isn't described in the docs, they just say it's a list

#

oh, cool, thanks, deploying it now

tender wren
noble trout
#

ah

#

the sample config also mentions it, so my bad, thanks anyway, seems to be working well

#

overall HA in k8s - 👍

cloud gorge
#

I'm installing home assistant via docker on an orange pi 5 running armbian

#

do I need to use docker without sudo?

#

bearing in mind I'd like to have access to this outside of home network via cloudflare tunnel

mellow hemlock
humble mirage
#

The HA container should run as root though, by design

agile stratus
#

Hey, I’m switching to Proxmox and HAOS, my setup is lacking an SSD. Should I go for the cheapest option available (128Gb) or more storage?

raven forge
#

Technically it's enough for PVE (10G) and HAOS (32G) but I would recommend more. You want some spare space for more VMs/CTs, isos, templates, backups, etc and the values are kind of the bare minimum.
Used Intel DC SSDs can be surprisingly cheap on eBay and can be a great option. Especially if you want to use a demanding option like ZFS.

edgy karma
#

I was trying to swap SD cards for my home assistant but I think I might have accidentally instead launched the backup on a proxmox vm of Home Assistant

agile stratus
raven forge
#

Depends. For HAOS it's mostly how many addons you use, which ones, etc. How long you store recorder history and how many HAOS backups you take also have an effect. The lowest I'd go would be 256G. It barely costs more. The bulk of the storage will probably be your CCTV endeavour. Even 1T isn't much for video recordings but this doesn't have to be SSD storage. I'm not sure how much space you need for that. Lots of variables and I can't make a real recommendation.

agile stratus
#

CCTV will be stored in a separate HDD, my idea is to use the SSD only for the core of the system (sorry if I confusing techie words, I’m not very comfortable with all this)

#

Thank you!

warm elbow
#

Hi, I am new to smart homes; I wanted to find an AI planner where I can draw new wire diagrams for my house so it will be done correctly. I know which switch should control which lights, but finding the best way to wire them is challenging. Would you advise any app or anyone who can do it, please?

lyric laurel
#

Hey is there a way to install a second hard drive (total of 3) in HAOS? Running on a optiplex, I was hoping to have one hard drive for Frigate, one for data and one to run HAOS on. I noticed when I added the data drive, my instance was really snappy!

lyric laurel
trim briar
#

Migrating data is not supported.

#

It'll nuke it every time

manic bane
trim briar
#

Hmm, so what went wrong in my case 🤔

trim briar
#

Not trying to spread hate or anything just trying to figure out a workflow for me in case of migration

manic bane
trim briar
#

hmm I'll do some testing then and figure out what happened

manic bane
#

Is it even reading the config file?

trim briar
#

It was, it loaded my template sensors

#

hmm I just copied the entire folder and started it up and it booted just fine, maybe it was just a fluke/permissions issue

proven grove
#

For your docker compose, create a static folder somewhere (I use /srv/homeassistant/). Then, copy the entire contents (including hidden files, I use this rsync -avh --progress <source_dir> /srv/homeassistant/) from your source directory into the newly created new one. Then start the container(s) with docker compose pull && docker compose up -d --remove-orphans). I have my entire stack running in swarm mode. ( @trim briar )

late sparrow
#

Hello, The computer i am running HAOS on has an internal hard drive that i just unplugged. Do you think it could be reformatted and used as as an external drive for music streaming (I need to be able to stream at least 6 mp3 files in parrallel). I did some googling and found this which sounds like it could work > https://community.home-assistant.io/t/new-addon-samba-nas-mount-external-disk-and-share-it/172193

Assuming its possible at all, my first issue is reformating the drive while its mounted. I have no sata adapter so I will need to plug it in and use HAOS to reformat. Is that possible? Otherwise I guess I could boot up some kind of linux on a usb stick and do it from there (I think)?
What do you guys think?

raven forge
#

I'd recommend you put gparted on a ventoy stick and use that.

late sparrow
#

sounds great

raven forge
#

It's not really hard to format it in the CLI but HAOS doesn't even have non-us keyboard support.
If you want to go the CLI way I'd suggest cfdisk which is very simple to use.

late sparrow
#

what exactly is the keyboard issue?

#

nevermind I will go with your recommendation

tender wren
late sparrow
#

I have british english

#

if i can avoid having to plug a monitor and keyboard in it would be a plus

#

nevermind Im just being lazy ill do it with gparted

tender wren
#

Days without system crash 1 0

late sparrow
#

would you happen to know what file sytem i had best use?

tender wren
#

ext4

late sparrow
#

I just used this. its cool but sure seems like a pretty major security flaw, no?

#

and thanks just saved me

#

Jorg and Impact thanks its all worked perfectly using your advice!

humble scaffoldBOT
#

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

sacred ibex
#

Could I get some advise on how the best way to get ssl for my instance

#

I have dynamic DNS setup, I'm running HAOS on a VM in Windows

raw hedge
#

It’s why you have to run your applications as not root user or get into rootless docker / podman

late sparrow
#

Oh yeah I did notice that actually

#

It's interesting stuff

raw hedge
#

This is why I got into podman for my installs

raven forge
late sparrow
#

Oh yeah good point

velvet gorge
#

Can I preserve my thread/matter settings and all of the routines if I were to try reinstalling?

humble mirage
#

You do have backups?

celest torrent
#

Hey gang, having a proxy problem, wondering if someone might know what is going on. I have a proxy sitting in front of home assistant to proxy HTTPS traffic from the web. I can get to the login via HTTPS, but after I login, I get a lovelace page that says it cannot connect to HomeAssistant.

Looking at developer tools in my browser, and I see a 400 - Bad Request in a web socket.

I can login just fine over HTTP using the default port 8123. Is there any configuration I'm missing to be able to use Home Assistant behind a proxy? I've tried adding my HTTPS address to the Internet address for the Home Assistant URL in the system settings.

humble mirage
#

Check the HA log file

humble scaffoldBOT
humble mirage
#

Check the docs there on proxy configuration

celest torrent
#

Oddly nothing in the logs. That was how I discovered my initial issue. Should have mentioned I added the proxy configuration already:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - [proxy-ip]
humble mirage
#

Make sure you have websockets enabled in the proxy

celest torrent
#

Yeah, wondering what that config might need to handle. Is it just for requests to /api/websocket
Are websockets running on the same port 8123?

humble mirage
#

Yes

tardy cave
#

Hello! How can I fix this error?
"Failed to start HassOS Configuration Manager" message.

HA worked for several months. Think this happened after installing a popular add-on via HACS.

humble mirage
#

What add-on?

tardy cave
# humble mirage What add-on?

Ha, i actually don't remember now. Think it was for slider type cards.

Anyway to fix? Or do I need to re-flash and then install from the backup?

raven forge
#

I'd suggest you check and share your host and supervisor logs.

humble scaffoldBOT
#

show your Home Assistant logs

#

show your Home Assistant logs

raven forge
#

I hope that first link works.

tardy cave
raven forge
#

Sure. Run ha host logs and ha supervisor logs via SSH or keyboard and monitor.

tardy cave
#

Hmm, how do I do that? I'm new to this 🙂 I got my monitor/keyboard connected to the mini PC and can see where it errors out at bootup. And then shortly after that it flashes a single hashmark "-".

Is there a way to get to a prompt command from there (or elsewhere) to run and download the logs?

raven forge
#

If you don't see a > ha there I would recommend you reinstall and restore from backup.
Out of curiosity I'd like to see the errors you get during booting though.

tardy cave
humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

raven forge
#

Yeah that's not good. I found a similar lz4 error message when I searched for your error earlier. Interesting. Might be something kernel/bootloader/etc related or storage related. What storage do you use?

tardy cave
raven forge
#

Oh. USB sticks aren't known to be reliable OS mediums. They can be worse than SD Cards.

tardy cave
raven forge
#

I'm not sure. The flash and controller just aren't binned/chosen/designed for such things. Can't you use the SSD on its own? I don't recommend SD Cards or USB sticks as boot medium.

tardy cave
raven forge
#

No I mean install HAOS directly onto the SSD.

#

With HAOS flashing is installing so if you flash a USB stick it becomes your HAOS install.

tardy cave
# raven forge No I mean install HAOS directly onto the SSD.

Ahh thanks for the direct link. i was stuck on the page before that where it only said flashing the USB. Yeah, I can do method 2 with those instructions. What is the downside risk of installing on the SSD vs. USB/SD mediums? Other than wiping the PC BIOS

raven forge
#

Personally I use docker as well. If you're familiar with linux (or want to be) I'd actually recommend installing HAOS as a VM on Proxmox VE: #hardware-archived message

raven forge
tardy cave
raven forge
#

Yeah there's quite a few more things to learn.

tardy cave
raven forge
#

Depends. Plug it into your computer with a USB adapter if you have one. You might need a software than can read ext4 file systems if you're on windows like LinuxReader.

thin wagon
#

does anyone using home assistant green see the Error installing Home Assistant.[supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server

tardy cave
raven forge
#

No problem. I'd recommend picking another USB stick to be safe(r) if possible.

thin wagon
# thin wagon does anyone using home assistant green see the Error installing Home Assistant.[...

[supervisor.host.manager] Host information reload completed
2024-06-04 00:22:47.578 ERROR (MainThread) [supervisor.docker.interface] Can't install ghcr.io/home-assistant/green-homeassistant:2024.5.5: 404 Client Error for http+docker://localhost/v1.43/images/ghcr.io/home-assistant/green-homeassistant:2024.5.5/json: Not Found ("No such image: ghcr.io/home-assistant/green-homeassistant:2024.5.5")
2024-06-04 00:22:47.580 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retrying in 30sec
2024-06-04 00:23:17.612 INFO (MainThread) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/green-homeassistant:landingpage to ghcr.io/home-assistant/green-homeassistant:2024.5.5
2024-06-04 00:23:17.612 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/green-homeassistant with tag 2024.5.5.

raven forge
#

That is a problem. Are you able to get to the > ha terminal?

tardy cave
thin wagon
#

nop

#

this is the fist time use green,do not have a account in

raven forge
#

If you can't get into a CLI I can only suggest a reset. The folks in #green-archived might have a better green specific idea.

trim valley
#

possible to move a home assistant OS install to a docker install?

#

i was using a pi before but i have a home server now

humble mirage
#

Well, yes but no

#

You can move the HA Core part easily enough

#

Add-ons are harder

trim valley
#

dont need the addons

#

except z-wave JS maybe?

humble mirage
trim valley
#

aside from z-wave JS the onyl addons i have are to manage hass OS

humble mirage
#

For the rest, just manually extract your backup

trim valley
#

is there a guide for the manual extract? i see theres no button for it on the onboarding screen of the container version

#

oh i see

#

i assume the homeassistant.tar.gz folder can be applied to my data directory, it looks the same

#

yoo that worked

#

ill talk to the zwave pepes for the rest thanks

tired hollow
#

Hey, hope this is the right spot for this question but I am unable to open my HA ui on my host machine. currently have HA running on a VM. I am able to connect with homeassistant.local:8123/, homeassistant:8123, and the IP address from a different machine but when trying to pull it up on the machine hosting the vm, it wont open. Any thoughts?

copper steppe
#

It's 99% likely related to the way in which your VM guest is connecting to the network. It should be bridged, not NAT or local-only.

#

there's probably some kind of "local shortcutting" happening o nthe machine hosting the vm

#

Maybe a firewall or something?

lethal solar
# raven forge No problem. Feel free to ping me if you have any news.

Hey @raven forge,

Hi, Impact! Still trying to sort out what's going on after I flash HAOS. I ran the couple of commands you asked me to:

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0002,0001
Boot0001  UEFI: Built-in EFI Shell    VenMedia(5023b95c-db26-429b-a648-bd47664c8012)0000424f
Boot0002* UEFI OS    HD(1,GPT,607d248b-0d4d-4c63-8870-f4779f897e2d,0x100,0x43300)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
Boot0003* UEFI:  USB, Partition 2    PciRoot(0x0)/Pci(0x14,0x0)/USB(13,0)/HD(2,GPT,1cf7d054-8db5-4194-971c-3c8665684807,0xb610ec,0x279c)0000424f```
tired hollow
raven forge
#

Please share your VM's network config.

edgy karma
#

I'm thinking of trying to move my installation of Home Assistant OS from my Raspberry Pi to a VM in Proxmox. Though I noticed when I accidentally used HAOS from Proxmox when changing a micro SD card that the backup of HAOS didn't properly handle certain aspects most notably vaultwarden properly. Are there important steps to take when moving from a directly on hardware to a VM solution?

raven forge
#

You likely didn't enable the guest agent.

#

Also note that PVE does not support the pi so expect bugs when you use a third party workaround to run it on a pi.

edgy karma
raven forge
#

Ah. Maybe I read that wrong then.

#

If you share the VM's Summary, Hardware and Options tabs I can tell you what I would change. Otherwise it's just start the VM and restore from a HAOS backup.

lethal solar
#

@raven forge while trying to get my issues resolved I noticed that in several other of your posts you recommended going with a Proxmox install rather than on bare metal. I don't have any experience with Proxmox, so I'm not sure if that would be a better route for me. I saw that it could be somewhat taxing (at least more than HA by itself), and wasn't sure if this little computer (Minisforum S100) could run it.

raven forge
#

I don't think the PVE installer supports the kind of storage the s100 uses.
PVE on its own requires about 1-1.5G of memory. 8G is small but okay for a few VMs or so. I don't recommend PVE in this case.

edgy karma
raven forge
#

Not directly. You can get most of the info by looking at the plain text config file of the VM but I'd rather see it as image in this case as that's what I'm used to.
If it's because pictures are blocked here see below.

humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

edgy karma
raven forge
#

You can share it in full if you want. I just need the upper left stats for now.

edgy karma
raven forge
#

That looks okay. Guest agent is eanabled and active. This is important for backups to properly freeze the file system to create consistent backups.
All the other settings like host CPU, OVMF, discard, ssd are okay too. What I would change is to enable iothread on the disk.

edgy karma
#

where would I go to enable iothread?

raven forge
#

Double click the disk in the Hardware section.

edgy karma
#

Okay, yeah seems everything works except when using an actual URL for vaultwarden. Both when using the url for home assistant as well as vaultwarden standalone.

raven forge
#

What exactly happens? I don't use vaultwarden so you have to give me more information if you want me to be able to follow.

edgy karma
lament roost
#

Tailscale is awesome

#

I don't think it makes sense to use for HA though..

#

Think I'm going to look into cloudtunnels

#

Install HAOS on this peppermintOS

terse adder
#

Hi, i am new to HA. I did my first install with docker on Deb, but i need the add store too. So i tried the supervised install. i cam to the step to install the latest .deb für HA. Now the prob: I have Deb version "trixie". The install script says "not supported" and stops. Any idea/information, when trixie will be supported with installing or any workaround available ? thanks !

fossil veldt
#

I am running a HA OS x86 natively on a laptop. Can it also be used to run a docker-based desktop environment? the screen is just sitting there

humble mirage
#

Supervised is a trap, don't do it

humble mirage
terse adder
#

@humble mirage what does "trap" mean in that context `? general slow dev or mostly buggy..?

proven grove
#

Supervised is basically the most difficult version to install and requires a LOT of knowledge to support. You’ll rarely find any of the experts here or on the forums running Supervised. Much better to run HAOS in a vm than go the Supervised route.

terse adder
#

oki. ! Thank you !

humble mirage
#

Plus supervised will break on you

#

That you even asked if it can run on trixie tells me you didn't read the requirements either, so that'll end badly, very quickly

finite wave
#

Hi guys, anyone with the crow runner 8/16 alarm with ip module? Mine dies a few minutes after restart. It stops receiving pings and http requests.

median shale
#

never heard of it...

humble mirage
mild glacier
#

Is there a straight forward way to add an additional vlan interface to a HassOS install, having real problems with some iot devices not playing nice with different vlans and want to add an IP address on a tagged interface to HaOS to help work around that, I've been trying nmcli but its throwing a .. odd error when I try to add the interface

#
Warning: nmcli (1.46.0) and NetworkManager (1.44.2) versions don't match. Restarting NetworkManager is advised.
Error: Failed to add 'enp0s31f6-vlan40' connection: connection.autoconnect-ports: unknown property```
fringe fog
#

You must really like inflicting pain on yourself by putting your IoT devices in a different VLAN than your HA system.

#

IMO, put them in the same VLAN.

median shale
#

add a second NIC?

fringe fog
#

or that

proven grove
floral pier
#

Hey, I moved my HA container to another machine because the host died... Needs a new hard drive.
I pulled a backup of my HA configs and my docker compose file and dropped them on the new machine and went to spin it up.

Loads and the automations are working, but I guess my credentials were lost?

Tried the container password reset directions, but when I go to run the hass command, it complains that it can't start up an http server on port 8123 since something is already running there. If I go to localhost:8123, it's home assistant. So any ideas on how to get me back into my instance so I can relink it to nabucasa?

I'll have to move it back once the new server drive is set, so hopefully don't have to go through this again.

humble mirage
#

Did you miss .storage/ in the backups, or take the backups as a user other than root (and so missed the auth files that are only accessible to root)?

#

Also, what command are you running?

mild glacier
#

It would be nice if most of this stuff had options beyond the 'magic autodection' where if it doesnt work your basically screwed, but that seems to be computers these days

humble mirage
#

A handful do, but some just won't work across subnets

#

The expectation is that HA is on the same subnet as all your devices

mild glacier
#

well, this was my attempted workaround by adding the HA host to the same subnet via vlan tagged membership was going to attempt to fix, but seem to have a fix that is working in place now by adding curtailed broadcasting in place

#

I have my reasons for keeping all the IoT devices on their own vlan (Filtering/firewalling, ironically reducing broadcast traffic etc.. etc,) But it is not without its downsides of course

humble mirage
#

As long as you understand that some stuff will break/not work, and that you'll get limited support you're fine 😄

mild glacier
#

The actual root cause, Im suspecting was actually less to do with igmp snooping and more that the devices in question may not have liked operating on a 5ghz network as they were acting kinda screwy in other ways as well, and putting them on a 2.4ghz only network (no band-steer) the instantly started behaving

floral pier
humble mirage
#

"the hass command" is ... not helpful dude

#

Share the actual command, all of it, entirely

floral pier
#

That was literally the command 'hass'

#

Nothing more

humble mirage
#

That's not what you type

floral pier
#

It's in the directions

proven grove
#

So, you're trying to run a Core install and you have another process running on the machine using port 8123?

humble mirage
#

hass to create a default user, if this is your first time using the tool
That's only relevant if you never started HA

umbral coral
#

The standalone matter server started in my system is not giving me proper responses for say commissioning a new device.
the device is getting commissioned but not getting the appropriate response. Can anybody help me.

empty bloom
umbral coral
strong kettle
#

I'm trying to install HA on my VirtualBox VM, but it's giving me the Can't install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.6.0: 404 Client Error for http+docker://localhost/v1.44/images/ghcr.io/home-assistant/qemux86-64-homeassistant:2024.6.0/json: Not Found ("No such image: ghcr.io/home-assistant/qemux86-64-homeassistant:2024.6.0") error.

#

Oh nevermind? Restarting the VM seems to have fixed it.. maybe?

inland timber
#

I'm not seeing any real mentions of it but my HA has been exceedingly slow since the latest update is there anything I can run or check?

proven grove
inland timber
#

Front end, lots of stuff not loading in

proven grove
vocal stratus
#

My 2024.6.0 upgrade failed and had to hard reboot my HAOS 12.3. Is there something I should do before trying again?

proven grove
vocal stratus
#

i'm trying to check logs now but they don't appear to be persistent across reboots

proven grove
vocal stratus
#

I can.

proven grove
#

So, there should be a home-assistant.log.1 file in your config directory. That's the log of the previous boot and should have the errors in it.

vocal stratus
proven grove
vocal stratus
proven grove
vocal stratus
proven grove
vocal stratus
#

not only that it hasn't written a log in over a week?

#

I'll just try again and make sure it does a backup before

proven grove
#

Well, the .1 log file is from the last boot.

vocal stratus
proven grove
inland timber
#

its like most things load but then suddenly one of the pages wont

#

I am seeing this error since this started: Login attempt or request with invalid authentication from supervisor (172.30.32.2). Requested URL: '/api/core/state'. (HomeAssistantSupervisor/2024.06.0 aiohttp/3.9.5 Python/3.12)

vocal stratus
zealous hawk
#

I just reflashed a device within the ESPHome addon and it froze up and crashed HA so it's not responding. I have HAOS running within Vmware so I can remotely restart it but it made me reconsider my plan to ditch Vmware and run HAOS directly on my NUC. My question is: Is there a less chance for HA to freeze up like that if it runs directly on the NUC? Or would I simply be screwed in a situation like this?

raven forge
#

Give your VM more memory.

zealous hawk
#

Seems to be set at 2048 MB atm

#

Says maximum recommended memory 6.2 GB

raven forge
#

Try 4096 then and monitor the memory usage with glances or similar while building.

zealous hawk
#

(memory swapping may occur beyond this size)

raven forge
zealous hawk
#

I'm probably not able to reproduce the issue though. So I'm still kinda wondering if a direct install of HAOS is unwise for weird incidents like this (even though HA responded again after 10 minutes)

raven forge
#

I prefer VMs for a few reasons: #hardware-archived message
There's of course more but this is HA(OS) specific.
The host needs a few resources too so a bare-metal HAOS would have access to 1-2G more memory but I think the VM benefits outweigh that.

zealous hawk
#

Do people use some kinda failsafe to still be able to restart the HA server remotely? I guess it could be possible to have a Wifi power plug on the HA server and VPN into the router to have the router restart that WiFi plug for HA server to reboot.

#

Thanks for the link. My main issue with running it in VM atm is that I use Windows. And Windows tend to force install updates that reboots the PC. So to keep using VM I would need to put in a linux distro. But how do you make sure that distro is updated in addition to the HAOS running in VM?

humble mirage
#

One word: Proxmox

raven forge
zealous hawk
#

I used Proxmox within Windows before. But I had issue then with Conbee and Deconz if I recall correctly. Vmware fixed my issues then. Not using Conbee anymore though.

limpid tartan
#

Another one of these posts, I keep getting "Something went wrong loading onboarding, try refreshing" upon loading hostip:/8123 and I havent a clue what to do

zealous hawk
#

But Proxmox still require an underlying distro I need to keep updated, no?

median shale
#

proxmox within windows sounds like a bad joke

#

my understanding is that proxmox itself manages the underlying distro

zealous hawk
humble mirage
#

It's also very far from "finicky"

#

If you can use HAOS's UI then Proxmox is no harder

zealous hawk
#

I meant the disabling of windows reboots when I said finicky 🙂

#

So you're saying Proxmox can be a distribution/OS itself ?

median shale
#

that sounds like a loaded question

zealous hawk
#

When I installed it in Windows it was just an alternative to VmWare and virtualbox

median shale
#

you can't treat it as a desktop OS, it's a bare metal hypervisor like esxi

humble mirage
#

Proxmox is an OS + Virtualisation layer

#

You can't install it in Windows

#

in a VM in Windows, maybe

#

But you'd have to be crazy

zealous hawk
#

Hmm.. then my mind is surely playing tricks on me

median shale
#

are you confusing it with VirtualBox?

zealous hawk
#

No, I had that too

median shale
#

qEMU?

zealous hawk
#

Never heard of 🙂

median shale
#

you're probably mistaken then

zealous hawk
#

Yes, it seems I am 😄

median shale
zealous hawk
#

But thanks for clearing that up. Proxmox just sailed up to be a solid contender for installing HAOS directly on my NUC 😄

raven forge
shadow mango
#

recently having some issues after I moved my HA from a raspberry pi 4 2gb to a pi 5 8gb.
My Lutron pico lights either don’t trigger or have almost 10 second delay controlling my Govee lights, and then other times it works perfectly fine.
Also I notice my ram usage and my cpu usage keeps going up but doesn’t go down unless I reboot. Ram was 1.8 when I rebooted now it’s at 4.2/8gb. Before the reboot it was at 7gb.
CPU is now sitting at 31%

#

Not sure where to look for what’s causing the cpu and ram since nothing is updating.

raven forge
#

I'd install the glances addon and see what uses the resources.

shadow mango
#

Installing now

#

It shows homeassistant 105.7 CPU% and 5.81G for MEM. Next under that is glances and it’s not even a gig everything else is even lower.

humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

raven forge
#

Please share a screenshot of it. Make sure you press z before.

rich gyro
#

How does it work installing a integration that doesn't provide config-flow and requires to manually do it in config.yaml

#

Will it pop up in add devices tab or what

#

Is there a guide, please let me know

raven forge
rich gyro
shadow mango
#

Added the two screenshots at the end for hitting Z

raven forge
#

You are supposed to be able to press / in glances to see the full process name rather than just python3 but it doesn't seem to work for me any more. Not really important in this case but I wanted to mention it.
Something is very wrong with HA if it constantly pegs a whole core and uses > 5G of memory. Have you tried safe mode?

shadow mango
#

Pressing that button showed me the process name. Uploading the screenshot now

#

at the bottom

#

python3 -m homeassistant --config /config

shadow mango
#

I restarted it in safe mode and now just letting it do its thing. Seems normal right now CPU only sitting at 3.3 right now. And ram is at 1.6 total. Ill see how it is in a few

raven forge
fallen badger
#

Hello, I'm installing on my pi400 and I get this message [WARN] Home Assistant CLI is not running! Jump into emergency console… , I looked online and it said type login I did and after 2 min it says the same thing

#

sorry I'm new

raven forge
#

I'd try to reboot it and see if that fixes things before we try to investigate further.
It it's still the same afterwards try these commands: #1235858744487972897 message

fallen badger
fallen badger
raven forge
#

Can you take a picture? These commands should work in the emergency CLI.

humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

fallen badger
#

I don't know how to do this on phone

inland timber
#

This only started happening after I just updated yesterday

raven forge
fallen badger
raven forge
#

Yes. Please run the commands I shared there.

fallen badger
fallen badger
raven forge
#

Please show me.

fallen badger
raven forge
#

Hmm. Did you use the | less?

fallen badger
raven forge
#

I'm not at my PC right now to test to give you another command but maybe it's simpler to re-flash.

limpid tartan
#

if im running pihole on my network do i have to something in order to access HA?

limpid tartan
#

alright, i figure i have some connection issues somewhere

#

im running mainsail os for 3dprinting on rpi4, with pihole and nginx in docker, just installed homeassistant and it wont let me past the login page, says connection stopped on the website, pops up a message saying Something went wrong loading onboarding, try refreshing and in the portainer logs it says Login attempt or request with invalid authentication from 192.168.10.140 (192.168.10.140).

#

i am not sure what to make of it, invalid authentication? what authentication?

proven grove
#

How did you install HA?

limpid tartan
#

why would i have to autheticate myself if im logging in from the local network

#

docker compose

proven grove
#

Can you share your compose section for HA?

limpid tartan
#

version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:latest"
volumes:
- //var/lib/docker/volumes/homeassistant_data/_data:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host

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.

proven grove
#

And 192.168.10.140 is your desktop, right?

limpid tartan
#

yes sir, but fwiw no device on my network is allowed to connect

proven grove
#

Is HA also on the 192.168.10.0 subnet?

limpid tartan
#

yes, 192.168.10.213:8123

proven grove
#

In your configuration.yaml, did you setup trusted hosts or anything like that?

limpid tartan
#

i tried adding this but no dice

homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.0.0/24

proven grove
#

Ah, remove that and restart the container.

limpid tartan
#

ive done it already

#

GNU nano 5.4 configuration.yaml

#Loads default set of integrations. Do not remove.
default_config:

#Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

#

this is everything in conf.yaml

proven grove
#

Huh… yeah, that’s odd. This is a brand new install, right?

limpid tartan
#

correct

#

i cant really remember what i installed when i reflashed the pi 14 months ago to install mainsailOS, atleast docker, pihole & nginx

#

and unbound

#

which makes me think this has something to do with either pihole, my router settings or nginx

#

however i have setup 127.0.0.1#5335 as the upstread DNS server, could that have anything to do with this? my router also uses the pi as the dns host

proven grove
#

I don’t think so.

#

So, what I would do is stop the container, delete all the files (rm -rf) in the directory you have mapped in and then restart the container. Effectively reset HA back to default.

#

This doesn’t feel like a network issue to me.

limpid tartan
#

alright now im in the create user page

proven grove
#

That sounds better 😊

limpid tartan
#

homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.10.140 (192.168.10.140). Requested URL: '/api/websocket'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0)

#

from portainer logs and back to square 1

proven grove
#

Do you have a firewall running on the Pi?

#

And you didn’t setup anything in config.yaml, right?

limpid tartan
#

didnt touch it no, not sure if the pi has a firewall running but i highly doubt it

#

you see i have the memory of a goldfish

proven grove
#

lol no worries. I’m trying to think of anything that would actually cause that.

#

Ok. Hold on. Can you try a different browser?

limpid tartan
#

same story with both chrome and edge

#

and im not using any form of password manager nor have i saved HA passwords in any browser

proven grove
#

That’s really strange. In your HA config directory, do you see an ip_bans.yaml file? If so, delete it and try again.

limpid tartan
#

no such file

#

pi@mainsailos:~/homeassistant $ ls
automations.yaml
configuration.yaml
deps
home-assistant.log.1
home-assistant_v2.db
home-assistant_v2.db-wal
scripts.yaml tts
blueprints
core
home-assistant.log
home-assistant.log.fault
home-assistant_v2.db-shm
scenes.yaml
secrets.yaml

proven grove
#

Wait… isn’t your directory /var/lib/docker/volumes/homeassistant_data/_data?

#

That’s what you have in your compose, right?

limpid tartan
#

moment

#

i pasted the wrong text, this is what i composed with

docker run -d
--name homeassistant
--privileged
--restart=unless-stopped
-e TZ=Europe/Helsinki
-v /home/pi/homeassistant:/config
-v /run/dbus:/run/dbus:ro
--network=host
ghcr.io/home-assistant/home-assistant:stable

proven grove
#

Ok, so it’s in /home/pi/homeassistant? And that’s the directory you wiped, right?

limpid tartan
#

yep, stopped HA container, deleted the whole homeassistant directory, made a new one and restarted the container

proven grove
#

Ok, weird question… because I’m running out of ideas here. Any special characters in your username?

limpid tartan
#

which username?

#

but the answer is no

proven grove
#

Your HA username.

limpid tartan
#

im not even sure if it created the user, furthest i got where i had to select my location

proven grove
#

Huh, so this is happening even before onboarding completes. Ok, I need a minute to think about this.

limpid tartan
#

yeah so every time i make "progress" or say, restart the "progress" it goes like this, the homepage where you create a new user pops up, accepts the credentials i give, asks me to give my location and on the bottom left a text "connection interrupted..." or similiar appears

#

then it hangs, upon reloading the page it says Something went wrong loading onboarding, try refreshing...

proven grove
#

But it lets you get to the point of submitting a username and password. I’m not sure why it would just block at that point tbh. Especially on a clean install. Do you have another machine you can try installing it on? Another pi or something?

limpid tartan
#

no i dont

#

so could this be a networking issue afterall?

median shale
#

you said it's on ethernet earlier, does the container get an IP from your router or from docker?

limpid tartan
#

i dont know, the ip is the same as the pi

proven grove
#

Do you have anything running in front of docker? Apache? Nginx?

limpid tartan
#

nginx

proven grove
#

Any kind of a proxy between the OS and docker.

limpid tartan
#

and apache aswell apparentely lol

proven grove
#

lol can you stop both of them and the. Try again?

limpid tartan
#

Failed to stop apache2.service: Unit apache2.service not loaded.

#

so apache wasnt running in the first place and turned off nginx, no dice

merry parcel
#

Hello Friends! Trying to install Home Assistant for my first time on a rPi4b. Installed the image via my Mac and then booted the Pi, got the below when trying to connect to it. I captured the traffic that it is calling outbound and it's all to GitHub to get some data. Not sure why/where we're hanging up here.
Error installing Home Assistant
An error occured while installing Home Assistant, check the logs below for more information.

Checked the logs and obv they're too long to post here but it looks like it was having an issue getting the packages. I removed all my firewalling rules, reimaged, and tried again with the same result.

[supervisor.store.data] Can't read /data/addons/core/configurator/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/dnsmasq/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/deconz/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/google_assistant/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/duckdns/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/matter_server/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/mariadb/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/git_pull/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/assist_microphone/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/dhcp_server/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/letsencrypt/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] Can't read /data/addons/core/cec_scan/config.yaml: Invalid Add-on config!. Got {}
[supervisor.store.data] No repository information exists at /data/addons/git/a0d7b954
[supervisor.utils.json] Can't read json from /data/addons/git/5c53de3b/repository.json: Input is a zero-length, empty document: line 1 column 1 (char 0)
[supervisor.store.data] Can't read repository information from /data/addons/git/5c53de3b/repository.json
[supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
[supervisor.store.git] Loading add-on /data/addons/core repository
[supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
[supervisor.store.git] Integrity check on /data/addons/git/a0d7b954 failed: Cmd('git') failed due to: exit code(128)

#

I'd love to hear if anyone has a suggestion for a spot for me to take a look at. Relatively new to the HA world so trying to still get my legs under me!

limpid tartan
#

@proven grove something new, this logs when i get to the login page and address selection

humble scaffoldBOT
#

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

limpid tartan
#

now i can log in and get into the loading data page but seems like the assistant core keeps looping

#

Home Assistant Core finish process exit code 256

raven forge
#

Monitor ha core logs -vf and ha supervisor logs -vf via SSH/CLI.

limpid tartan
#

how do i do that if HA is in docker?

raven forge
#

Oh. docker logs -tf homeassistant then but that's what you're alreaedy looking at I assume.

#

I suggest sharing a full "loop" then.

limpid tartan
#

yeah its the same

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.

raven forge
#

The -t flag gives you timestamps which are very useful when looking at logs.

limpid tartan
raven forge
#

I guess you can temporarily disable banning but I'm not sure why failed logins should cause HA to just die.

limpid tartan
#

how do i go about doing that?

raven forge
shadow mango
limpid tartan
#

what does the exit code 256 mean?

limpid tartan
#

though it still keeps restarting

raven forge
#

Please use code blocks or use a code sharing side. YAML relies a lot on formatting which gets absolutely butchered by discord without code code blocks.

limpid tartan
#

how do i do a code block again

humble scaffoldBOT
#

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.

raven forge
#

But don't. The bot will just steal the message (unless you sneak around it by editing :)). Use a code sharing side for > 15 characters worth of text.

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.

limpid tartan
raven forge
#

Interesting. How come this is needed in your case?

limpid tartan
raven forge
#

Maybe you stated it already and I missed it but what hardware are you using?

limpid tartan
#

rpi4 model b 2gb, mainsailOS installed on an SD card

#

maybe the issue is the 2gb

#

though memory usage is only 15% now with pihole, nginx, docker, portainer and HA running

raven forge
#

2G should be enough. Might have something to do with the OS I'm not quite sure but glad you figured it out. I'm gonna add researching JEMALLOC to my queue.

limpid tartan
#

its only half sorted, i can access the website BUT it still loops with exit code 256 and signal 7, havent found any useful info about that besides JEMALLOC

#

any clue about how should i start figuring this out?

#

any logs anywhere that i should take a look at?

raven forge
#

Personally I'd either look into how to enable debug logs for HA or run core outside of a container with strace and see what happens.

limpid tartan
raven forge
limpid tartan
#

got nothing to lose so imma try it

#

do i need to remove HA prior?

raven forge
#

No, just stop the container. But again, I do not necessarily recommend this.

limpid tartan
#

this is so frustrating

#

jesus

raven forge
#

Do you have another SD Card? I'm curious if this happens on normal pi OS too.

limpid tartan
#

i do, i might flash raspberry os and give it a shot, but do i understand it right, i can just swap around sd cards and wont lose anything like my mainsail stuff?

raven forge
#

Yup. Mainsail is installed on the SD Card.

shadow nexus
limpid tartan
#

@Kerttu I’m noticing similar issues with

weak sand
#

Hi ! I've powered up my VM with home assistant on it, it's saying "Waiting for the Home Assistant CLI to be ready..." and then "[Warn] Home assistant CLI not starting ! Jump into emergency console...". I tried to put "journalctl -ru docker.service | less, journalctl -ru hassos-supervisor.service | less" #1235858744487972897 message but it's now showing only a black screen...

raven forge
#

Hmm. Do you have backups/snapshots?

#

Can you share a picture of what you see?

weak sand
#

I can't put a picture here... this channel doesn't allow it... but I only see a black screen of my VM running

#

what do you mean by backups/snapshots ?

raven forge
#

Oof. They are one of the best features of using VMs. Google vm backup or vm snapshot.

humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

weak sand
#

can you explain what's the goal ?

raven forge
#

Goal of what exactly?

weak sand
#

of vm backup/snapshot ?

#

because if it's to not lose my VM I don't really see the goal of it in my situation because my VM doesn't work as I can only see a black screen...

raven forge
#

I wanted you to google that so I don't have to explain things that is already widely explained by others.

weak sand
#

okok i'll look into it no problem !

raven forge
#

It won't help you after the fact, of course, but restoring a backup/snapshot might have helped you.

#

Now we have to figure out what's wrong, hence looking at the logs.

weak sand
#

the logs ? 😅 I think I'm idiot haha... I just downladed my VM on a administrator PC. It doesn't have internet but I downladed VirtualBox and the vbi file from another PC and put it in my administrator PC thanks to a USB key. I don't know if those informations are important for you to help me haha

quick wagon
#

Hello, I suspect that my Proxmox 7.4-3 VMs (Including HAOS) have memory leaks, each VM has 6 GB of RAM, and when I turn them on they start and stay around 15-20% usage, and over the span of days and weeks it reports 90-95% RAM usage until it freezes completely and stops working without reporting any error in HA logs, once I reboot the VM the cycle repeats. Any help?

raven forge
#

Where are you checking memory usage?
The PVE GUI stats include cache/buffers and a VM will use almost all it can over time. Google proxmox wrong memory usage. Are you over allocating? Do you leave enough for the host? What does the node Summary say?

quick wagon
# raven forge Where are you checking memory usage? The PVE GUI stats include cache/buffers and...

1- I checked it from the GUI I know it's normal to cache overtime but sometime it just freezes all of a sudden without a reason or a log report (I'm not totally sure if it's due insufficient ram, but I do remeber RAM reaching 100%)
2- Am I over allocating? I have to containers each with 1 GB, 2 VMs each with 6GB, so 14GB out of 16GB, 2GB should be enough for the Host
3- The node summery says (RAM usage 79.16% (12.18 GiB of 15.39 GiB)

weak sand
twin niche
#

I'm trying to install Home Assistant on my Proxmox Host (8.2.2) via the tteck helper script https://helper-scripts.com/scripts?id=Home+Assistant+OS.. When I start the VM I get "Waiting for the Home Assistant CLI to be ready...", I know I can type "login" to get into the shell but I don't know how to give HAOS my static IP instead of using the default DHCP (I have no DHCP server in my network). I'm pretty sure this is the only problem because when I type "ha" it says "Error response from deamon: No such container: hassio_cli" which makes sense because my machine has no internet/ip yet. Anybody knows how to solve this?

proven grove
#

The VM needs internet access to be able to complete the install. Does the host have internet access?

hoary knot
twin niche
twin niche
#

I could just use the LXC version where I can easily set a static ip but I heard that it's limited to some core features only

merry parcel
proven grove
proven grove
median shale
merry parcel
merry parcel
median shale
#

why does it have duckdns and letsencrypt and all of those other addons if it's a fresh install?

crude inlet
#

@merry parcel are you using balena? Have you tried the RaspberryPi imager?

raven forge
#

1- I checked it from the GUI I know it's

rugged karma
#

Is there any easy way for me to completely reset my home assistant? Right now I am running it from a virtual box in UTM and I have just been playing around with it by adding integrations, add-ons etc and changing some of the files with Studio Code Server is there a way for me to reset everything so the files are all back to normal also so that add-ons and integrations are deleted. I sadly did not make any back-ups.

humble mirage
#

Why not just start a fresh VM?

rugged karma
#

Okay I will do that ✅ I was just curious if there was an alternative route ✨

raven forge
#

ha os datadisk wipe does that I think.

rugged karma
rugged karma
fringe moth
#

Hmm i just updated to 2024.6.1

#

and met the recovery mode of HA for the first time

#

seems my scripts.yaml got wiped which was referenced in configuration.yaml

#

restored that from backup , but now my dashboard is missing ?

proven grove
#

Reboot your device (pi, VM, docker container, whatever).

fringe moth
#

how/why did it delete scripts.yaml

#

dashboard is back thanks

proven grove
#

Ummmm, that's a damn good question which I don't have an answer to.

raven forge
#

Maybe it was just misplaced? Try find / -name scripts.yaml via SSH.

fringe moth
#

@raven forge hmm just ran that , and only backup and actual file showed up very weird , just checked ssd drive SMART health and it's fine....

#

and scanned my windows host to be certain i didn't accidentally move it , not on any windows drive

raven forge
#

It might be in another backup file. I don't know how to easily search inside all of them at the top of my head.
For windows searching I'd recommend VoidTools' Everything.

prisma eagle
#

Hey, I want to create an account at nabu casa, but every time the verification code isn't valid and I can't login.

chrome onyx
#

if i install hass thru un-raids community Appstore, what version of home assistant will it be installing? (sorry if this is a stupid question)

little sinew
#

wich device can I use with assist ?

humble scaffoldBOT
#

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

feral coral
#

Hi all,

First I’m French and sorry if my english isn’t perfect.
Second, I’m a noob.
I tried to install home assistant last on PC with a proxmox hypervisor.
I tested about several way find on web and youtube.
Each time, same result.
my log have an error:
[supervisor.docker.interface] Can’t install ghcr.io/home-assistant/qemux86-64-homeassistant:2024.6.1: 404 Client Error for http+docker://localhost/v1.44/images/ghcr.io/home-assistant/qemux86-64-homeassistant:2024.6.1/json: Not Found (“No such image: Package qemux86-64-homeassistant · GitHub”)
Someone have an idea ?
i have already tested this way Installing Home Assistant OS using Proxmox 8 1. and this HAOS - Install VM - Habitats Open Tech 2tks in advance

raven forge
#

Might be misconfigured networking. Do other VMs have functional networking?

feral coral
#

no just one

raven forge
#

Please share the Hardware tab of the functioning VM and of the HAOS VM.

feral coral
#

ram 4g,

#

harddrive 32g

#

et 2 core

#

bios set OVMF (UEFI)

#

processeur intel N100

#

its a minipc

raven forge
#

No I meant a picture of the Hardware tabs inside the GUI.

#

I want to see the network config of the VMs before going further.

raven forge
#

Please send it here so others can follow and chime in.

humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

raven forge
#

Also share the other VM that is working too.

feral coral
#

Sorry with my destok app i dont hnow why i cannot upload a image here

raven forge
feral coral
#

ok and how for upload a image

grand pivot
stable notch
#

I just installed a 2-gang switch. However in home assistant, if I press to switch on one, the other automatically turns on as well

#

Is this normal?

brazen herald
#

(this channel is for installing HA as a system, not specific hardware)

stable notch
#

Ah I did not find a specific questions channel. I'll put it in integrations, apologies.

brazen herald
lofty crescent
#

Off the bat I can not create an anyone help? I don’t know my url of the home assistant server

unreal bridge
#

Hey everybody, i was trying to do some changes yesterday and added trusted IP adresses in the config yaml. but now i cant access the HAOS so i need to change configuration.yaml from HA command line. How do i get the file and edit it there ?

proven grove
unreal bridge
unreal bridge
#

ahh when i have moved into the same folder right

proven grove
#

You can Google vi cheat sheets 😊

unreal bridge
#

so first, login then cd /path/path etc right

proven grove
#

Right.

unreal bridge
#

im thinking it might be better at this poiint to just restore a backup them try this to hard

proven grove
#

lol that too.

unreal bridge
#

🙂

unreal bridge
#

quick question, everytime i try to do a restore backup it says its partial backups, how do i know if a backup is a full or partial ?

proven grove
#

Honestly? I have no idea. Maybe checking the file size?

unreal bridge
#

tried that and took a big one on the same day(yesterday) still partial 😦

proven grove
#

Partial should be fine though.

tender wren
#

ha backup shows all backups with the type (e.g. type: full)

unreal bridge
#

its still only lists partial for me ?

In the HA command line i wrote
backup type: full

tender wren
#

If it only lists partial ones, you only have partial ones

unreal bridge
#

damn. ok thanks

tender wren
#

Except you have downloaded a recent full one

unreal bridge
#

@tender wren sorry to disturb, how do you save when you are in VI edit mode for the yaml file

tender wren
#

:wq

#

First Esc to exit the edit mode

unreal bridge
#

hm i tried pressing esc nothing changed i think ?

#

then i pressed wp and it said q is not omplemented

tender wren
#

:wq for write and quit, not wp

unreal bridge
#

i think it worked 🙂

#

can i remove hacs addons ? from CLI ?

tender wren
#

HACS has no add-ons

unreal bridge
#

so what i did yesterday was that i tried to install streaming to google nest by adding continuosuly csting dashboards, so i followed there guide and after i restarted. now this happens every time.

No auth providers returned. Unable to finish login. http://192.168.50.42:8123/?auth_callback=1

#

not sure what to do anymore since i dont have a full backup... im just stuck

tender wren
#

That's likely a bad auth provider configuration

#

Trusted networks?

unreal bridge
#

yeah i removed all those lines now from the configuration.yaml

#

but it still does not work

tender wren
#

Have you restarted HA or tried a reboot?

unreal bridge
#

not after the edit

#

should i ?

tender wren
#

Yes. Otherwise the changes are not applied

unreal bridge
#

damn. ok i try that thanks for advice. sorry for being a noob

tender wren
#

ha core restart

weak sand
humble scaffoldBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

proven grove
#

@weak sand ^^^

weak sand
#

ooooooh

tender wren
#

If it is text, don't post an image, but... well the text via a code sharing site

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.

weak sand
#

thanks !

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.

unreal bridge
#

Thank you @tender wren and @proven grove i got in to the OS again!

tender wren
hollow skiff
#

Hey folks, HASS OS install on a rpi 4b+ here, just tried removing a dtoverlay=disable-bt from my config.txt via port 22222 ssh (ConBee install compatibility I think, but I forgot why it's there and wanted Bluetooth back), restarted, and now the pi wouldn't boot at all and blinked green 7 times. Tested raspbian OS on a different SD card and it works just fine. Plugged in HDMI and just a blank screen shows up, but it does show a display. I wanted to revert that dtoverlay removal but mounting the SD card and changing config.txt in the SD card partition 1 doesn't work at all. Any suggestions before I try and grab a full backup of sorts and reinstall?

EDIT: nuking the boot partition and replacing the contents with a fresh install surprisingly works!

frozen lava
#

Hey all, I have gotten myself a corrupted data partition and my full HAOS seems to be in some kind of non-persistant mode.
All changes revert after re-boot and files aren't deleted after I delete them, even if I do directly on the host...

How do I unmount partition 8 (/dev/sda8 ) and run a full disk check on it?
I'm running

Core 2024.5.5
Supervisor 2024.06.0
Operating System 12.3
lofty crescent
#

Can someone help me with my initial set up

#

I need to enter a URL that end with :8123 but I don’t know how to initially set the account up

proven grove
#

The url should be http://homeassistant.local:8123 or http://[ip_address]:8123 to start onboarding.

sterile raft
#

sorry for double posting now, but was asked to rather have it here than in general:

#

i still have a question about having an UI. i would like to run HA in kiosk mode, however this fails. here's my script:

xset -dpms     # disable DPMS (Energy Star) features.
xset s off     # disable screen saver
xset s noblank # don't blank the video device
matchbox-window-manager -use_titlebar no &
unclutter &    # hide X mouse cursor unless mouse activated
chromium-browser --display=:0 --kiosk --incognito --window-position=0,0 <URL>```
#

when trying to call this with
````xinit /home/pi/kiosk -- vt$(fgconsole)```
i get the following:

(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)```

any idea how to mitigate this or a better idea on how to run a kiosk?
#

my device is a raspberry pi running the official touchscreen, so i would love to run it on it obviously, but ideally without starting whole startx

proven grove
#

Hmmmm... IIRC, you need to add the pi user to the tty group. (It's been a LONG time since I played with tty permissions though).

lofty crescent
proven grove
lofty crescent
proven grove
#

Might just be a bad flash or SD card error.

lofty crescent
#

I’ve been trying to do this for 2 days

#

Is there a different tutorial I can follow to set up on the raspberry pi

grand pivot
#

The actual documentation

lofty crescent
#

“Home assistant CLI not starting! Jump into emergency console”

grand pivot
#

is the Pi connected to Ethernet?

lofty crescent
#

No does it need to be, and does it always need an Ethernet or can it run or WiFi?

proven grove
lofty crescent
#

Alright does it need to be set up over Ethernet?

proven grove
#

Yeah. There are ways to set it up over WiFi, but I wouldn't recommend it.

lofty crescent
#

Alright I’ll go grab an Ethernet cable

proven grove
#

Worse comes to worse, start with Ethernet and then you can setup WiFi afterwards.

lofty crescent
#

I have gotten to a new screen 🎉

grand pivot
#

HA starts by downloading a lot of packages, so it needs to be connected to the Internet

sterile raft
#
    startx /etc/X11/Xsession /home/pi/kiosk.sh
fi```
#

and also --no-sandbox in the chromium call - one of both did the trick

lofty crescent
#

I have connected it to the internet through Ethernet and logged in on my iPhone. What do I do now. All it says is “ha >” as a prompt

proven grove
proven grove
lofty crescent
proven grove
sterile raft
#

are there recommendations how to set up home assistant as a kiosk? are there solutions to chase?

#

basically thinking of a more lightweight variant of the ha interface? which ideally does auto-login?

lofty crescent
proven grove
#

There's a fully-kiosk integration already. HA itself isn't meant as a UI. It's a server first and foremost that exposes a web frontend. If you want a kiosk, get yourself a tablet and use the companion app (or fully kiosk).

sterile raft
#

well, i dont have a spare android or ios device, but a raspberry case with a screen

proven grove
sterile raft
#

yeah, actually my question was fuzzy - as i do use chromium now, browser is fine. just curious if there is a HACS plugin or such which makes the UI even more accessible

#

but i guess i gotta do this with better lovelace cards then

lofty crescent
#

@sterile raft how far have you gotten?

sterile raft
#

@lofty crescent not sure if we talk about exactly the same situation. are you using the pi with a directly attached screen?

lofty crescent
#

I want to use my raspberry pi as a screen to mount on the wall for HA

sterile raft
#

kinda the same here, i guess

#

so i have x11 installed, but didnt want the full bloated OS interface to load

lofty crescent
#

Is there a tutorial you are following ?

sterile raft
#

there was one which was... meh as it had errors.. lemme create a thread here

lofty crescent
#

Alright

sterile raft
#

[prepare a kiosk for raspberry pi with screen]

proven grove
#

@sterile raft @lofty crescent Thanks for helping each other out... Very much appreciated.

lofty crescent
lofty crescent
sterile raft
lofty crescent
sterile raft
#

well its a stock raspbian, iirc 64bit with gui

#

depends on your needs tho

lofty crescent
sterile raft
#

me too 😄

#

finish the install, then install docker/docker-compose and maybe portainer

#

then install home assistant docker

#

and THEN use the walkthrough i provided you above

#

i use my raspberry for other purposes and therefore went the docker container way

#

if you use it solely for home assistant it might be not the best approach and maybe HAOS could do the same

lofty crescent
#

I want to use it to host and display HA but that’s it

atomic umbra
#

Archie, have you been able to confirm either by local session or from your router's admin interface that the Pi is connected to your network?

#

Once that's done, have you confirmed that the IPs for both devices show that they're on the same subnet?

#

Then, if you're running HA in docker / docker-compose, did you make sure to configure the container to bind to 8123 on the host machine?

atomic umbra
#

Are folks recommending docker/docker-compose because HA isn't easy to install directly on Raspian or something?

sterile raft
#

guess that depends on the use case of the raspberry overall - thats why i said, docker might not be the best option for archie

lofty crescent
#

Would anyone be able to hop on a call so we can get this sorted because I am completely blown out the water lol

sterile raft
#

guess this is more text based here. maybe define your use case? 😉

atomic umbra
lofty crescent
#

I want to use a raspberry pi to create a HA with Lightwave, Amazon Alexa and ring intergrated on the screen. From here I then want to display this on the same raspberry pi screen so I can put it on my wall.

atomic umbra
#

Oh, right, you already have it installed

atomic umbra
sterile raft
#

and where are you stuck, archie?

#

a) which HA variant did you install and b) are you sure its running?

lofty crescent
#

So far I have installed raspberry pi OS (64 bit) 2024-03-15 off the PI imager

#

That is as far as I have got

atomic umbra
#

And then you tried to connect to the HA instance running on the rpi

#

from another device, I'm assuming, and it said it couldn't connect?

lofty crescent
#

It says it can’t connect to HA yes

sterile raft
#

raspberry pi OS doesn't include HA by default - so at that point the docker solution might be advised

#

or did you install HA at all?

atomic umbra
#

According to the HA docs, RPi's imaging tool includes images that have HA built-in

sterile raft
#

yea, but only if you select them

lofty crescent
#

I have rewiped the PI to start from the beginning

atomic umbra
#

@lofty crescent did you install an RPi image that included HA?

proven grove
lofty crescent
#

No, I can tho, i did not see an option to put it on the screen when i did install this version

sterile raft
proven grove
#

lol tbf, back when I started, it was ALL Core and nothing else... I ran that way for a few years before switching over to Container.

atomic umbra
#

@sterile raft docker doesn't really seem advisable at this point

#

Hell, I locked myself out of the HA instance I set up the other day not too long ago. I was gonna poke around the sqlite database before I wiped the configs and started over, but I keep getting distracted

lofty crescent
#

So what do I do, I can see the basic PI dashboard, I want to create a HA server but also be able to show the HA dashboard on the PI screen

#

So I need to have the code on here to set up the HA but also use the web to display the HA

atomic umbra
#

By "PI dashboard" do you mean you can see HA from a web browser you're running directly on the Pi?

proven grove
#

Go with Docker @lofty crescent. I mean, it doesn't get much simpler than that.

atomic umbra
#

Could you share some photos or screenshots or something? That might help

lofty crescent
sterile raft
#

use imgur or such

humble scaffoldBOT
#

@lofty crescent Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

atomic umbra
#

I've set up about 13 other containers across 3 machines with isolated bridge networks, and I still have no idea what's going on with my HA container

proven grove
#

Did you put it in a bridge network? That's probably the issue. HA requires host networking.

#

I have a stack for my containers that all use host networking. Everything else I have in other compose files.

atomic umbra
#

Docker is great for isolation and portability, but if Archie is only running a single service on this machine, the additional overhead like manually pulling images and restarting, or setting up diun/watchtower, and handling volume setup / port bindings seems like a non-ideal trade off for his use case

proven grove
#

Dude... that's WAY over-complicated for a single container install.

atomic umbra
#

@proven grove only for device discovery. That doesn't really explain why my admin account straight up disappeared even though I have a bind mount for the config dir

proven grove
#

Literally set up compose, create the single service file and go from there.

#

duin/wt and volume setup is so not needed for a single container.

atomic umbra
proven grove
atomic umbra
#

No network mounts, but yeah maybe the DB got corrupted when I was restarting containers while tweaking my compose setup

proven grove
#

That could happen. So, when I am testing betas or whatever, I typically create the folder and then right after onboarding, copy the folder to a backup and just keep copying that back to the source dir over and over.

#

Super easy way to restore HA back to default.

atomic umbra
#

Yeah I need to get my backup cron jobs set up.

#

But for Archie's case, what benefit does he gain by installing on docker instead of using a pre-built image for his rpi that has HA pre-installed?

lofty crescent
proven grove
#

I ditched all my crons for backups and just use crashplan. $8/month, but unlimited storage and super easy to restore from.

sterile raft
#

would running a browser window work with preinstalled HA?

atomic umbra
#

@lofty crescent okay so you're on the rpi desktop. Open the web browser and see if http://127.0.0.1:8123/ is accessible

proven grove
proven grove
sterile raft
proven grove
sterile raft
atomic umbra
#

@lofty crescent and you're sure you flashed the RPi image that included HA?

lofty crescent
#

No let me flash that one, is this the one without the PI UI or the one without the PI UI

atomic umbra
#

I'm double checking the docs

#

Oh yeah this is HAOS, not Raspian with HA

#

Do you want Debian if this device is meant to be a dedicated HA kiosk though?

proven grove
proven grove
#

That is the ONLY way you guys are going to get what you want.

#

NO. DO NOT INSTALL CORE.

#

Or, do what you guys want... but I'm telling you from experience... the only way you are going to get what you want is to go the route I suggested.

atomic umbra
#

Code, can you explain what benefits there are in this use case for adding docker to this process? My understanding is that it doesn't support plugins and a lot of other functionality I imagine Archie might want

#

More than one way to dive out a window, my friend

proven grove
#

Yeah, that's a limitation. Container does not support addons, but it's a trade off for functionality which HA was not really designed for. HAOS was meant to use the pi as a server and servers don't usually have UI interfaces from itself and it's not the way HA was designed.

sterile raft
#

tbh i love the easier updates and maintainability via a composer file in docker

proven grove
#

I for one will nope out of installation methods that aren't using the offical docs. Been there, done that. It's nothing but frustration for both me and the user.

sterile raft
#

to sum up: archie, consider installing docker and pull the HA image

lofty crescent
sterile raft
#

disable the overkill of startx

#

then use my approach

#

(if you like)

#

or run startx and then open chromium there 🤷‍♂️

lofty crescent
#

I’m just confused tbh

atomic umbra
#

Why not just have him use the supervised installer?

#

The installation instructions are specifically for Debian, and all of the latest rpi versions appear to be listed as supported devices

proven grove
# lofty crescent Can you please explain to me what I need to do so I can create a server for HA a...
  1. Use the raspberry imager and install the desktop OS
  2. Install docker using the official docker docs: https://docs.docker.com/engine/install/debian/
  3. Install docker compose as well (again using the official docs)
  4. Follow the instructions here: https://www.home-assistant.io/installation/linux#install-home-assistant-container and https://www.home-assistant.io/installation/linux#docker-compose
  5. Wait for it to bring up the container (usually just a minute or two) and then open the browser on your pi and navigate to http://homeassistant.local:8123
  6. Complete the onboarding.
atomic umbra
#

@proven grove so... what happens when he wants to install an add-on?

proven grove
sterile raft
#

yep, would do it that way too - thats how i did and in the end what enables me using the screen

proven grove
sterile raft
#

i agree, unless you have very special use cases you dont need addons tbh

lofty crescent
sterile raft
#

archie, didnt you just flash the 64bit?

#

it has desktop, right?

#

then continue with step 2

proven grove
atomic umbra
proven grove
atomic umbra
#

I'm assuming HAOS has no GUI? Otherwise I'm not seeing the downside in this case

lofty crescent
proven grove
#

Every version of HA (Core, Container, Supervised and HAOS) all have the frontend available.

#

Unless you are talking about a UI for the console, then no, only Supervised and HAOS offer those.

sterile raft
#

GUI as in web frontend or OS UI?

atomic umbra
#

So if the HAOS install will display the web frontend on a connected display, why is that a bad choice for this use case?

#

@lofty crescent do you need to use the pi for anything aside from home assistant?

proven grove
#

Because it won't. HAOS is an entire OS with no GUI option.

sterile raft
#

exactly, there isnt x11 or other, and it even fails installing it

atomic umbra
proven grove
#

HAOS is exactly that, an operating system. It's like installing debian or ubuntu with no GUI. It's a server. It's not meant to have a GUI.

atomic umbra
#

Okay, @lofty crescent , so your choices are:

  1. Docker install: you'll need to edit some files in a text editor, and I assume docker has a desktop client for linux now? Because otherwise this is not going to be enjoyable
lofty crescent
atomic umbra
#

But, anytime you need to install an add-on, you'll need to tweak that file. It should be fine as long as you set up all of the containers in host mode

proven grove
atomic umbra
#

Fair enough

sterile raft
#

do you want something like that, archie?

proven grove
#

Looks good!

#

What's the antenna for?

atomic umbra
#

zigbee

#

I assume?

sterile raft
#

i just wonder how i now get matchbox-keyboard to be nicer

proven grove
#

Ah, so it is... Sonoff Dongle.

sterile raft
#

yeah, i should use an extension cable

#

but yea, its the sonoff dongle

proven grove
#

You should 🙂

atomic umbra
#

@sterile raft I assume that thing has a bluetooth radio. Get a wireless keyboard?

sterile raft
#

damn silly me... got that little keyboard in the drawer ahaha... k380 or what it was called

#

is there however any way to auto-login there at every restart?

proven grove
#

IIRC, there's a "Remember me" checkbox.

sterile raft
#

there is as on the screenshot, just wondering if it persists

atomic umbra
#

@sterile raft what is that device, by the way?

sterile raft
#

rpi 4 8gb with the official case

proven grove
#

Yeah, there's a `Keep me logged in" checkbox.

sterile raft
#

touch screen kit

atomic umbra
#

Neat

#

I should do something like that instead of a tablet for the intercom for the doorbell. Thanks for sharing

sterile raft
#

just remember it needs an UI 😛

proven grove
#

This is why I am not a mod lmao 😉

atomic umbra
#

lol I'm fine installing docker on my devices, but I appreciate the concern 😆

#

While we're talking about containers, anybody tried podman before?

sterile raft
#

what is it?