How I Enhanced My Smart Lighting with Usage Statistics

Hey everyone! I wanted to share a fun project I recently completed with my smart lighting setup. I’ve been using Cree bulbs for a while now, and I decided to take it a step further by adding a usage statistics graph to track how much time my lights are on versus off. This was a fantastic way to not only monitor energy usage but also to optimize my lighting schedule. I stumbled upon the idea while exploring the Google Charts API. It’s incredibly versatile and allows you to create various types of graphs without needing any complex setup. For my project, I went with a pie chart to visually represent the percentage of time each light is on or off. The process involved setting up a poller to collect data at regular intervals and then using the Google Charts API to generate the graph. Here’s a quick breakdown of what I did: - Data Collection: I created a poller to collect on/off data from my Cree bulbs every hour. - Graph Generation: Using the collected data, I generated a pie chart that updates in real-time. - Integration: I integrated the graph into my smart lighting dashboard for easy access. The best part is that this setup doesn’t require any additional hardware—just some smart coding and the power of the Google Charts API. It’s been running smoothly for a few weeks now, and I’m really impressed with how much insight it provides into my lighting habits. I’d love to hear if anyone else has tried something similar or has any tips for enhancing this setup further. It’s been a rewarding project, and I’m excited to see how I can expand on this idea in the future! Thanks for reading, and happy tinkering! :rocket: