#installation-archived
1 messages · Page 66 of 1
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
Looks like this is still an open issue in HA: https://github.com/home-assistant/addons/issues/2622 @mellow hemlock
One solution would be to install MQTT on another machine (rPi, etc) and then just use that.
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?
You're right... it got marked as stale for some reason... Did you try your own HA user and password?
yes. tried that already
i added a user via HomeAssistant. I also added a user in mosquitto via the YAML
nothing works
Right... but, from what I read, your actual user account in HA (not the one you created for MQTT) should get in.
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
Ok... hold on... something I just thought about... your MQTT password, is it more than 8 characters?
my dedicated username is "mqttuser" and my password is "mqttpassword"
my normal home assistant username and password has each 8 characters.
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
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?
Share your compose file. Where are you getting this error?
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)>
Not sure that's of concern. Where are you running this on?
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
I'd try disabling UFW entirely for the time being. Did you install docker as snap or from the docker repos?
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
Well how did you configure your static ip?
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
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
Leave it plugged in? But otherwise, nothing
question. i am going to run HA on
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
@mellow hemlock what is the client device?
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/)?
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?
Thanks, Impact. The results are on pastebin below. I definitely disabled secure boot, but could not find an explicit enable UEFI booting option in the bios.
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.
Thank you. I'm stepping away from my computer for a bit, but will follow up on this later
No problem. Feel free to ping me if you have any news.
Raspberry Pi 3B+ - normal HASS installation.
I mean the mqtt client
Any. I have the MQTT device from home assistant, my security camera another mqtt plugin etc.
I just did a test. I installed a fresh Home Assistant OS on an SD card and did nothing else to the system. I get the same error. This must be a bug.
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.
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.....
Why do you hate VMs? I find them absolutely awesome and would have recommended one had you not said that.
Supervised is the path of most pain. It's the worst possible option, well, other than HassWP. Use Proxmox and a VM or go with a pure Container install.
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.
Why not just go with Container and make it easy? That's what I do for betas and if I need the code base(s) for something, I just git pull those down.
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
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
The use of code share sites was mentioned in #rules - which apparently you didn't take the time to read 😉
thanks, that's true I didn't read it through carefully haha
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.
this is my log:) I just installed the OS and this is really frustrating 😦
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)")
Do you have working IPv6 connectivity?
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.
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
You can't add the supervisor this way
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?
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
would docker run also survive a raspberry restart then?
not automatically
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
there is no restore option for container install. you would just extract and copy the config directory contents over the current one
The docs describe --restart=unless-stopped so this should do. Assuming that's what they meant with "survive a restart".
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
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
Please run these commands in the CLI and show what they say: #1235858744487972897 message
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
You need to track down whatever is the source of those login attempts
Did you install any app on Windows that interacts with HA?
i had(!) hass agent but terminated it, still happened
Check that it's really terminated
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
Another one of what?
What's your definition of "insanely long"? 5 minutes? An hour? Does it eventually finish?
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?!
Yeah, that's not normal... when you say "raspberry", what model is it?
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?
under windows i would get this: https://imgur.com/P7nLsx0
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
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.
maybe i am just unlucky and both cards are meh 😄 guess i'll get a new one soon to see if that could help
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.
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???
@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
Temperature throttle? low power supply?
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.
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.
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?
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?
It's just bothering me. I know I can try something else.
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.
I see red in the core log... frozen runpy
and the core shuts down. Well that will do it.
Doesn't tell me much. With newer versions you can run ha core logs -vf to follow the logs if that helps you.
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
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.
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?
Context?
Sorry that was yesterday already.
I can’t get Mosquitto to work and even with a freshly flashed sd card this error is reproducible
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 😉
Include a patch to fix it? 🙂
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
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 ?
Check your router to see what IP address your router has given to the home assistant machine. then try connecting using that IP address. If the IP address was 192.168.1.222 then you would try http://192.168.1.222:8123
The IPv4 address ?
How can I find the IP address ? I don't think it's the same thing as the IPv4 ...
Yes, it is the IPv4 address
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?
it doesnt work 😢
What IP are you trying? What's the (LAN) IP of your router?
I'm trying : http://10.0.2.15:8123/
What VM software are you using? What ip does your PC/Phone have?
im using virtualbox and my IP is 172.20.10.3
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?
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
VLANs and reflectors are going to cause problems
Move everything HA needs to talk to onto the same VLAN as HA
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
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...
Read the channel topic - you're in the right place 😉
What's happening? Error or it just doesn’t complete?
Anything in the logs?
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? 😅
oh yeah you are right i didn't put in adapter 1 acces by bridge... It's working !! thanks a lot
if you open a command prompt can you ping that IP address
I changed my docker compose to a stack and I'm on onboarding again?
my config dir is correct
@trim briar I converted your message into a file since it's above 15 lines :+1:
docker-compose.yml hassio mqtt```
$PWD is probably different and HA is rebuilding your configuration because nothing existed in that folder?
Either point to the old folder OR stop the container and copy the old files over to the new folder.
I'll take option 1
Why does it do that though, shouldn't it just use a volume I give it
$PWD probably wasn't what you thought it was
Like I said, $PWD is probably evaluating to something different when running under compose. Personally, I avoid using $PWD in volume mounts as it acts weird sometimes.
I always explicitly full path things to avoid confusion
Did you have a backup? Also, what do you mean it found the files?
it wrote to the same dir
fresh install hardly matters
next time I'm migrating I'm turning this bitch into an image
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?
Use an IP range
as in 10.0.0.0/8?
the format isn't described in the docs, they just say it's a list
oh, cool, thanks, deploying it now
ah
good point, i was just looking at https://www.home-assistant.io/integrations/http/#trusted_proxies
the sample config also mentions it, so my bad, thanks anyway, seems to be working well
overall HA in k8s - 👍
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
well yes as much as I could. It's quite straight forward though.
You don't need to, you can use sudo if you want, or add your user to the docker group
The HA container should run as root though, by design
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?
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.
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
Thanks for the detailed answer. How much storage would you recommend? I’m planning to do home automation and CCTV motion tracking (frigate I think).
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.
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!
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?
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!
https://www.magicplan.app/ to map out your house and www.draw.io for diagraming. Not sure on the AI part of it though
Migrating data is not supported.
It'll nuke it every time
Updating HA? It’ll use the existing database every time. It won’t overwrite
Hmm, so what went wrong in my case 🤔
Not updating, moving the docker compose dirs around
Not trying to spread hate or anything just trying to figure out a workflow for me in case of migration
Also not an issue. I have changed hosts using the same directory with the built in sqlite with no issues. The container just assumes it’s normal
Changing database as from that screenshot is going from sqlite to mariadb
hmm I'll do some testing then and figure out what happened
Is it even reading the config file?
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
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 )
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?
I'd recommend you put gparted on a ventoy stick and use that.
sounds great
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.
If you have a non-us keyboard, some inputs might be different than what is written on your keyboard.
For example a German QWERTZ keyboard would write a Z, when you type the Y key. Or / instead of -
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
Days without system crash
10
would you happen to know what file sytem i had best use?
ext4
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!
@fading oxide I converted your message into a file since it's above 15 lines :+1:
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
This docker by design.
It’s why you have to run your applications as not root user or get into rootless docker / podman
This is why I got into podman for my installs
Yes and no. You have to disable protection mode for this to work.
Oh yeah good point
Anybody able to help me out with this? 😅
It doesn't give me an option to switch back to sd card 🤔
Can I preserve my thread/matter settings and all of the routines if I were to try reinstalling?
You do have backups?
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.
Check the HA log file
Check the docs there on proxy configuration
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]
Make sure you have websockets enabled in the proxy
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?
Yes
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.
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?
I'd suggest you check and share your host and supervisor logs.
I hope that first link works.
Hmm anyway to get to that without being in the UI? It's not booting up at all.
Sure. Run ha host logs and ha supervisor logs via SSH or keyboard and monitor.
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?
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.
Also new to discord 🙂 What's the best way to share a pic?
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.
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?
😆 Yeah figured. Storage is the mini PC SSD. HA is flashed to a USB stick.
Oh. USB sticks aren't known to be reliable OS mediums. They can be worse than SD Cards.
Tell me more. B/c of read/write mechanism? Or wobbliness? And is an SD still better even if connected via an adapter to USB? PC doesn't have SD slot.
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.
Ahh. As a docker install? Or partition SSD? I went the USB flashing b/c it seemed simpler than docker. And I thought you loose out on something (add-ons?) with a docker install.
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.
If you have a USB to YOURSSDCONNECTORTYPEHERE adapter you can use that to flash it.
Otherwise you have to jump through a few hoops to install it on the SSD: https://www.home-assistant.io/installation/generic-x86-64/
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
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
You're not wiping the BIOS 😄
I don't see a risk. Maybe perhaps data loss if you have something on the SSD you haven't backed up yet.
I initially thought I'd go this path. But, realized I needed to simplify (given my expereince). It was becoming too complex to figure out and then troubleshoot if somethign went wrong.
Yeah there's quite a few more things to learn.
Ahhh ok. THis is super helpful, thank you! Sooo, how can I grab the backups before doing this? They're stored on the SSD (yes, 1st order of business once back up and running is backing up to Gdrive).
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.
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
Hmm, all new to me. Would likely go down the rabbit hole for that. Maybe i re-flash the USB, then install the SSD backup. And after I back up to Gdrive then consider installing to the SSD.
Thank you so much for your help!!!!
No problem. I'd recommend picking another USB stick to be safe(r) if possible.
That's not an error.
[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.
That is a problem. Are you able to get to the > ha terminal?
😆 good point. The one I used is like 10 years old.
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.
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
#zwave-archived can probably help you with that
aside from z-wave JS the onyl addons i have are to manage hass OS
For the rest, just manually extract your backup
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
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?
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?
Which VM System? VMWare?
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```
Virtualbox
What should I look out for?
Please share your VM's network config.
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?
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.
PVE is on a dell optiplex with an i3-10100
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.
@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.
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.
Is there a way to share the summary, hardware, and options tabs in plain text?
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.
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.
Okay, thank you!
do you want the cpu traffic and network usage as well on summary or more so just the text on top.
You can share it in full if you want. I just need the upper left stats for now.
Okay here it is
https://imgur.com/a/H31f2SE
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.
where would I go to enable iothread?
Double click the disk in the Hardware section.
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.
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.
I get a bad gateway error on the normal redirect I use.
If it wasn't for the fact it works normally with homeassistant.local:7277 I would have thought that it's a port exposure issue.
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
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 !
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
Supervised is a trap, don't do it
If you want add-ons, run HAOS
@humble mirage what does "trap" mean in that context `? general slow dev or mostly buggy..?
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.
oki. ! Thank you !
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
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.
never heard of it...
Also not really relevant to this channel, maybe try #hardware-archived
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```
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.
add a second NIC?
or that
So, what does “some iot devices not playing nice with different vlans” actually mean?
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.
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?
mDNS probelsm basically, Although I may have worked around it with more tweaking of my network configuration (igmp snooping)
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
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
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
As long as you understand that some stuff will break/not work, and that you'll get limited support you're fine 😄
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
Just trying the hass command and getting that it can't create an http server. Address in use
"the hass command" is ... not helpful dude
Share the actual command, all of it, entirely
That's not what you type
It's in the directions
So, you're trying to run a Core install and you have another process running on the machine using port 8123?
hass to create a default user, if this is your first time using the tool
That's only relevant if you never started HA
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.
Thanks
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?
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?
Slow on the frontend? Backend? What's the definition of "slow"?
Front end, lots of stuff not loading in
Did you try clearing your browser cache? Different browser(s)? I updated and mine is fine across all my devices. But, sometimes browsers act weird too.
My 2024.6.0 upgrade failed and had to hard reboot my HAOS 12.3. Is there something I should do before trying again?
Did you get an error when trying to upgrade?
I did not. I noticed HA went unresponsive in the app as expected during the install some time after I started and it never came back up. Checking the console of the HAOS add 3 errors related to being unable to create a dump file.
i'm trying to check logs now but they don't appear to be persistent across reboots
Ok, so you did get errors. Can you get to the console (either via ssh or using a keyboard/monitor)?
I can.
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.
appears I need a little hand holding to access this file. SSH is arguing over a protocol but I can get to the console and the ha> prompt
Bare with me as I don't use HAOS, but I think you can type login at the ha> prompt and that'll get you to a shell.
I have Studio Code Server installed so I found it using this easy method
Ah, there ya go. Ok, so find the errors in that file and show them.
so....home-assistnat.log.1 only has entries from 5/27/2024
🤔 Huh... so the update didn't even write to the log file? Weird... If you have a recent backup, I'd say try upgrading again and see if it bombs out again. If you don't have a recent backup, take one first just in case.
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
Well, the .1 log file is from the last boot.
is it only during boot it logs? I would have expected to see logs from 5/28-6/5 too
It's a copy of the existing log file, so yeah, it should have that data in there. I find it odd that it doesn't.
tried that no luck
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)
The upgrade worked this time. I think my HA borked in different ways sometime around when the logs stopped and wasn't clean enough for the upgrade to work the first time.
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?
It actually came back 10 minutes later. This was the error from HAOS: https://imgur.com/a/wWkZCww
Give your VM more memory.
Try 4096 then and monitor the memory usage with glances or similar while building.
(memory swapping may occur beyond this size)
You can also run something like this in the SSH addon
watch -n.5 free -h
Also see here but since you mentioned swap I'd use the ways described above: https://my.home-assistant.io/create-link/?redirect=hardware
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)
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.
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?
One word: Proxmox
In my link I recommend Proxmox VE for virtualization. It's pretty much the standard open source virtualization platform nowadays.
Windows can be configured to not do that though: https://www.google.com/search?q=windows+prevent+update+restart
Might be easier than to install a whole new OS 😄
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.
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
But Proxmox still require an underlying distro I need to keep updated, no?
proxmox within windows sounds like a bad joke
my understanding is that proxmox itself manages the underlying distro
Weeelll.. these methods are finicky and tend to work for a period before breaking
Proxmox handles all that in the UI
It's also very far from "finicky"
If you can use HAOS's UI then Proxmox is no harder
I meant the disabling of windows reboots when I said finicky 🙂
So you're saying Proxmox can be a distribution/OS itself ?
that sounds like a loaded question
When I installed it in Windows it was just an alternative to VmWare and virtualbox
you can't treat it as a desktop OS, it's a bare metal hypervisor like esxi
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
Hmm.. then my mind is surely playing tricks on me
are you confusing it with VirtualBox?
No, I had that too
qEMU?
Never heard of 🙂
you're probably mistaken then
Is anyone able to help me?
Yes, it seems I am 😄
did you try refreshing?
But thanks for clearing that up. Proxmox just sailed up to be a solid contender for installing HAOS directly on my NUC 😄
Proxmox VE (Virtualization Environment) is a debian based OS with GUI and CLI tools tailored for virtualization and containerization.
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.
I'd install the glances addon and see what uses the resources.
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.
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.
Please share a screenshot of it. Make sure you press z before.
You might have run into this: #general-archived message
See what it looks like in safe-mode.
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
I'd ask and share a link to it in #integrations-archived.
Oh I was in wrong channel, sorry 😂😅
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?
Pressing that button showed me the process name. Uploading the screenshot now
at the bottom
python3 -m homeassistant --config /config
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
Sounds like one of your integrations is causing issues. Unfortunately I don't know of a trivial way to figure out which. I'd start with the link from earlier: #installation-archived message
Otherwise use a profiler or disable them in batches until you find it.
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
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
restart didn't work gonna try the commands
I didn't got it work, I may be doing something wrong it keeps giving me the same message
Can you take a picture? These commands should work in the emergency CLI.
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.
Can I DM you so I can send photos if its okay
I don't know how to do this on phone
I have ran the steps in https://community.home-assistant.io/t/2024-5-tracking-down-instability-issues-caused-by-integrations/724441 and I am not getting much luck. What keeps happening is everything is running just fine then I navigate to a given page and suddenly I get Connection lost. Reconnecting… for several minutes then everything comes back fine again
This only started happening after I just updated yesterday
No. See post above yours how to send images.
Is this site also okay, I did this one command https://ibb.co/SwxjytL
Yes. Please run the commands I shared there.
I don't know how to do most symbols since the keyboard is in a different language but I'll try
I did the first command and it says standart input: and I can't type anything
Please show me.
Hmm. Did you use the | less?
yes
I'm not at my PC right now to test to give you another command but maybe it's simpler to re-flash.
I did re-flash 3 times
if im running pihole on my network do i have to something in order to access HA?
You shouldn’t, no.
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?
How did you install HA?
why would i have to autheticate myself if im logging in from the local network
docker compose
Can you share your compose section for HA?
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
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
And 192.168.10.140 is your desktop, right?
yes sir, but fwiw no device on my network is allowed to connect
Is HA also on the 192.168.10.0 subnet?
yes, 192.168.10.213:8123
In your configuration.yaml, did you setup trusted hosts or anything like that?
i tried adding this but no dice
homeassistant:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.0.0/24
Ah, remove that and restart the container.
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 themesautomation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
this is everything in conf.yaml
Huh… yeah, that’s odd. This is a brand new install, right?
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
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.
alright now im in the create user page
That sounds better 😊
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
Do you have a firewall running on the Pi?
And you didn’t setup anything in config.yaml, right?
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
lol no worries. I’m trying to think of anything that would actually cause that.
Ok. Hold on. Can you try a different browser?
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
That’s really strange. In your HA config directory, do you see an ip_bans.yaml file? If so, delete it and try again.
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
Wait… isn’t your directory /var/lib/docker/volumes/homeassistant_data/_data?
That’s what you have in your compose, right?
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
Ok, so it’s in /home/pi/homeassistant? And that’s the directory you wiped, right?
yep, stopped HA container, deleted the whole homeassistant directory, made a new one and restarted the container
Ok, weird question… because I’m running out of ideas here. Any special characters in your username?
Your HA username.
im not even sure if it created the user, furthest i got where i had to select my location
Huh, so this is happening even before onboarding completes. Ok, I need a minute to think about this.
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...
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?
you said it's on ethernet earlier, does the container get an IP from your router or from docker?
i dont know, the ip is the same as the pi
Do you have anything running in front of docker? Apache? Nginx?
nginx
Any kind of a proxy between the OS and docker.
and apache aswell apparentely lol
lol can you stop both of them and the. Try again?
Failed to stop apache2.service: Unit apache2.service not loaded.
so apache wasnt running in the first place and turned off nginx, no dice
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!
@proven grove something new, this logs when i get to the login page and address selection
@limpid tartan I converted your message into a file since it's above 15 lines :+1:
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
Monitor ha core logs -vf and ha supervisor logs -vf via SSH/CLI.
how do i do that if HA is in docker?
Oh. docker logs -tf homeassistant then but that's what you're alreaedy looking at I assume.
I suggest sharing a full "loop" then.
yeah its the same
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
this is what it loops
The -t flag gives you timestamps which are very useful when looking at logs.
I guess you can temporarily disable banning but I'm not sure why failed logins should cause HA to just die.
how do i go about doing that?
Apparently it's ip_ban_enabled: false but that's seems to be disabled by default according to the docs: https://www.home-assistant.io/integrations/http/#ip_ban_enabled
Seems like the docs are wrong or my python reading skills are even poorer than I thought. Wouldn't surprise me much though.
thanks for the help eariler. I cleaned up my intergrations and found the issue. Not 100% sure what the cause was but after I deleted my roborock intergration everything seemed to be fixed and its been at norml levels for a few hours. My pico remotes are even working instantly.
what does the exit code 256 mean?
though it still keeps restarting
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.
how do i do a code block again
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.
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.
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
Interesting. How come this is needed in your case?
found this and tried what worked for them https://community.home-assistant.io/t/need-help-with-home-assistant-configuration-on-raspberry-pi/677108
Maybe you stated it already and I missed it but what hardware are you using?
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
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.
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?
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.
run core outside of a container with strace and see what happens
care to elaborate?
Basically this: https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-core
And then strace hass. Whether I could even do something with the information I don't know but that's what I would do.
There must be a better way so I'd very much recommend you get a second opinion 🙂
No, just stop the container. But again, I do not necessarily recommend this.
Do you have another SD Card? I'm curious if this happens on normal pi OS too.
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?
Yup. Mainsail is installed on the SD Card.
@limpid tartan I’m noticing similar issues with docker for RPi v 2024.6.0…I reverted back to 2024.5.5. Seemed to work
@Kerttu I’m noticing similar issues with
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...
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 ?
Oof. They are one of the best features of using VMs. Google vm backup or vm snapshot.
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.
okay i'll look into that
can you explain what's the goal ?
Goal of what exactly?
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...
I wanted you to google that so I don't have to explain things that is already widely explained by others.
okok i'll look into it no problem !
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.
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
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?
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?
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)
I found the files with the logs "VBox.log" and "VBoxHardening.log", what do I need to look at in those files ?
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?
The VM needs internet access to be able to complete the install. Does the host have internet access?
How do you not have a DHCP server on your network, not even your router?
Its deactivated :( I'm not able to change it because I'm not the one managing it.
The host has internet yes
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
This guy is still kicking my butt
Yeah, Container doesn't support addons... BUT, most addons are really just docker containers themselves and you can usually find most functionality that way. The other thing is how backups/restores are done and a couple of other things. But, you don't really lose a lot. I run Container myself and don't really miss any of the HAOS functionality tbh.
Sounds like maybe a bad SD card. Do you have another one you could try?
that looks like not a fresh install
Tried another with the same trouble
It is, I’ve reinstalled 3 times
why does it have duckdns and letsencrypt and all of those other addons if it's a fresh install?
@merry parcel are you using balena? Have you tried the RaspberryPi imager?
I’m using the Pi imager
I told you the commands to run to get the logs. I also asked for a picture of what you see.
1- I checked it from the GUI I know it's
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.
Why not just start a fresh VM?
Okay I will do that ✅ I was just curious if there was an alternative route ✨
ha os datadisk wipe does that I think.
Okay cool 😎 I will try that out ✨👀
It worked! Woo hoo thank you so much 🙌
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 ?
Reboot your device (pi, VM, docker container, whatever).
Ummmm, that's a damn good question which I don't have an answer to.
Maybe it was just misplaced? Try find / -name scripts.yaml via SSH.
@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
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.
Hey, I want to create an account at nabu casa, but every time the verification code isn't valid and I can't login.
#cloud-archived might be able to help
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)
wich device can I use with assist ?
@feral coral I converted your message into a file since it's above 15 lines :+1:
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
Might be misconfigured networking. Do other VMs have functional networking?
no just one
Please share the Hardware tab of the functioning VM and of the HAOS VM.
ram 4g,
harddrive 32g
et 2 core
bios set OVMF (UEFI)
processeur intel N100
its a minipc
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.
I sent you
Please send it here so others can follow and chime in.
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.
Also share the other VM that is working too.
Sorry with my destok app i dont hnow why i cannot upload a image here
Because of this: #installation-archived message
ok and how for upload a image
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?
That sounds like a #hardware-archived problem. Or perhaps more specific to the #integrations-archived or even #zigbee-archived or #zwave-archived or #thread-archived
(this channel is for installing HA as a system, not specific hardware)
Ah I did not find a specific questions channel. I'll put it in integrations, apologies.
Make sure to specify which device this is and what integration you're using.
Off the bat I can not create an anyone help? I don’t know my url of the home assistant server
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 ?
If you have the samba addon installed, you can access it from another machine on your network. You can also ssh if you have the Terminal addon installed. Or, if you can get the the physical box, you can use the CLI.
yeah i am sitting and trying to work it out in the CLI in the acctual box, i just dont understand how to edit a yaml file in there
vi configuration.yaml.
ahh when i have moved into the same folder right
You can Google vi cheat sheets 😊
so first, login then cd /path/path etc right
Right.
im thinking it might be better at this poiint to just restore a backup them try this to hard
lol that too.
🙂
That should be a pin. 🤣
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 ?
Honestly? I have no idea. Maybe checking the file size?
tried that and took a big one on the same day(yesterday) still partial 😦
Partial should be fine though.
ha backup shows all backups with the type (e.g. type: full)
its still only lists partial for me ?
In the HA command line i wrote
backup type: full
If it only lists partial ones, you only have partial ones
damn. ok thanks
Except you have downloaded a recent full one
@tender wren sorry to disturb, how do you save when you are in VI edit mode for the yaml file
hm i tried pressing esc nothing changed i think ?
then i pressed wp and it said q is not omplemented
:wq for write and quit, not wp
HACS has no add-ons
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
yeah i removed all those lines now from the configuration.yaml
but it still does not work
Have you restarted HA or tried a reboot?
Yes. Otherwise the changes are not applied
damn. ok i try that thanks for advice. sorry for being a noob
ha core restart
as I told you, I can't put a picture in this channel, it doesn't allow it but I would love to send it to u in pv... and for the command to get the logs I can't find it, if you speak about "journalctl -ru docker.service | less, journalctl -ru hassos-supervisor.service | less", it does nothing apart from a black screen ...
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 ^^^
ooooooh
If it is text, don't post an image, but... well the text via a code sharing site
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
thanks !
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
Thank you @tender wren and @proven grove i got in to the OS again!
Don't forget to create a full backup and download it
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!
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
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
The url should be http://homeassistant.local:8123 or http://[ip_address]:8123 to start onboarding.
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
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).
On google I put in http://homeassistant.local:8123 and it says the site can not be reached. When I put in http://192.168.x.xxx:8123 into my search bar it also says the site can not be reached (x means I have hiden the number)
What hardware did you install on? Pi? VM?
I am installing on the pi but I am using a non dashboard user face, do you have a better method for me to set this up. I was trying to set up home assistant on my laptop first then log in on the pi
If you can, attach a keyboard and monitor on the Pi and see what the console is showing.
Might just be a bad flash or SD card error.
I have written a load of code on it from a tutorial GitHub.com/brendanbeavis/DIYHomeKiosk/blob/main/README.md
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
Alright I downloaded all this now it says “waiting for the home assistant CLI to be ready”
“Home assistant CLI not starting! Jump into emergency console”
is the Pi connected to Ethernet?
No does it need to be, and does it always need an Ethernet or can it run or WiFi?
It should be. HA is a server and does much better with an Ethernet connection versus WiFi (unless you really need WiFi).
Alright does it need to be set up over Ethernet?
Yeah. There are ways to set it up over WiFi, but I wouldn't recommend it.
Alright I’ll go grab an Ethernet cable
Worse comes to worse, start with Ethernet and then you can setup WiFi afterwards.
I have gotten to a new screen 🎉
HA starts by downloading a lot of packages, so it needs to be connected to the Internet
actually found the way to start it correctly, nano /home/pi/.bash_profile
startx /etc/X11/Xsession /home/pi/kiosk.sh
fi```
and also --no-sandbox in the chromium call - one of both did the trick
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
Ahhhh, so using /dev/tty1 versus /dev/tty0. Makes sense.
Did you connect to http://homeassistant.local:8123 in a browser?
Yes now I’m all logged into the app but I want the display on the pi and to be able to download Lightwave and ring onto it
To display on the rPi, you'd need to do what @sterile raft is doing and you can't do that with HAOS. You'd need to install Container and a debian-based OS on the rPi.
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?
Is there a video I can follow for this?
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).
well, i dont have a spare android or ios device, but a raspberry case with a screen
I get that, but again, that's not how HA is designed. If you run Container, you could install the raspian OS (with desktop) and use the built-in browser for that.
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
@sterile raft how far have you gotten?
@lofty crescent not sure if we talk about exactly the same situation. are you using the pi with a directly attached screen?
Yes are you?
I want to use my raspberry pi as a screen to mount on the wall for HA
kinda the same here, i guess
so i have x11 installed, but didnt want the full bloated OS interface to load
Is there a tutorial you are following ?
there was one which was... meh as it had errors.. lemme create a thread here
Alright
[prepare a kiosk for raspberry pi with screen]
@sterile raft @lofty crescent Thanks for helping each other out... Very much appreciated.
Are you using the same PI for the server and the display?
What version of PI OS are you using?
6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22)
What area is this in? Other general-purpose OS, Media player OS, ect, ect on the raspberry pi imager
Wdym me needs, I’m very new to all this
me too 😄
so, i did download the image here: https://www.raspberrypi.com/software/operating-systems/ (Raspberry Pi OS with desktop
)
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
I want to use it to host and display HA but that’s it
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?
@lofty crescent doing what code said above (aside from using docker) will probably make your life easier. Leave the device near your router and connect it via ethernet, then use a tablet to access the web interface
Are folks recommending docker/docker-compose because HA isn't easy to install directly on Raspian or something?
guess that depends on the use case of the raspberry overall - thats why i said, docker might not be the best option for archie
Would anyone be able to hop on a call so we can get this sorted because I am completely blown out the water lol
guess this is more text based here. maybe define your use case? 😉
https://www.youtube.com/watch?v=xSqopd0eARI
https://www.youtube.com/watch?v=OurlX5w7W8c
^ if you're more of an A/V learner
I'm also assuming you already read through this: https://www.home-assistant.io/installation/raspberrypi
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.
Oh, right, you already have it installed
Did you try the stuff I mentioned here?
and where are you stuck, archie?
a) which HA variant did you install and b) are you sure its running?
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
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?
It says it can’t connect to HA yes
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?
According to the HA docs, RPi's imaging tool includes images that have HA built-in
yea, but only if you select them
I have rewiped the PI to start from the beginning
@lofty crescent did you install an RPi image that included HA?
The Core installation method (bare metal install) is advanced and prone to issues (os dependancies and such). Docker/Docker compose solves those while also leaving the OS open for other uses.
No, I can tho, i did not see an option to put it on the screen when i did install this version
i had to learn that the hard way haha 😄 thats when i switched to docker
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.
@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
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
By "PI dashboard" do you mean you can see HA from a web browser you're running directly on the Pi?
Go with Docker @lofty crescent. I mean, it doesn't get much simpler than that.
Could you share some photos or screenshots or something? That might help
Uh, why?
It won’t let me take photos on the discord and share them
use imgur or such
@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.
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
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.
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
Dude... that's WAY over-complicated for a single container install.
@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
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.
Tell that to that linkedin employee... 😅
Huh... sounds like volume corruption to me. I've seen that on a couple of my containers where I used volumes from a NFS mount.
No network mounts, but yeah maybe the DB got corrupted when I was restarting containers while tweaking my compose setup
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.
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?
I ditched all my crons for backups and just use crashplan. $8/month, but unlimited storage and super easy to restore from.
would running a browser window work with preinstalled HA?
@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
Because that's not officially supported. Those pre-built images can be built by anyone and anything can be injected into it.
You mean HAOS?
yea
Yeah, that's HAOS and does not support what @lofty crescent and @sterile raft want.
It can not be reached
exactly, thats why i went for docker
@lofty crescent and you're sure you flashed the RPi image that included HA?
No let me flash that one, is this the one without the PI UI or the one without the PI UI
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?
There is no "official" image with Raspian and HA together. Again, the EASIEST solution is to throw the latest version of raspian on the pi, install docker (using the official docs) and compose and then using the compose file from here: https://www.home-assistant.io/installation/linux#install-home-assistant-container
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.
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
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.
tbh i love the easier updates and maintainability via a composer file in docker
You're right... allow me to rephrase... the easiest way to get what they want. There are other, harder ways, but most of us won't support those methods.
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.
to sum up: archie, consider installing docker and pull the HA image
Can you please explain to me what I need to do so I can create a server for HA and run the dashboard on the same PI so I can use it as a screen on the wall
disable the overkill of startx
then use my approach
(if you like)
or run startx and then open chromium there 🤷♂️
I’m just confused tbh
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
- Use the raspberry imager and install the desktop OS
- Install docker using the official docker docs: https://docs.docker.com/engine/install/debian/
- Install docker compose as well (again using the official docs)
- 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
- 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 - Complete the onboarding.
@proven grove so... what happens when he wants to install an add-on?
Supervised is the most hated of the installation methods. Again, prone to errors and difficult to maintain. It's better-ish than Core, but still a very advanced installation method.
yep, would do it that way too - thats how i did and in the end what enables me using the screen
Addons are basically just docker containers with some added "features" to integrate with HA. Most, if not all addons, can be found in a docker container format and are usually just simply adding to your compose file and pulling the image.
i agree, unless you have very special use cases you dont need addons tbh
Which RPI OS should I install off the imager menu
archie, didnt you just flash the 64bit?
it has desktop, right?
then continue with step 2
First one. Raspberry PI OS (64 BIT)
Yeah unless you want no UI, the image you already have on there is fine
What do you mean by no UI?
I'm assuming HAOS has no GUI? Otherwise I'm not seeing the downside in this case
I am reflashing it now
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.
GUI as in web frontend or OS UI?
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?
Because it won't. HAOS is an entire OS with no GUI option.
exactly, there isnt x11 or other, and it even fails installing it
That's was my understanding from before...
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.
Okay, @lofty crescent , so your choices are:
- 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
I want to be able to use home assistant for Lightwave, ring, google nest to be able to click the buttons and change them
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
Those are all integrations. You'll be fine with a Container install.
Fair enough
btw, thats my device: https://imgur.com/9GsFI9L
do you want something like that, archie?
i just wonder how i now get matchbox-keyboard to be nicer
Ah, so it is... Sonoff Dongle.
You should 🙂
@sterile raft I assume that thing has a bluetooth radio. Get a wireless keyboard?
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?
IIRC, there's a "Remember me" checkbox.
there is as on the screenshot, just wondering if it persists
@sterile raft what is that device, by the way?
rpi 4 8gb with the official case
Yeah, there's a `Keep me logged in" checkbox.
Neat
I should do something like that instead of a tablet for the intercom for the doorbell. Thanks for sharing
just remember it needs an UI 😛
This is why I am not a mod lmao 😉
lol I'm fine installing docker on my devices, but I appreciate the concern 😆
While we're talking about containers, anybody tried podman before?
what is it?