Exploring Smart Home Automation: Xiaomi Camera, Schedules, and Data Collection

Hello everyone! I’ve been diving into the world of smart home automation lately, and I wanted to share some of my experiences and questions with the community. Whether you’re a seasoned pro or just starting out, I’d love to hear your thoughts!

Xiaomi Camera Automation

One of my recent projects has been trying to integrate my Xiaomi Ants Camera into Home Assistant. I’ve managed to get the camera feed working using ffmpeg and rstp, but I’m curious if there’s a way to replicate the behavior of other consumer cameras that turn off when someone is at home. In the Mi Home app, there’s a handy ‘Back Home’ button that disables the camera feed. I’d love to achieve something similar using an HTTP request or another method. Has anyone tackled this before?

Smart Scheduling with Away/Home Modes

Another area I’ve been exploring is creating smart schedules for my security system. I’ve set up an ‘Away’ shortcut that activates motion alerts when I’m not home. However, when I come back, I’d like the system to automatically adjust based on the time of day—turning off motion alerts during daylight hours and re-enabling them at night. I’ve got schedules already set up for daytime and bedtime, but I’m wondering if there’s a more streamlined way to make the devices fall back to their scheduled behaviors after I press a ‘Home’ shortcut. Any tips or tricks would be appreciated!

Distributed Data Collection with Raspberry Pi

On the hardware side, I’ve been experimenting with using multiple Raspberry Pi units to collect data from sensors around my home. For example, I have a Pi Zero near my MiFlora sensors, and I’d like to pull that data into my main Home Assistant setup. I’m also looking into setting up another Pi in my utility closet to monitor GPIO pins without running wires through the house. The challenge here is figuring out how to extract and consolidate all this data effectively. Does anyone have experience with setting up a network of Pi devices for data collection? Any resources or manuals you’d recommend?

Closing Thoughts

It’s amazing how much you can accomplish with the right setup, but there’s always more to learn. Whether it’s tweaking camera automation, perfecting smart schedules, or managing distributed data collection, every project brings new challenges and opportunities for growth. I’m excited to see how my setup evolves and can’t wait to hear your insights and experiences!

Thanks for reading, and happy automating! :rocket: