Hi everyone,
I finally finished my build and the mirror is on the wall :) I can share my build sometime if you are interested.
But I have one point I need help with: I want to shutdown the Raspberry Pi at night and when I am not home (energy consumption, safety etc.) and I want to automate this when my house changes it status e.g. from ‘home’ to ‘away’ > shutdown and when i get back then powers up again.
I run my apartment on Home Assistant (running on a different Pi than my mirror) and I have built a Koogeek smart powerstrip into the mirror to which the screen and the Pi are plugged in. I can switch each outlet on and off via HA, which I do with the screen right now, which turns off 5 min after the motion sensor stops detecting movement.
I could do the same with the Pi easily but my fear is that if I regularly just kill the power on the Pi without proper shutdown, that it could mess up something on the memory card or kill the Pi eventually.
Or is this unfounded and it is perfectly ok to just pull the power? As this would be the most easy solution.
If killing power is a bad idea, do you have any ideas how to realize this with Home Assistant? Maybe via MQTT or so? I have already done a ton of research if there is a way to control another Pi via HA but nothing useful turned up (no integrations, add-ins, not even in HACS or somewhere on GitHub).
So if anyone has some insights here then I would really appreciate it!