I recently embarked on an exciting project to automate my Proxmox Backup Server using solar power, and I’d love to share my journey and tips with the community. This setup not only enhances efficiency but also aligns perfectly with sustainable energy practices. The Challenge: I wanted to ensure that my backup server runs exclusively during daylight hours when solar energy is abundant. This would minimize battery drain and reduce energy costs, especially since I have a 6.6kW solar panel system and a 9.6kWh battery. The Solution: After some research, I decided to integrate my backup server with Home Assistant. Here’s a breakdown of the steps I took: 1. Wake-on-LAN Setup: I configured the server to wake up using Wake-on-LAN. This involved setting up the MAC address and broadcast address in Home Assistant’s YAML configuration. The setup was straightforward, and I tested it using a simple command in the terminal. 2. Shutdown Automation: To ensure the server shuts down gracefully, I utilized Proxmox’s API. I generated an API token and set up a REST command service in Home Assistant to handle the shutdown process. 3. Solar Power Monitoring: I leveraged the Forecast.Solar integration to predict solar generation. This allowed me to automate the server’s operation based on predicted solar output, ensuring it runs only when sufficient power is available. 4. Backup Schedule Adjustment: I updated the backup schedules in Proxmox to run during daylight hours. This ensures that backups are performed when the server is active and powered by solar energy. Results: The automation has been a game-changer. The server now operates seamlessly during daylight, reducing my energy consumption and costs. I’m thrilled with how Home Assistant has enabled this integration, making my setup both efficient and eco-friendly. Tips for Others: - Test Each Component Individually: Before integrating everything, test each part (Wake-on-LAN, API shutdown, solar monitoring) to ensure they work as expected. - Use YAML for Advanced Configurations: While the UI is user-friendly, some advanced setups like Wake-on-LAN still require YAML editing. - Monitor and Adjust: Keep an eye on the system’s performance and adjust thresholds or schedules as needed based on your energy usage patterns. I hope this分享 inspires others to explore similar automation projects. It’s incredibly rewarding to see technology working harmoniously with sustainable practices!