Welcome to flovflo-home-compose, your one-stop solution for a connected, adaptable, and energy-optimized home. Leveraging Home Assistant, ESPHome, Docker, and Frigate, this project walks you through building a powerful domotics ecosystem centered on solar energy management.
"Imagine a home that anticipates your needs, adjusts lighting and temperature, and prioritizes solar production—now a reality!"
flovflo-home-compose/
├── README.md
├── automatisation/
│ ├── detect.yaml
│ ├── Smart-Plug.yaml
│ ├── Smart-Plug2.yaml
│ └── smart-water heater.yaml
├── docker-composHA/
│ ├── docker-compose-frigate.yml
│ └── docker-compose-HA.yaml
├── ESPhome/
│ ├── detect.yaml
│ └── linky.yaml
└── Frigate/
└── config.yml
- ESPhome/: Firmware definitions for sensors and teleinfo
- automatisation/: Home Assistant automation scripts (YAML)
- docker-composHA/: Docker compositions for HA, Frigate, MQTT, Watchtower...
- Frigate/: Smart video surveillance configuration
-
detect.yaml
- Hardware: ESP32-S2 Mini + LD2410 presence sensor
- Features:
- Presence, movement, and ambient light detection
- Dynamic
light_thresholdandtimeoutadjustments - UART at 256 000 bps, detailed INFO-level logs
- Integration: Native Home Assistant API for real-time automations
-
linky.yaml
-
detect.yaml
- Toggle Yeelight on presence detection
- 100% brightness only when presence is active
-
Smart-Plug.yaml & Smart-Plug2.yaml
- Automatic control of plugs 4 & 5 based on solar production (> 1 kW) and master device state
- Turns off if grid consumption > 200 W or if conditions reverse
- Push notifications on state changes
- Scheduled checks every 10 min (/10) and 15 min (/15)
-
smart-water heater.yaml
- Controls solar water heater when production > 1.8 kW or during off-peak hours (21:30–23:30, 02:30–06:30)
- Turns off if consumption > 300 W outside off-peak periods
- Maximizes savings while ensuring comfort
- homeassistant: Official image, persistent volumes
- esphome: Firmware deployment service
- cloudflared: Secure tunnel to your instance
- watchtower: Automatic updates at 04:00 daily (
0 0 4 * * *) - scrypted & matter-server: Media integrations and Matter support
- Mosquitto: Robust MQTT broker (ports 1883 & 9001)
- Frigate: Real-time object detection (person, car, dog, cat)
- Custom detection zones (entry), motion masks
- tmpfs for performance (1 GB)
- config.yml:
- MQTT connection with TLS
- Single RTSP camera at 1920×1080 @2 fps
- Tracked objects & custom zones
- CPU detector with 6 threads
- Clone the repo:
git clone https://github.com/Flovflo/Home-Compose.git cd flovflo-home-compose - Configure your secrets (
!secret) and environment vars ($cloudflared-token,$mdp-rtsp, etc.) - Launch services:
docker-compose -f docker-composHA/docker-compose-HA.yaml up -d docker-compose -f docker-composHA/docker-compose-frigate.yml up -d
- Monitor logs and verify Lovelace integration
Contributions, issues, and suggestions are welcome!
- Open an issue for bugs or feature requests
- Submit a PR to share your use case
