#installation-archived

1 messages · Page 15 of 1

golden walrus
#

2023-01-05 14:57:08.195 ERROR (MainThread) [homeassistant.components.hassio] Missing SUPERVISOR environment variable
2023-01-05 14:57:08.249 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Integration failed to initialize.
2023-01-05 14:57:14.515 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of raspberry_pi. Setup failed for dependencies: hassio
2023-01-05 14:57:14.516 ERROR (MainThread) [homeassistant.setup] Setup failed for raspberry_pi: (DependencyError(...), 'Could not setup dependencies: hassio')
2023-01-05 15:09:24.552 ERROR (MainThread) [frontend.js.latest.202212131] :0:0 Script error.

brazen herald
#

Please use code sharing sites to share YAML and errors.

golden walrus
#

ah i was wondering how you all did that. what site do you recommend?

brazen herald
#

You've got some kind of integration that's looking for the supervisor or similar. Sounds like a HACS one probably.

golden walrus
#

i do have HACS installed

brazen herald
golden walrus
#

oh haha i just ignored that

brazen herald
#

Don't.

#

The bot messages are triggered by humans trying to help you.

crude inlet
#

some of them are humans

golden walrus
#

it was subconsious. do i then make a pic and put it on imgur and then put here?

grand pivot
crude inlet
#

for images yes, for large logs or code, the sites mentioned

golden walrus
#

oh i see jsut link to the text like i did?

crude inlet
#

yeah

golden walrus
#

i thought i saw people insert lines of code like code tags on ehre

crude inlet
#

if it is under 15 lines it can be shared here with formatting

golden walrus
#

i see

#

if i go to HACS, id ont see anything ive installed.. i had stuff like terminal at least. maybe the raspberry pi thing was there too

#

maybe i just uninstall hacs

brazen herald
#

HACS only does integrations 😉

golden walrus
#

ohh

#

if i open HACS would it be clear if i had anythign installed? I dont see anything. jsut a list of repos

#

oh wait HACS i think is how i got Adaptive Lighting. so thats why i have it

#

so the integratoins indeed just show up in integrations

golden walrus
#

that fixed it

#

welp, this migration has been a success. what a day.

#

thanks for all the help

viscid grail
#

hello, does any1 have a working installation tut for 32bit intel processors?

brazen herald
#

The documentation does 🙂

maiden mesa
#

topic, top of your screen

brazen herald
viscid grail
#

Thank you 🙏🏻

humble mirage
#

I'm pretty sure there's no HAOS support for 32 bit Intel any more

#

I'm not sure there's even Docker support

#

Oh, no, there is

#

Of course, there needs to be Docker support for i386... and that died ages ago

viscid grail
#

yeah, found that Docker stopped supporting i386, kinda dead end from there

humble mirage
#

You can pip install (aka Core) on 32 bit

odd marlin
#

If it's an Intel 32 bit processor, it must be ancient

brazen herald
#

This is not a search engine, if you have a question you might want to ask it 😉

dense herald
#

@odd marlin testdisk is able to find hassos-overlay and hassos-data, and I can even browse through the directories. I have no idea what to do now, though.
Oh, and it also found three partitions all called rootfs, but it said they can't be recovered. Idk if that's important or not.

odd marlin
#

Those partitions are probably false positives since the data disk tool just creates a single partition. Try doing a find /path/to/mountpoint -iname "[a-f0-9]*.tar" and see if you find any backups

dense herald
#

What I meant is, inside testdisk I can select the partition and browse files that way. I still can't actually mount it regularly

odd marlin
#

oh I see. Is there a folder called supervisor?

dense herald
#

Oh wait, I just realized I can copy

#

Yeah, and docker

odd marlin
#

supervisor/backup

dense herald
#

Nope

#

apparmor

#

apparmor, manifest.json, repositories, and a whole bunch of folders with random hex strings

odd marlin
#

The hex strings may be folders it couldn't recover the name for

#

Can you copy all the data out of testdisk so you can search through it with find or similar?

dense herald
#

I'll try

odd marlin
#

or I guess just look inside each folder

#

You'd be looking for files like b83c3a5f.tar

dense herald
#

There's 2 tar files in /supervisor which seem to be corrupt

#

But the random folders are all empty

#

They're both too small to be backups anyway (<2kb)

odd marlin
#

😦 Kinda running out of other options if all those recovery programs weren't able to find real backup files. It might be time to go with fresh install, as painful as that might be

dense herald
#

🧌

brazen herald
#

Step 1 after install: Set up a backup system that offloads the backups elsewhere

#

You definitely didn't have it uploading backups to say Dropbox, google drive, an SMB share or something?

dense herald
#

I was planning on setting it up with smb, but then I got frustrated with user permissions and stuff and then never thought of it again 😭

#

The last manual backup I have is of March last year, but I've changed quite a bit since then

#

Oh well...

odd marlin
#

March of last year is better than starting from square one at least

dense herald
#

True

brazen herald
#

At minimum you can use it as a reference for a starting point

odd marlin
#

In addition to enabling offsite backups, I'd recommend putting the Pi's data drive on an external SSD in the future rather than a USB flash drive

dense herald
#

Gonna by one asap

#

Thank you so so much for your generous help, though!

odd marlin
#

Glad to help. It's unfortunate that the drive managed to get that badly mangled 😦

fierce laurel
#

virtualbox -> debian linux -> haos_ova-9.4
I run it. sometimes i get "failed to create a file system, ext 4"
Most of the times i just get a black screen.

I have tested
increase videomomery
v-sync enabled/disabled.

Other things i can do?

dense herald
#

Debian > HAOS
How does that work 🤔 HAOS is it's own os

fierce laurel
#

debian when i choose iso

#

also tested linux 2.6 / and so on

dense herald
#

It has a ready to use vdi for VirtualBox

fierce laurel
#

yes

#

new error. i can choose from
Slot a ok=0 try=0
slot b ok=0 try=0
slot a rescue shell
slot b rescue shell

All shows

error: no such partition.
press any key to continue

odd marlin
#

Are you sure you enabled EFI?

fierce laurel
#

yes it is enabled

#

"enable secure boot" is not enabled

fierce laurel
#

i have spent another hour searching for a solution but i can't seem to find how to get a bootable partition. i can enter grub menu but that doesn't give me much (nothing)

Any tips on fixing error "error: no such partiotion" ???????

spark ether
#

Can anyone help me out with this: everything i try to enter it just says reload. My whole HA is broken after installing a backup. 502 Bad Gateway
nginx. How can i fix this?

tired vapor
#

hey Hachiko -- i had the same problem. Any restart from HA doesnt seem to work. If you unplug your power from your device and replug it in, basically power cycle it, it should work again just fine

spark ether
tired vapor
#

i've been googling/searching reddit/community for a few days but can't quite get the answer

i've got a

-RPI compute module 4
-180GB SSD card
-8 TB HDD

i've got Usb boot working great, and i've got HA OS on the SSD (and all of my add-ons, integrations, automations working great!)

But any time i plug in my HDD, nothing works. Seems like maybe the RPI is trying to boot from HDD? Is there a way to say

"Please boot from SSD, don't boot from HDD" ? If there is, i can't find a way. I'm 'simply' trying to use the RPI to run HA, and then have it also do Plex

brazen herald
#

First of all, what's your power supply like?

tired vapor
#

2 separate AC adapters

  1. HDD outputs 12v
brazen herald
#

Because if you have too many things plugged in that draw power, your Pi is going to be cranky

tired vapor
#
  1. RPI outputs 12v
brazen herald
#

Powered HDD is good!

#

Alright, so you need to set the boot order for devices in the case of multiple USB drives, I seem to remember that involves using an install of Raspbian on a microSD card, and rpi-eeprom-config, but I don't remember more I'm afraid

tired vapor
#

okay! i can chase that down! thanks for the suggestion

brazen herald
#

Looks like that's the official docs, good luck!

manic bane
placid sage
#

i found in my log this msg, how can i fix it: ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration apple_tv: /home/thoht/.homeassistant/venv_3.9.2/lib/python3.9/site-packages/_miniaudio.abi3.so: undefined symbol: _atomic_load

#

curiously i don't have any apple tv

elfin crown
#

Hello. I fail to restore a backup for the purpose of migrating from VM to physical RaspberryPI. The full backup is of size 40MB, it states that 3-4 folders and 2-3 addons are included - however - after restoring the backup the brand new install just keeps looking like a brand new install and nothing of what is showing on the original VM install shows on the Raspberry install. I've googled a lot and have found others with the same problem just no solution. How should I move forward, what can I do to make it work or isolate the issue so that a fix can be filed. Thank you.

low notch
low notch
elfin crown
low notch
#

hm, that should be pretty straightforward then

meager parcel
spark ether
manic bane
spark ether
manic bane
spark ether
#

Yes.

manic bane
#

What install method do you use?

spark ether
#

VM - proxmox.

manic bane
#

So HAOS

#

Does 'ha network info' show you the right IP in proxmox on the console

spark ether
#

depends on what you mean by "right".
ipv4 is right.

manic bane
#

Right as in the IP that should be set static DHCP in the router & what you expect

spark ether
#

then it comes up docker ip adress, dns and gateway. That is not the same as in router, but the ipv4 is the same as in the router..

manic bane
#

Yeah ipv4 is what you're wanting
You might need to check the logs on the host itself

spark ether
#

Thank you for the advice, but how do i do that ?

woven turtle
#

hi I'm trying to install UniFi in my Ubuntu VM, I finished everything but it says 'Authentication is required to restart 'unifi.service'
how do I give this service authentication? thanks!

woven turtle
manic bane
woven turtle
#

Okay, thanks

manic temple
#

Hi, I live in multi story home, and I have one BTHome sensor, and I get multiple times a day that new sensor has been detected and they are just random MAC adreses
Is the a option to tur off auto discovery for this one integration ?

small compass
#

on my BT sensor I have the System Options for bluetooth (under the three dots of the general BT integration)

#

there I can enable / disable automaticallyo adding new entities

#

not sure if this is the same bt integration as you are using though

#

but turning it off might be a good idea, since I now have the BT toothbrush of the neighbours on my system apperently

manic temple
#

Thank you, will try to do this, for now i tried to disable this same setting on BTHome integration, but that didn't help

sharp cipher
#

Updated python 3.9 to python 10.0, set pip, pip3 python and python3 commands to use python 3.10 instead of python 3.9, updated home assistant and i get these errors:

Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.208 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: No module named '_sqlite3'
Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.220 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.221 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.223 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.224 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')
Jan 06 12:55:29 rpi4-20210823 hass[529365]: 2023-01-06 12:55:29.231 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Unable to import component: No module named '_sqlite3'
#

sqlite3 is installed, but the python module seems to be missing

#

and i bet after I fix the sqlite3 module, more modules will be missing. so, my question is, which step of the python upgrade did i miss?

humble mirage
#

The part where you have to create a whole new venv?

sharp cipher
#

i did

humble mirage
#

You deleted the old one and created a new one?

sharp cipher
#

i deleted the whole folder of venv

#

yes

#

i basically did a brand new HA install

#

of the venv

humble mirage
#

I wonder if your Python wasn't built properly then

#

Did you build Python from source yourself?

sharp cipher
#

ok i did this and now i get 404 sudo apt-get install libsqlite3-dev

humble mirage
#

What OS?

sharp cipher
#

i used this guide. and then i used the alternative installations command to change my python commands to use python 3.10. pip, pip3 also use python3.10

humble mirage
#

That isn't necessarily going to give you all the required packages for HA

#

WHAT OS?

sharp cipher
#

debian

humble mirage
#

Debian WHAT?

sharp cipher
#

bullseye

humble mirage
#

Finally

#

apt update and then try again

sharp cipher
#

i did that before i updated ha but let me try again then

humble mirage
#
$ apt search libsqlite3-dev
Sorting... Done
Full Text Search... Done
libsqlite3-dev/stable 3.34.1-3 amd64
  SQLite 3 development files
sharp cipher
#

no new updates

#

libsqlite3-dev/stable,now 3.34.1-3 arm64 [installed]
SQLite 3 development files

humble mirage
#

Right ... well... it's installed

#

Maybe this is a sign that you should use Docker

#

And by maybe I mean it is

sharp cipher
#

how hard is it to move to docker?

#

so that i keep all my history etc

humble mirage
#

Trivial

sharp cipher
#

ok so now instead of the HA port being dead, it shows 404. so something has changed

#

let me check systemctl

humble mirage
sharp cipher
#

ALright, let me try that

#

installing docker

#

do i create the /docker in the root of the file system or in the .homeassistant folder?

humble mirage
#

/docker is explicitly in the root, hence the starting /

sharp cipher
#

ok thx. just asking to be sure

humble mirage
#

Creating it in .homeassistant/ would be ... unwise

#

Also, do remember to add /docker to your backups

#

Or set up backups

#

Then test them 😉

woven turtle
sharp cipher
#

I get connection refused error when doing docker compose. wth

humble scaffoldBOT
#

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

sharp cipher
#

restarted docker service. lets see

#

used docker compose up from the manual. hopefully its not something completely different

#

seems like up pulls the containers and then starts them

#

i did sudo su homeassistant so only step i missed was to stop the ha service. which i will do now

#

@humble miragechange the command
docker-compose logs --tail -100 -f homeassistant
to
docker-compose logs --tail 100 -f homeassistant

#

It successfully started! Thank you!!!!

#

will it start automatically on reboot?

humble mirage
#

Try it

sharp cipher
#

i saw one of your commands had -d flag. which is for daemon i suppose?

woven turtle
#

Tinkerer mind helping me with Glances? I can't get it working automatically after reboot VM

humble mirage
humble scaffoldBOT
#

@woven turtle Please do not cross post. Read the channel description, post it and wait for folks to respond. Crossposting wastes people's time as they're unaware of the help you're getting elsewhere.

If you don't get any responses after an hour or more, and your message is no longer on screen, it is fine to re-post or post a link to it.

sharp cipher
#

let me reboot then

humble mirage
woven turtle
#

Thanks!

sharp cipher
#

yep! it is working!

#

Thank you so much

#

seems like the HA boot is faster than before

sharp cipher
#

Now my ultimate question is. Is it possible to bind the update button in HA system menu to run a shell script that does docker compose command?

#

So that i can update HA from within the app and not having to ssh into the Linux machine

hollow obsidian
#

hi, in your opinion, is it better to include my garage and my house into the same HASS instance or create two HASS instances linked with remote assistance ? (I have 2 distinct power entrance, lots of devices in house and some in the garage)

manic bane
#

If it's the same property, then one instance tbh

fluid saffron
#

Hey there. I did a fresh install of HA on Debian 11. All went well. I am trying to configure static IP address on the server. I tried putting static IP in "/etc/network/interfaces", however this file appears to be ignored. Where do I setup my static IP address in Debian?

manic bane
#

You're better off just setting static on the DHCP server

dreamy spindle
#

So there is no way to install home assistant directly on macOS anymore?

fluid saffron
#

@manic bane That complicated huh?

manic bane
fluid saffron
#

I see. Well, is /etc/network/interfaces not where I would set it up if I wasn't going the DHCP route?

low notch
hollow obsidian
humble mirage
#

So there is no way to install home

sharp cipher
#

Surely the update button calls a service which only exists in HAOS or supervised installations, right? So perhaps by creating that service in a config and making it execute those commands in a shell would yield the same results?

#

Idk if it's possible to view if clicking a button in HA calls a service or not

shell wasp
#

I have home assistant on proxmox and proxmox says its using 6gb ram while home assistant says it uses 6% of the 8gb ram, how can i fix this?

sharp cipher
#

You can't

#

It's Linux using cache/buffer

#

The OS frees the cache/buffer when programs need it

shell wasp
#

but is 6gb ram not to high

sharp cipher
#

So technically the ram isn't reserved. It's just used to make it more efficient

shell wasp
#

But it says memory usage

#

is it not swap?

sharp cipher
#

No

shell wasp
#

Then what is it that makes the diffrence so big between the home assistant dashboard and proxmox

#

proxmox 42%, ha 19%

sharp cipher
#

HA shows the ram used by programs etc. Promox shows ram usage including cache and buffers of the OS

shell wasp
#

Ah

#

That explains it, ty

sharp cipher
#

It's really not an issue

#

If a certain program needs free ram, the OS takes care of it and will flush something from the cache to make space

#

It's to make the system run smoother

shell wasp
#

oki, Thank you so mutch!

sharp cipher
#

By caching frequently accessed files, IO etc

shell wasp
#

Also, are 2 cores enough to make home assistant run. Im running on my nuc also freenas, or should i both max then at 4 cores. since ha not always using much cpu

fallen lichen
#

2 cores are fine. That's all I've got allocated to mine as well.

low notch
spiral spire
#

Hi!! I'm new in this chat and new with home assistant and pleaseee I need some help to install it and a lot of patience because my knowledge is limited 😅 I have created a virtual machine on my Synology NAS and installed Home Assistant. So far so good. But I can't access the dashboard http://homeassistant:8123/

#

any idea??

humble mirage
#

Try the IP instead

#

homeassistant - or more correctly homeassistant.local - requires mDNS working

spiral spire
#

It does not work either

humble mirage
#

What happens?

#

What if you try port 4357 instead?

spiral spire
humble mirage
#

No, the IP and that port

spiral spire
#

I'm going to try

humble mirage
#

The IP of the VM

spiral spire
#

fail

#

😦

shell wasp
spiral spire
shell wasp
#

what browser u uisng

spiral spire
#

I don't know if its a problem with my router. Maybe??

humble mirage
#

homeassistant.local requires fully working mDNS

#

Your VM is using bridged networking?

spiral spire
#

mmm... I dont know what is a bridged newworking 😅 @humble mirage

#

it's a VM created in a Synology NAS

humble mirage
#

Well... I know nothing about Synology...

#

The good news is that you can connect to the console of the VM and see what's happening

spiral spire
#

I'm trying to do it. It says "booting from had disk..."

humble mirage
#

It should say more than that

spiral spire
#

nothing

#

Im sorry. I feel a little ignorant

humble mirage
#

Then it's not even booting, which would be the problem

#

Make sure that the VM is configured with UEFI support

spiral spire
#

I'm going to check it

#

Legacy BIOS

#

i need to change it, right?

#

great, thanks, Im going to do it

#

@humble mirage Now it works!!!!! Thanks so much. Maybe it's silly for you, but it has been a great help. Thanks so much ❤️

humble mirage
#

To be fair, the alternative install docs aren't that clear on the need for UEFI - it's there, but it's far from obvious

spiral spire
#

I followed the documentation, I don't know if it was clear or not; maybe I was wrong. In any case, it has been easy. Millions of thanks

sharp cipher
humble mirage
#

If you want that, use HAOS

#

Then you too can mash the upgrade button without reading the release notes, and then wonder why HA is broken

sharp cipher
#

Do you actually get list of updates in the settings when using docker? I didn't get that with core

#

@low notch what's the code for docker update available binary sensor?

#

Just using rest with some docker repo to check for latest ha release?

#

No need to view your configuration. Plain words is enough of an explanation

low notch
#

Version integration

#

There is no way for a implementation for every situation the containered process runs in

sharp cipher
#

There's just 4. 2 of which do get automatic updates.

#

Leaving you with docker or venv

#

But then there's the issue that HA can't update stuff like python for you and recreate venv

#

Though docker does that right?

#

Or is there any other reason why it's a bad idea to allow automatic updates for docker install method?

sharp cipher
# low notch Version integration

Thank you. Didn't know that was a thing. Though i did have a preinstalled card like a year ago that showed whether or not an update is available

humble mirage
#

Automatic updates means that at some point you'll wake up to a dead/broken HA

sharp cipher
#

I meant semi automatic. Like being able to risk it and do it through the UI. I had 0 issues updating for the whole of 2022. Only issue was with 2023 due to new python version

#

Though what can break with docker? Since the pulled image sets everything up automatically?

humble mirage
#

Have you ever read the release notes?

#

All those Breaking changes?

sharp cipher
#

Yes

#

But those breaking changes apply to HAOS and supervised too, don't they?

humble mirage
#

Yes

#

Blindly updating any install runs the risk of things not working

#

HAOS (and Supervised) are the only ones with a built in UI to update with

sharp cipher
#

Well, i won't be blindly updating. DW.

grand pivot
#

The release notes are (mostly) for core, which is common

humble mirage
#

Which is not be be confused with Core

sharp cipher
#

So the only thing that can go wrong is breaking changes with integrations. Which also affects HAOS and supervised

humble mirage
#

The Docker image doesn't do basically everything for you

sharp cipher
#

@low notch I've got a question... You clicking the button, which calls the service to turn on the switch... Wouldn't that switch stay on even after reboot? Essentially making an infinite loop? Or does that not fire on initialization and reboot isn't counted as state change?

#

Perhaps you turn the switch immediately off using an automation?

glad bay
#

I can't access my homeassistant anymore. It's been a while the rpi has been unplugged so Im considering reinstalling the firmwarew. So I have two questions: Do you know if there's an easy fix for this? If not, what file should I keep for the reinstall ?

sharp cipher
#

Backup the .homeassistant folder

glad bay
#

Hmm I guess I need linux to access it right?

#

Because I don't see it in my usb drive on windows

sharp cipher
#

It's on the same drive as your Linux OS

#

You were booting your RPI from a USB drive?

#

Anyways no. If you have w11, you can use use wsl to mount ext3/etx4 drives

glad bay
#

Nono, I removed the SD card and plugged it into my pc. I couldn't even connect via ssh to my home assistant

low notch
sharp cipher
#

Ok good

glad bay
sharp cipher
#

cd /home/homeassistant/.homeassistant

#

Does it exist?

#

If so, then do cp /home/homeassistant/.homeassistant /whateverpath -rf

glad bay
#

Im kind of worried rn haha
I have 4 drive : 25MB Volume
268MB Volume
Hassos-data
Hassos-overlay

#

None have a folder home with something in it

#

Im not on the rpi itself, im on archlinux of my computer

#

With the sd card plugged in

storm sluice
#

look in the hassos-data volume

#

it should have a supervisor/homeassistant directory

glad bay
#

Yes it does !

#

What should I back up in there ?

#

Or fix if we can

storm sluice
#

not sure, what happens if it boots?

#

did you connect a display and see what it displays?

glad bay
#

But I'd rather just reinstall hassos

storm sluice
#

did you make any backups?

#

you can look in supervisor/backups

glad bay
#

Hmmm no I didn't. My computer is upstairs, my ethernet cable are downstairs

storm sluice
#

those would contain everything including the addons

glad bay
#

Hmm I don't have anything... I was trying to set some things up with hassos, and then gave up. I wanted to pick it up today, but the rpi just won't connect anymore

#

I had set it up for wireless connection tho. Maybe something went wrong with that ?

storm sluice
#

most likely its super unreliable

glad bay
#

Do you know how I could remote the setup and make it work with ethernet?
I thought simple plugging the ethernet cable would be it but it didn't.

#

Otherwise, I'll just start fresh.
I didn't have much in the first place

storm sluice
#

you can grab the stuff from the supervisor/homeassistant directory, thats the homeassistant config directory

#

it contains a bunch of hidden folders and files though, so make sure to copy those too if you want to put that stuff back

glad bay
#

Thanks, I'll try to do this

#

Yikes I can't move them

#

Nor copy. It says I do not have the permissions for it

#

I'll just fresh reinstall it. It will be easier

river niche
#

Im trying to upgrade core and it not going well

odd marlin
#

What's the reason that you're running core?

daring lance
#

I ran this command to image the SD card. Put it in and booted it up. I don't see anything popping up on the network. sudo dd bs=4M if=haos_rpi4-64-9.4.img.xz of=/dev/mmcblk0

odd marlin
#

You didn't uncompress it first

#

unxz haos_rpi4-64-9.4.img.xz

queen bronze
#

So I don't really want to meddle around with this because I'm sure the maintainers of HAOS know what they're doing, but would you advise against turning off swap?

#

I believe my entire host just locked up because I ran out of swap

#

This is actually a common problem I run into on Linux and I think I've had success in the past just disabling in

#

This is my free -h output from a ssh onto the host (not ssh addon):

               total        used        free      shared  buff/cache   available
Mem:           3.8Gi       3.7Gi        34Mi       3.0Mi        85Mi        68Mi
Swap:          978Mi       978Mi          0B
fallen lichen
#

I'd advise allocating more RAM or figuring out why you're using so much if you're not expecting it

brisk willow
#

Disabling swap wouldn't help with what you described. That's not a healthy memory usage situation

queen bronze
#

Can't allocate more ram, and yes I would like to find the root cause. I wasn't able to run the profiler though since the machine was at 180+ load avg

queen bronze
brisk willow
#

No

#

You need to find out why your available memory is incredibly low

queen bronze
#

My CPU usage was pretty low. I'm pretty certain it was locked up due to disk usage. No disk usage if it isn't swapping from swap

#

Yes I agree, but I'm also not understanding why you think my computer would still lock up with swap turned off?

brisk willow
#

Why do you think it wouldn't?

#

Swap full doesn't mean insta-crash

queen bronze
#

Because I believe the lock up was due to swap being hit constantly

brisk willow
#

Your system likely used swap because it was running out of memory

queen bronze
#

It didn't crash, it was just extremely slow

#

Like I said 180+ avg load

brisk willow
#

You're focusing on the wrong thing. Figure out why you're seemingly short on RAM first

queen bronze
odd marlin
#

If you're swapping, you don't have enough RAM. The fix is to add RAM

queen bronze
#

Uh I mean for all I know it would have kept using up twice the ram if I could double it

#

The fix is to find out what ran away with all the ram like @brisk willow mentioned. But I'm not seeing justification for leaving swap on

#

What do I get from swap? Another gig of RAM. So how about I add another gig of ram and turn it off?

brisk willow
queen bronze
#

But I'm pretty sure 4 gigs is enough

brisk willow
#

It's clearly not unless something is acting up

#

Have you made any changes to your system lately?

queen bronze
#

Nothing I can think of

#

I'm going to add more visible metrics for my memory usage though

#

Though I restarted somewhat recently so I don't think it was something that happened gradually

#

Actually my system is back up. Let me take a look

#

Does anyone know if the memory_use_percent sensor from systemmonitor includes buffer/cache?

#

Actually it does look like it was growing slowly

#

I restarted HA multiple times so I'm thinking it's an addon then

brisk willow
queen bronze
#

Yeah ok. Just making sure

#

But still going back to the swap discussion, I'm not understanding why I would want to leave it on?

#

I'm gonna add that sensor now actually, there's a swap one

brisk willow
#

because if you have insufficient RAM, it could just lead to more processes killed because of running out of RAM

#

it really just leads back to figuring out what's using RAM inappropriately

queen bronze
#

Yeah but if my system locks up I have to kill every process when it reboots. I'd rather have processes killed with my system still up

brisk willow
#

i have swap disabled on my server, but also because i have 24 GB of RAM and only 4 GB are actually used; the rest is cache

queen bronze
#

Either way I'm going to have issues, but one results in a still usable system

#

And I have more than enough memory than I need

odd marlin
#

You clearly don't if you're swapping though

brisk willow
#

okay, go ahead then

queen bronze
odd marlin
#

If you know you will never run out of memory, then it's fine to not have a swap file/partition. If you turn off swap and end up running out of memory, instead of getting slow you'll just have things start crashing

brisk willow
queen bronze
#

I dunno, I've never been on a system where it was more of a problem that procs were dying cuz I was low on ram vs all the times my whole system locked up cuz of swap and I had to restart

grand pivot
#

'Locked up cuz of swap'??

queen bronze
#

Looking at my usage the baseline is about 50%. So yeah I do have more than enough RAM. If you're saying it's because of this issue, more ram is only delaying me finding out I have a memory leak

queen bronze
odd marlin
#

If for some reason my only two choices were my system becoming incredibly slow and nearly unresponsive, or having important processes killed by oomkiller, I'd pick the former

queen bronze
#

But in both situations the processes are being killed because in the former case you need to restart

#

And if you're worried about me running out of memory, what would you say to me adding another GB of ram and remove my 1GB of swap?

#

That would fulfill your reasoning right? Yet that doesn't seem right to me

brisk willow
#

this really all just goes back to figuring out why you're running out of RAM

queen bronze
#

It does, but I don't like my system locking up like this where I can't troubleshoot and need to restart

manic bane
queen bronze
#

Looks like supervisor supports tracking addon cpu/mem usage but it's disabled by default

queen bronze
# manic bane Load average on the CPU?

I don't think it was the CPU since usage was low, my swap was maxed (main indicator) and there was a kernel thread which I think is related to disk activity had the high CPU usage (kblockd)

#

Is there a way to turn on all the addon usage sensors at once? Or have them enabled by default?

manic bane
#

What are the specs you're running HA on + what else are you running other than HA

queen bronze
#

I'm on a NUC running HAOS in a VM with 4GB RAM

manic bane
#

So you didn't give all what I asked for

#

What else is running

queen bronze
#

Nothing else

#

Unless you mean like addons? Not sure what you meant by HA. Like HAOS or core?

#

In any case, I don't think there's anything else to troubleshoot atm. I'm enabling addon resource usage sensors and I'm gonna watch mem usage

copper steppe
#

if you're running haos, look at output of "free" and "docker stats" in the cli

manic bane
#

Also running any other VMs?

queen bronze
#

Nope

manic bane
#

So no addons or any other VMs?

queen bronze
#

Sorry, yeah I do have addons

#

Quite a few. I was just enabling cpu and mem sensors on them and I added them all to a grafana dashboard

queen bronze
copper steppe
#

tldr. but why wouldn't docker stats work? are you using non-privileged ssh plugin?

#

I mean the actual console of haos

#

See what's leaking

queen bronze
#

took me a few mins to run free lol

copper steppe
#

sounds like something is fundamentally borked. Disable all your addons (especially hass ones) until you system returns to sanity.

manic bane
queen bronze
#

Just gonna monitor addon usage and I think that'll find me the culprit

#

Off to bed, thanks for help everyone

quasi light
#

Hi there. Since a number of releases of HAOS, the Login button does no longer react to the enter key. Was that removed intentionally?

low notch
#

Keyboard shortcuts are a mess, just try navigating with enter, tab and escape in modal dialogues. Hitting enter in a input just closes the modal while escape does nothing (most of the time, sometimes it does close them). So there are huge inconsistencies in this area

quasi light
sharp cipher
#

@low notchwhat have you done? made an sh script inside your /docker folder and run that sh script or running the docker-compose command directly from HA? as i get error code 127 (command not found)

cinder wing
#

my pi 4 wont show up after flashing it any fix ?

sharp cipher
#

also, dont sh scripts have like an execution time limit?

#

because my internet be slow 😄

woven turtle
#

any idea how to completely remove unifi from my VM (Proxmox)?

#

been trying

sudo dpkg -P unifi

but i still see some unifi files

cinder wing
manic bane
low notch
manic bane
woven turtle
woven turtle
woven turtle
manic bane
#

Then remove the files I guess

#

This isn't a unifi support discord. Youre better off asking in a more specialised area

woven turtle
#

by the way, do you recommend me to install all those services in a Docker instead straight to the VM?

manic bane
#

Since I am guessing this isn't an add on you're trying to remove

manic bane
wooden smelt
#

Or LXC

woven turtle
#

I might do that and just leave those files in the VM

#

What's LXC?

wooden smelt
#

You run Proxmox?

woven turtle
#

I do

woven turtle
sharp linden
fallen lichen
#

What issues are you encountering

sharp linden
#

i get to the end. fire up the VM and nothings on port 8123

fallen lichen
#

What does the VM console show

sharp linden
#

just shell

fallen lichen
#

What specifically, does it show the IP address ?

#

With an ha > prompt?

#

Also... we're on rev 9.4

sharp linden
#

ah i think i figured it

#

dd says no space left on device

#

how big is HAOS now? i allowed 50gb

fallen lichen
#

That's plenty

#

Do you actually have that much storage on the physical media

sharp linden
#

yeah well over that too

#

400gb free

fallen lichen
#

Is that possibly split up where it wouldn't be available

sharp linden
#

not at all haha nothings on it

#

its a 400gb ssd i just slapped in

#

would you mind if i DM and go over this in steps

fallen lichen
#

Feel free to continue in here, its what it's for 🙂

sharp linden
#

no problem just didnt wanna spam it up with screenshots and such haha

fallen lichen
#

You can't post images directly, just links

sharp linden
#

ok starting from scratch now new ZVOL

#

wget haos_ova-9.4.ova

#

done

#

so next i qemu-img convert it right

#

to hassos.img?

#

so id take home-assistant.vmdk and qemu-img convert -f vmdk -O raw

#

"root@stratum[/mnt/IOCAGE/HomeAssistant]# dd if=hassos.img of=/dev/IOCAGE/HAOS
dd: writing to '/dev/IOCAGE/HAOS': No space left on device
33+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.176787 s, 92.7 kB/s"

fallen lichen
#

Yeah... pretty clear that IOCAGE is full

#

I'd imagine df -h will confirm that

sharp linden
#

OH DAM

#

thats strange

#

16G

odd marlin
#

16 kilobytes

sharp linden
#

somethings wrong then because truenas says its empty

#

oh i see

#

size for this zbol is 16kb like jumbers says

#

so set force size 50gb?

#

50 GiB

#

yay its working now hahaha

#

noob mistakes

#

is this correct?

fallen lichen
#

looks reasonable

sharp linden
#

theres all the settings, i have got this correct right

#

only a 1mb video settings on the link

#

its booting i can see it in the display

#

works! thank u @fallen lichen

daring lance
humble mirage
#

You are trying to boot on a Pi4?

daring lance
#

Yes, pi 4 model b

humble mirage
#
if=haos_rpi4-64-9.4.img.xz
``` ![ablobthinking](https://cdn.discordapp.com/emojis/468995798512959508.webp?size=128 "ablobthinking")
#

Yeah... you flashed a compressed image

#

That's really not going to boot

daring lance
#

xarchive cannot uncompress it.

static jacinth
#

Hi. Hope someone can assist, I've been looking for help everywhere and can't seem to find anything on this... I've just installed HA in a linux VM; everything worked fine, no errors booting up the server. But it did not detect any of my smart home devices automatically, and adding devices manually does not work, either. It does not seem to be able to reach them. For instance, for Philips hue it says "Unable to discover Hue bridges". Any idea, please?

humble mirage
humble mirage
static jacinth
#

yes, bridged adapter, Promiscuous mode set to Allow All.

daring lance
static jacinth
#

@daring lance Sorry but I'm not sure I understand what I should do

daring lance
static jacinth
#

I'm running the VM on a mac wired to the router

daring lance
#

the virtual machine needs to be given access to the network with all your devices. Look at how to connect a virtual machine to the network. I assume that virtual machine has no internet connection at all.

static jacinth
#

I found the issue. I have 2 bridged routers, it will not work on both of them, just when wired to a certain one. Thanks for trying to help

grizzled compass
#

I'm running HAOS on HP t510. HomeAssistant logs (recorder) in a PostgreSQL database running on another system.
Yesterday there was a power failure and when the power was restored HA started, but the database server wasn't ready yet. So HA complained loudly.
My question: does HA recover recording gracefully when the database is reachable again?

placid sage
#

hey there,
I set up nginx to forward https request to http request in HA.
Normal reverse proxy config.
I am now able to access my HA instance from internet but after inserting credentials I fails in login

#

Message from log is "HTTP Integration is not set up for reverse proxy", where do I do this and how do I do it properly?

humble scaffoldBOT
humble mirage
#

☝️

grand pivot
#

In the docs for the http integration

placid sage
#

I thought so, but did not find the integration within HA Web UI

#

But I will study the docu now. Thanks

brisk willow
#

Not all integrations can be configured in the UI

placid sage
#

Yes, but I only knew from them which were displayed in UI. Did not know there are others which are not listed

humble mirage
#

The UI list does tell you that there's more ...

#

Oh, interesting... they removed that

#

That was ... short sighted

brisk willow
#

|| Are you surprised? ||

odd marlin
#

Some in the intergrations like like CalDAV tell you they can't be done from the UI, others like HTTP just aren't there

#

¯_(ツ)_/¯

grand pivot
#

They should all say that

#

With a link

odd marlin
#

Maybe because HTTP is considered a system configuration, rather than a true intergration? "Logger" also isn't there

placid sage
#

only the path to the ssl certificates is not recognized properly.

#

Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/etc/letsencrypt/live/my.dom.ain/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/etc/letsencrypt/live/my.dom.ain/privkey.pem'. (See /config/configuration.yaml, line 12).

humble mirage
#

Are you running a Core install?

#

Or are you running Container (Docker), HAOS, or even Supervised?

placid sage
#

SuperVised

humble mirage
placid sage
#

Installed directly on linux (arch)

humble mirage
#

Well, you'll not find the certificates in that location inside the container

#

Well, you win today's most broken Supervised install award

placid sage
humble mirage
#

No... you didn't, you had other options

placid sage
#

Well, what I found was, that I need supervised to install addons

humble mirage
#

HAOS has them

#

But you also ignored the requirements quite badly

placid sage
#

HAOS -> got no system for that am not willed to get another one

humble mirage
#

Copy the SSL certificates somewhere under the config folder and use that path

placid sage
#

is a symbolic link fine as well?

humble mirage
#

No

#

Because a link says the file is here and that location is outside the container

placid sage
#

aalright

odd marlin
#

You should just switch to a Container install before it all blows up

placid sage
#

I was never able to successfully create a virtual machine and get a guest running, under linux. That was why I decided against it.

odd marlin
#

Well, be prepared for HA to eventually just stop working

placid sage
#

would be not a problem right now. Even switching to a container would be possible (from what I did in HA till now). So I think I will give it a try then.

#

Do you recommend docker over VM?

odd marlin
#

No, both Container or HAOS in a VM are fine. Whatever you prefer

placid sage
#

had trouble with both of them. So it doesn't make a difference 😄

odd marlin
#

Switching from Supervised to HAOS takes probably < 30 minutes (as long as your Supervised install hasn't yet blown up)

placid sage
#

Yeah maybe. But installing docker and getting it running will be the troubling part (at least for me).
Porting to HAOS is not necessary. I can simply do everything from the beginning (I only installed Homematic so far, no dashboard configuration etc.)

placid sage
hushed fern
#

hi there. I've just installed the Watchman integration and it reports to me many missing entities in the file lovelace.lovelace_home which is stored in .storage. I'd like to know what this folder is and what it is used for ? I'm running HASS.io.

placid sage
#

I'm trying to install HA Container on Pop!_OS, but when booting it seems to be stuck on ```
INFO (MainThread) [homeassistant.core] Starting Home Assistant


My configuration is pretty straight-forward:

services:
homeassistant:
image: homeassistant/home-assistant:latest
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
environment:
TZ: Europe/Amsterdam
restart: unless-stopped
privileged: true
network_mode: host

rustic kestrel
#

Has anyone managed to get Home Assistant OS installed as a VM on the latest TrueNAS Scale?

acoustic thistle
#

How does one install esphome firmware? I have a 4-pack of Gosund WB4’s. I’m having a friend solder the serial wires and flash the firmware.

#

Wondering what program to use to flash?

rustic kestrel
rustic kestrel
#

im stuck at the boot screen

rough falcon
#

I have that with my debian VM.. on sec

rustic kestrel
#

my screen is blank when i try boot from file

rough falcon
#

to be clear, you mean when you click display from TrueNAS ui

rustic kestrel
#

yes when viewing from the webui using either VNC or Spice

#

gonna try something real quick

#

ok its working now. i did something stupid. kinda confused myself and copied the image wrong. was working off of a few different guides to get the usb working as well

#

thanks for the assist. made me reread everything

rough falcon
#

nice, glad its working now

rustic kestrel
#

trying to migrate away from using proxmox

#

shoulda just stuck with your walk through

rough falcon
#

Thanks, I try to keep up with things to make sure it works

rustic kestrel
#

well thanks to you I don't have a use for my proxmox setup anymore. so one less space heater running

haughty finch
#

#cameras-archived

Hello. I want to buy a nest 2nd gen wired camera. Have I understood correctly that this camera CAN stream via webrtc directly in HA but 1) i have no media source when it triggers an event (like no screenshot) and 2) i cannot record via HA locally if there is a trigger?

I am probably wrong...otherwise why to buy this camera?

brittle smelt
#

Reposting from general; suddenly lost access to my HA; I thought it was a cert issue but I put updated certs there and restarted and I still can't access HA. Any thoughts on how to troubleshoot? I can SSH in to it.

copper steppe
#

What kind of "can't access"? Can't open web page, can't login?

brittle smelt
#

can't open page at all

#

Unable to connect to Home Assistant. Retrying in ## seconds

manic bane
#

What about the console directly?

brittle smelt
#

I can SSH in.

#

core logs and supervisor logs show that it's doing its thing, is there any way to view access logs?

#

Got it, blew away the certs again and copied them over again and rebooted the machine.

#

It seems like HA is extremely serious about having valid certs, I can't even access it with a warning if something is wrong with SSL

copper steppe
#

SOmething is probably failing to load, which is breaking all the things.

brittle smelt
#

Wish I knew how to track it down. I can reproduce by just removing the certs from /ssl and then the whole thing just dies

#

Can't even access it locally

copper steppe
#

nothing in home-assistant.log?

turbid rampart
#

Hello all. I use HA docker (with docker compose) and would like to restart another docker in my automation. I have mounted docker.sock already but my issue is that my HA docker doesn’t have Docker installed (« unknown command docker »)
I’ve been googling a while and find no easy way to enable docker command in my HA docker. Any idea ?
All I found is pointing toward docker-in-docker (dind) but I’ve been unsucessful to add it to my HA’s docker compose so far

#

I’m guessing it’s a known topic for one of you with a simple solution

brisk willow
#

make a shell command that runs a command on the host via SSH

humble scaffoldBOT
turbid rampart
#

Ok i tried to use shell command from within the container 😭

#

I look at your link. As usual i spent 3hrs on google and when I give up you give me a 2 line solution

#

You are the best guys

humble mirage
#

(clearly, don't use that actual example command... even if you can reach my orbital mind control lasers, you don't want to restart HA that way)

turbid rampart
#

Lol thanks !

#

Actually its to restart an add-on (ran as external docker) which has a bug… so i need to restart it whenever HA is restarted. Until bug is fixed 🥶

humble mirage
#

Startup automation to restart HA the add-on, what could do wrong...

turbid rampart
#

It’s not really listed as an add-on because i have docker setup

#

So it’s just an external docker

humble mirage
#

Yeah, don't confuse those two things

#

At best you end up with invalid advice

brisk willow
turbid rampart
#

I think i have no other alternative

#

Its a standalone docker pushing data to an MQTT broker which is seen by HA as an integration

#

I try to learn the vocabulary at the same time …:)

#

Name is tydom2mqtt btw

humble mirage
#

An add-on is a very specific thing, "external docker" ... is not an add-on

turbid rampart
#

Well how do you call an add-on when you use HA docker

#

I mean when you « install » manually something that HAOS calls an add-on

humble mirage
#

That's just software you're running using Docker

#

You could call it a container, if that floats your boat

worldly iron
#

NGINX addon is used to be able to access the DuckDNS domain while ussing HTTPS, is that right? I cannot figure out why it's not working.

The certificates are created by DuckDNS addon and they are there. NGINX runs and log shows no errors. Not sure what I'm missing. I can access the domain but only http, https fails to connect. :S Any ideas?

Do I need to open any port on my router? NGINX doc do not say anything about it.

humble mirage
#

And yes, you need to forward a port to NGINX... they probably didn't cover that as it's considered obvious

worldly iron
#

oops, I thought I was in #add-ons-archived , my bad. Thanks, it wasn't obvious for me 😦

solar yarrow
#

Hello all! My ssl cert expired, can't access HA with duckdns. How can i connect to renew it?

odd marlin
#

Try the IP address. You may have to accept an invalid cert warning

cobalt pagoda
#

i need to buy Raspberry PI and i tried to install Home assistant in VM under Windows and working fine with me but i did not see the supervisor option i tried to install " Studio core server Addons , it showing now but Addons not there

latent bear
humble mirage
#

I'd bet they're following a 2+ year old YouTube "guide"

fleet spruce
#

hey all! I installed HA in docker on a pi. It seems HA doesn't come back up after a reboot sometimes... am I missing something?

#

There are times where it does come back up itself, but sometimes not.

humble mirage
#

Did you somehow manage to configure Docker not to start on boot?

fleet spruce
#

I don't believe so. I have two HA instances at two locations, both cloned fully from the same image, with minor changes to IP address and whatnot as needed.

After doing apt update/upgrade and a reboot, one of the pis came back by itself, the other I had to run docker run homeassistant.

humble mirage
#

Then you should switch to using compose files

solar yarrow
#

Ohh, it worked in incognito window... (Duckdns address and accepting invalid cert)

fleet spruce
#

Bizarre... I just tried rebooting again, and everything came back...

#

I guess I just gotta check after reboots to make sure it's back up and running.

humble mirage
#

If it doesn't check the logs to see why not, rather than simply restarting it

fleet spruce
#

It's not that it fails to start because of an issue, it just seems like it doesn't even try to start HA after a reboot sometimes.

humble mirage
#

I'd hope that information on that should be there somewhere...

fleet spruce
#

Well, I can't reproduce it right now, so I guess next time it happens, I'll try to dig in more.

solar yarrow
#

Last question (hope so) after ssl renewal, some time need to pass for everything to settle? (Log says valid till mar 9) but still doesn't work

sacred badge
#

hello, quick question. I'm running HA on docker on a synology NAS. I plan to move it to a Raspberry PI 3 using HA Operating System. Is there a way to use my docker backup on the HA OS ?

copper steppe
#

You don't need a docker backup. Use the HA backup (which is really just the ./config directory).

#

But other than that, it should work OK.

#

does your rpi have a ssd? If you're using the sd-card, you're asking for headaches. Plus it'll be slower than your nas.

humble mirage
steel hinge
#

Not sure if this is a strictly installation question, but it's about backup/restoring an existing HA instance. I need to do a complete OS rebuild of the NUC HA (supervisor docker) it is running on. I have backups of HA but not entirely sure what's the best way to backup/restore zigbee2mqtt and avoid having to repair all my zigbee devices. I'm using Sonoff zigbee 3 USB dongle. I've seen Lewis's video but that was a year ago so really wondering what's the latest and best way to do it now that we are in 2023 🙂

humble mirage
#

If you're using the Z2M add-on then the backup for Z2M is included in the full backup

#

All add-ons are

odd marlin
#

While you're rebuilding, use HAOS instead of Supervised

steel hinge
steel hinge
humble mirage
#

If it's small you can do it before onboarding, but just don't

copper steppe
#

during the initial provisioning, you can restore rather than create user

humble mirage
#

Set up HA and then use the Samba add-on to add the backup, and restore that way

humble mirage
#

Restoring as part of the onboarding only works for small backups, and it silently fails otherwise

copper steppe
#

IIRC the ui for the restore is a bit... vague. It works but it's not always obvious when it's done.

#

my restores must be "small"

steel hinge
#

I have 65 z2m devices, is that 'small'?

humble mirage
#

It's the size of the backup that matters

turbid rampart
#

Hey Tinkerer FYI I used your guide and managed to have my shell command working , thanks a lot :)

steel hinge
#

90KB

#

Zipped

odd marlin
#

What zip file are you referring to? The HA backup is a tar

grand pivot
steel hinge
#

I'm talking about the Z2M backup. I wasn't sure whether a full HA backup would also contain z2m network and device pairings

humble mirage
#

Yes, it does

#

The full HA backup includes all the add-ons

#

Otherwise it'd be pretty damn useless

odd marlin
#

No harm in having the z2m backup but you shouldn't need it

turbid rampart
#

Two obvious things missing from your guide:

  • the public key must be added to authorized_keys (you mention to add the private key)
  • the path /config/ssh doesn’t work for me. I have indeed a folder /config/ssh but I had to use the path ssh/ in my configuration.yaml otherwise key was not used
steel hinge
turbid rampart
#

Seems obvious but hey

humble mirage
#

Cheers

turbid pilot
#

From the integrations page if I click ... next to an integration and select disable debug logging, it just downloads a log file and then never turns off debugging for the integration. Does anyone here have any idea what could be wrong?

grand pivot
#

How did you enable debug logging?

turbid pilot
#

I don't specifically recall enabling it. I'm thinking it probably got enabled via default_config:

sacred badge
odd marlin
#

Your setup will eventually die without warning if you use an SD card when the SD card inevitably fails

humble mirage
#

You can extend that timeframe by using an endurance or industrial SD card

#

If you're going to use a Pi though, use an SSD (on a powered USB hub)

sacred badge
#

you mean external ssd with external power ?

odd marlin
#

Yes

sacred badge
#

i didn't know those sd card were not reliable 😦

odd marlin
#

It won't fix the rpi being slow, but it will be less likely to just die on you

humble mirage
#

SD cards not being reliable is pretty well known

turbid rampart
sacred badge
#

ok noted, thanks for the input

odd marlin
#

SSDs have controllers that manage the flash to do things like wear-leveling to extend their life. SD cards don't

sacred badge
#

and why an external powersource for the ssd ?

humble mirage
#

To avoid underpowering it and losing all your data 😉

sacred badge
#

okok

copper steppe
#

smh Sd cards don't stand up well to the write-heavy usage pattern of a database.

turbid rampart
#

You can use the hub to plug everything for your pi

#

Dongles, keyboard , etc

sacred badge
#

ok thank you all. so basically, if i copy my existing ./config directory onto HA OS, I should be fine.

turbid pilot
#

Should I configure debug logging outside of default_config: if i'd like to disable debug logging for integrations from the integration page? Selecting an integration and clicking ... disable debug logging does not seem to work.

grand pivot
#

no, but the fact that you seem to have debug logging enabled for that component without doing it (or knowing that you did it) says that it's enabled in some other way, such as through the logger: integration

turbid pilot
#

I specifically checked configuration.yaml and I have no entry for logger:
Also it's not just one integration that has the debugger enabled, it's all of them. Is there anywhere else I should check?

grand pivot
#

what exactly are you seeing that you want to stop?

turbid pilot
#

I'd like to stop getting warnings and errors from the ReoLink cameras I have. (Logs found under Settings > System> Logs)
I'd also really like to know why the integration page shows the debugging icon for each integration I have enabled.
Last but not least I'd really like to know why I keep getting a system log file that is 30GBs in size.
I know it's an option to enable the logger in yaml and I could kind of control this from there...

grand pivot
#

that's not debug logging, and you can limit the logging for any component via the logger integration

#

what you were controlling was to make things more verbose, not less

#

what version of HA are you running?

#

I'm gonna guess that it's old, and that you have logger: in your configuration.yaml

turbid pilot
#

Home Assistant 2023.1.1
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230104.0 - latest

grand pivot
#

then the only explanation for a giant log is that you have logger: in configuration.yaml with debug or something

#

but you can look at your logs and see...

glad bay
#

Hi ! so i just reinstalled home assistant yesterday. I checked that I could access the webpaage, I could, so I went to bed. Today, after coming back from work, I wanted to continue the configuration. But ican't access it anymore, and I'm accessing it vie homeassistant.local:8123. I didn't move the rpi, and I've tried rebooting it

#

Any clue what this could be ?

grand pivot
#

if it's just reolink, then you can change the log level yourself

odd marlin
manic bane
#

Mdns 🤮

glad bay
odd marlin
#

Try checking the console for errors

manic bane
#

Also, what install method did you use?

glad bay
glad bay
odd marlin
#

Plug in a keyboard and monitor

glad bay
#

will try

#

uhhhh my monitor doesn't want to show anything

odd marlin
#

That might be a bad sign

#

Is the Pi's LED on?

glad bay
#

in the front, where the sd card is, there's a red led

#

and the ethernet led is blinking

#

it's a pi 3 without fans. could it be overheating?

odd marlin
#

Probably not, unless you have it smothered or sitting on other hot electronics

#

You pressed a key on the keyboard to wake it up right?

glad bay
#

oh no

#

sorry i've never plugged a screen to a rpi

brazen herald
#

I think the monitor needs to be plugged into the Pi at boot to show anything

#

At least it does for me

glad bay
#

ill try this too then

#

okay it's booting now

#

well, i'm getting spammed with errors

odd marlin
#

Such as?

brazen herald
#

That's a good sign, you can troubleshoot errors 😂

glad bay
#

oh, i can't subimt errors

#

SQUASHFS error, unable to read metadata cache entry

brazen herald
#

You can share logs via a code sharing site

glad bay
#

unable to read directory block

#

and mmc0 card never left busy state

humble scaffoldBOT
#

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

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

glad bay
#

error -110 whilst initialising sd card

odd marlin
#

Sounds like a dying/dead SD card

glad bay
#

but it has never been used 😦

brazen herald
#

Did you said you'd moved to SSD? Or was that someone else 👀

glad bay
#

I never mentionned anything about it

brazen herald
#

Then I am confusing you with someone else, sorry!

glad bay
#

No problem ! But could this really be a dying sd card? My father bought this 64gb card maybe 6 month ago, and never used it because I immediately "stole" it for the rpi

brazen herald
#

If you've not used it before today, it would be worth flashing it again and starting over

glad bay
#

But that's what I did yesterday

#

I couldn't log to home assistant anymore, after letting the rpi unused for couple of weeks(and unplugged)

#

I took it back, couldn't connect, I reflashed, and I could connect, I went to bed, and now I can't connect anymore

odd marlin
#

So this already happened before where it just randomly stopped working?

glad bay
#

well, starting 2 days ago, when I picked the pi back up

#

but before that, it was working "fine"

odd marlin
#

I think you may have gotten a faulty SD card then. It's definitely not unheard of. It's also more likely the SD card being bad than the pi

glad bay
#

both have never been used before this

#

ill try getting another sd card then :/

#

16gb is enough right?

brazen herald
#

32GB is the minimum

odd marlin
#

If you plan to use an SD card as your main storage, you'll want a high endurance card

brazen herald
#

But if it's only 6 months old, contact the retailer to get it exchanged due to being faulty

glad bay
#

How can I prove it's faulty? Because I wouldn't want them to put it in a camera and take a picture and say "look, its fine"

glad bay
#

could it also be the sd card not being appropriate for this? I know, for instance, some sd card cannot be used with gopro

#

for whatever reasons

brazen herald
odd marlin
#

SanDisk or Samsung are both good brands, but there's other reputable brands also

glad bay
#

its a netac 64gb, micro xc

odd marlin
#

Never heard of netac

glad bay
#

me neither to be fair 😂 I wonder where he got these from

glad bay
odd marlin
#

Fell off the back of a truck?

#

You want high endurance, they'll say high endurance in the name or description

glad bay
#

true, I just found one with it in the name

#

and oh my, iots cheap. 12.- for 64gb

brazen herald
#

Well that would be the problem 😛

#

I think I have some Netac actually, I throw files on there for my 3D printer

glad bay
#

yes, and they often come with a 128mb sd card haha

odd marlin
#

Please just make sure you make scheduled backups and copy them somewhere else. Even a high endurance SD card will die eventually and you'll lose everything if you don't have backups

glad bay
#

thats honestly something I should do more often on my printers

#

I run both with klipper, so I have a lot to lose

odd marlin
#

There's add-ons to copy your backups to various places

manic bane
odd marlin
#

It definitely depends. I've had mixed results

#

Usually I can plug in a monitor no problem, but I've encountered it not showing anything on some machines

terse drum
#

Ok so I setup Let's Encrypt and got the cert but how do I configure the OVA to use that cert and port 443?

odd marlin
#

More info is needed. What install method did you use, how did you get the cert, what's in front of HA?

terse drum
#

I'll do cloudflared for external access later

humble scaffoldBOT
odd marlin
#

You can set the port to 443 and point it at the cert there. For the cert/key paths, use the paths that say "If using the Let's Encrypt add-on*

terse drum
#

Thanks!

odd marlin
#

You'll also want to get the certificate expiry integration and make an automation to renew the cert and restart HA

terse drum
#

Oh the Let's Encrypt add-on doesn't automatically check certbot every 30 days?

odd marlin
#

Nope, it never renews on its own

#

I just have an automation that tries to renew every day if it has < 30 days left

grand pivot
odd marlin
#

Yeah that's the one

#

There may be a blueprint somewhere to do the renewals

terse drum
grand pivot
#

I think it just checks the cert

odd marlin
#

It looks at the cert yeah. Mine is not publicly exposed

grand pivot
#

has nothing to do with how it got there or what to do with an expired cert

terse drum
#

It gave an error saying connection refused. Maybe since port 443 isn't open

terse drum
grand pivot
#

yeah, it looks like you give it a host and it grabs the cert from there, rather than pointing it to the files

manic bane
#

You can use a vast variety of options lol

terse drum
#

I'm just setting this up now and I was surprised that changing the port was not in the GUI

grand pivot
#

presumably you can access your host from home, so use that URL

manic bane
#

Including vscode add on, SMB, file editor, etc

terse drum
#

I can access the server but I don't see where in the UI to edit the raw config. I guess I can access the OVA directly but it gives me some stripped down terminal and not bash/zsh

odd marlin
#

You probably want the file editor add-on

#

Or vscode if you have enough resources

terse drum
grand pivot
#

everythign

#

it doesn't matter how you set up HA OS

manic bane
#

HAOS is the same once it's installed and running

terse drum
#

Thanks. Trying to get HTTP configured with the certs now. Then I'll figure out the automatic cert renewal

odd marlin
#

I can paste my automation for it in a little while

terse drum
#

Thanks

#

much appreciated

terse drum
#

Does it make sense to expose home assistant publicly for the app or use a VPN to connect home if you have one?

odd marlin
#

If you have a VPN and all of the people who use the mobile app also use that VPN, then I think it's best to just use the VPN

#

My home VPN is always connected on my phone

manic bane
#

I don't want to be limited to vpn only, so I use a reverse proxy

inland coyote
#

Hi, I've been trying (and struggling) to install home assistant core on a clean copy of rasp pi (3b), and when I get to the final step of "install homeassistant" running into an error building cryptography. I've gone through their recommended debug steps and pretty stuck here. Any chance someone has a minute to prevent me from bruising my head against the wall?

odd marlin
#

What's the reason you're trying to install core?

inland coyote
#

As opposed to OS?

odd marlin
#

HAOS or Container are the two recommended install methods

inland coyote
#

Well I understand it (and I'm pretty new to this space, so forgive me) installing via HAOS won't allow me to keep other processes I want to run executing/accessable

#

I already have a codebase (python) I'm hoping to interface with HA. Admittedly I haven't looked much into containeer

odd marlin
#

Okay, so if you're looking to run other stuff then Container is the best option. You basically create a Docker Compose file, run the command, and you're up and running (after the slow pi fetches the Docker images)

inland coyote
#

Okay, I'll give that a try then. Embarrasingly, despite me being a software dev I've never run docker, but it's about time for me to learn!

odd marlin
#

Your head will thank you

inland coyote
#

Thanks for the tip!

terse drum
terse drum
terse drum
odd marlin
#

Yes

inland coyote
#

@odd marlin I suppose I might as well ask before I progress too much further: It is possible to interface with a HA dashboard (that is, push/manage data) programattically, using some rest/json/etc. API, yeah? As it stands, I'm only looking to use it as a self-hosted dashboard, but will probably later be looking to replace my current integration with Blynk and directly interface with my arduino devices.

odd marlin
#

What is your goal with the data?

terse drum
# odd marlin Yes

Thanks. Looks like it will work. I guess we'll see in 90 days. Now to start adding devices to Home Assistant and getting some automations configured. I'm trying to slowly migrate everything from HomeKit to Hass as the brain, and then reconnect it to HomeKit for voice control

inland coyote
#

Currently my goal is just to get a data visualization dashboard (view sensor output history/statistics) up and running. For now, I'm content to run code/make decisions/communicate with devices myself. It seems HA is much more powerful than I have in scope now, but I'm good with incremental progress at this point

placid rock
#

@odd marlin

getting this error

Failed to open a session for the virtual machine Home_Assistant.

The virtual machine 'Home_Assistant' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

odd marlin
odd marlin
inland coyote
#

Oh awesome, thank you. I've got a long way to go in my home management journey!

odd marlin
#

Best of luck. It's a fun journey

copper steppe
#

@placid rock are you running haos? in virtualbox or something?

placid rock
#

Not sure i was just following this steps

#

@copper steppe

copper steppe
#

Did you just install virtualbox? Did you reboot after install?

placid rock
#

Yes i did

#

re installing it agin

copper steppe
#

Disable virus checkers, if any?

placid rock
#

how ?

inland coyote
#

@odd marlin Yo thanks for the help! Got it running in a container and I'm going through dashboard onboarding right now.

copper steppe
#

@placid rock no idea, I don't have any

#

@placid rock don't PM me man. If you have questions, say them here. I probably don't have much time to help.

odd marlin
#

I got a friend request too (since I have PMs disabled) that I rejected after I tried to help in #general-archived earlier

woven turtle
#

Hey all,
How do I set static IP for my VM machine (got one for HA and one for Plex)?

manic bane
#

Best way is on your router. Should be able to assign static DHCP

woven turtle
manic bane
#

You can assign static IPs per device. However that can cause things to become unstable, since if the router assigns x.x.x.5 to your phone and your HA vm is meant to have x.x.x.5, nothing will work

woven turtle
#

so they conflicting together... got it

#

Thank you!

copper steppe
#

If you know the dhcp range, put it outside the range, but inside the subnet

#

eg: if your LAN is 10.1.1.* (/24) and the DHCP leases are 10.1.1.10 to 10.1.1.200; then make your static/stolen IP 10.1.1.201

manic bane
woven turtle
#

Yeah I have no idea what the range is.

manic bane
#

Plus a lot of consumer routers just do .5-.255

humble mirage
#

Or just .2-.255

woven turtle
#

I live in Israel and they charging money for accessing your control panel in the router there is a fee for DHCP static IP.. which is completely stupid...

manic bane
#

Wait, so how do you change your wifi name or password?

humble mirage
#

A fee for that?

woven turtle
#

This is "free" by the internet company app....

#

Yep, I couldn't belive that too..

manic bane
#

A fee for a static public IP is not abnormal. A fee to go to 192.168.1.1 and change your local LAN settings is abnormal

woven turtle
#

I am not talking about public IP

#

Talking about local....

manic bane
#

Can you get a new router

#

Or put your one into bridge mode

#

Or something

#

Or a new ISP

woven turtle
#

Yeah I think I will just get an open source router rather than this north Korea production 😂

manic bane
#

A cheap PC from aliexpress running opnsense works well

drifting osprey
manic bane
#

I bought pretty much the same thing lol

#

Just the cheaper one without a Sim slot

copper steppe
#

I run pfsense on my proxmox box. Works great

fallow slate
#

Hey, how to share integrated bluetooth from my computer (i have BT but i don't need a Bluetooth dongle to work) to a virtualmachine ?

humble mirage
#

As mentioned... you need to tell us which VM software you're using

fallow slate
#

OH sorry, Virtual Box + haos_ova-9.4

manic bane
fallow slate
#

Set wifi card in "Network" tab ?

manic bane
#

No, you'll have to pass through the card if that's where your Bluetooth comes from. Not set it up as a network

#

There should be a devices or similar name to pass through

fallow slate
cloud flint
#

If I upgrade Home assistant OS, do any packages I install through the hass shell get wiped? I am thinking of installing CUPS to provide Airprint services on my HASS odroid.

low notch
#

you want to install that cups server with a addon, else you render your haos installation unsupported

cloud flint
#

got it. Ill ask in addons if there is one that works. Thanks!

atomic trench
#

Hello there!
Maybe someone knows what could go wrong
I got my server connected to my LAN and vice versa via wireguard, any port that I need to be forwarded - works, except for home assistant
I see it via nmap on 127.0.0.1, but it's not accessible from my LAN
Home assistant were deployed on docker, with host mode, also tried with bare port forwarding (just putting ports into compose.yml) - no results.
Firewall rules updated accordingly, for 8123/tcp on wireguard interface

#

I can provide you with screenshots of firewall configs, compose.yml, configuration.yaml and docker ps output too, but it seems to look fine (to me)
Nothing crashes, forwarding goes to 0.0.0.0:8123 and everything seems to work, but it's not as expected, huh

drifting osprey
#

How/why is wireguard between your LAN and HA server?
127.0.0.1 is every machine's localhost IP - it does not leave or enter a host. It's the internal loopback address and is always pingable on that host, if TCP/IP is working correctly.
Forwarding to 0.0.0.0:8123 is not valid on a firewall/router. A router has to forward to one host a.b.c.d:8123

#

What's the LAN address for the host running docker?

atomic trench
#

I just don't have a Raspberry Pi 🙂
So I got a server on hetzner, my router connects to cloud VPN, providing me with access, and this server has access to my router LAN devices too
router -> hetzner; hetzner -> router
IP assigned to host in router's lan: 192.168.10.2 (pingable, accessible from router's LAN, services are usable)

drifting osprey
#

What's the IP address in HA set to?

#

Ah, so HA server is "in the cloud" then...

atomic trench
#

Yeah

#

And connected to LAN via VPN

drifting osprey
#

192.168.10.2 is the host in the cloud via VPN?

odd marlin
#

HA not hosted on your LAN is not going to be very useful since many integrations do discovery via broadcast or multicast

drifting osprey
atomic trench
#

Oh, photos are forbidden there

atomic trench
drifting osprey
#

"I see it via nmap on 127.0.0.1" - nmap from where?

atomic trench
#

nmap on host machine

#

ss --tcp --all gives me "LISTEN 0.0.0.0:8123"

drifting osprey
#

That's pretty much a given then as it's just a loopback to itself

atomic trench
#

ss --tcp on host too

odd marlin
atomic trench
drifting osprey
#

Yes, I can see the issues that might arise. The VPN is routing IP to/from the host and LAN but not likely UDP, etc, not without helpers.
But he's not even getting to step 1: http://192.168.1.100:8123 which should work, if configured right.
Okay setup for initial proof of concept but chock full of hazards and pitfalls for ongoing development or actual full blown usage of HA...

#

What IP does HA have configured?

atomic trench
#

Am I able to configure HA ip somehow? I just couldn't find such config

drifting osprey
#

To discover local LAN devices it would need to be a bridged VPN, very likely in this scenario

drifting osprey
atomic trench
#

Yes

drifting osprey
#

And that's all so far?

atomic trench
#

Yep. Mapped volumes for config folder, tried to use ports: - "8123:8123" and then switched to just network_mode host, as in guide

drifting osprey
#

It's been a while now but what's step 2 in installing HA? browse to ???:8123?

atomic trench
#

Seems to be, "Onboarding"

#

Besides docker config for compose.yml itself and firewall mapping that I performed further

#

Only if I didn't get it wrong and the guide has something else

drifting osprey
#

Can you run this on the host?
http://<host>:8123

atomic trench
#

Yes. Ran. Gets HTTP 302, forwards to onboarding.html

#

If we take localhost as a <host>

drifting osprey
#

Did you browse to it or???

#

The onboarding page should open...

atomic trench
#

I can't open it on host without UI

#

But suddenly, right now, it opened at my LAN. It hasn't worked until now

drifting osprey
#

Ok, wow...

#

You are treading deep waters my friend!

atomic trench
#

Under the same address, same port. I don't know what to say

#

The only thing I did is restarted docker container and after 5 mins of failure connecting went there