Hey everyone, I wanted to share my recent project with you all—it’s been a fantastic learning experience and I hope it can inspire others to dive into similar projects. ![]()
The Idea
I’ve always been interested in optimizing our household energy usage. With fluctuating electricity prices, I thought it would be cool to have a visual indicator that shows the current and future prices. This way, we can decide the best times to run appliances like the dishwasher or washing machine. Plus, it adds a fun tech element to our home! ![]()
The Build
I decided to create a lamp that uses different colors to represent price levels. The leftmost lamp shows the current price, the next two show the prices for the next three hours, and the last lamp gives an average for hours 3-6. It’s simple yet effective!
Here’s a quick overview of how it works:
- Data Collection: I used the Nordpool sensor to get real-time and future electricity prices.
- Processing: The prices are scaled to a 0-9 index to control the color intensity.
- Visualization: Each lamp changes color based on the price index—green for low prices and red for high ones.
Challenges and Solutions
It wasn’t all smooth sailing. The biggest hurdle was getting the color transitions just right. I had to play around with the RGB values and ensure the logic correctly mapped the prices to colors. After some trial and error, it all came together! ![]()
Lessons Learned
- Start Small: Even if your project seems complex, breaking it down into smaller tasks makes it manageable.
- Test Early and Often: Don’t wait until the end to test. Regular testing helps catch issues early.
- Community Support: If you get stuck, don’t hesitate to ask for help. The HA community is incredibly supportive!

Final Thoughts
Seeing this project come to life has been incredibly rewarding. It’s not just about saving money—it’s about feeling more connected to how we use energy in our home. Plus, it’s a great conversation starter when guests come over! ![]()
If anyone has questions or wants to try something similar, feel free to reach out! Happy building! ![]()