I’ve been on a journey to integrate my smart electric meter with Smartthings, and I wanted to share my experience and some tips for anyone looking to do the same. I live in Texas, and like many others here, I wanted a way to monitor my energy usage in real time, especially since I have solar panels and no net metering. This led me to the Rainforest EMU2, which seemed like the perfect solution to get the data I needed.
First, I had to set up the Rainforest EMU2. It was a bit of a process, but with some research, I found that it works best with a Raspberry Pi. I installed the necessary software and scripts to connect the EMU2 to my Raspberry Pi, and it wasn’t too bad once I got the hang of it. The most challenging part was ensuring a stable serial connection between the EMU2 and the Pi. I had to troubleshoot a few times, but eventually, it worked like a charm.
Next, I wanted to bridge the data from the EMU2 to Smartthings. I came across the Smartthings MQTT Bridge, which was essential for this integration. It acted as a middleman, translating the data from the EMU2 into a format that Smartthings could understand. I also created a custom device handler in Groovy to display the energy data in a user-friendly way within the Smartthings app. This allowed me to see my current usage, peak usage, and even a graph comparing today’s usage to yesterday’s.
One thing I learned along the way is the importance of having a reliable setup. I invested in a quality USB adapter for the EMU2 and made sure my Raspberry Pi was in a stable environment. This helped minimize the serial connection issues I initially faced. I also found that using a 1st-gen Raspberry Pi worked well, but it’s something to keep an eye on for any potential connectivity hiccups.
For anyone looking to replicate this setup, I recommend starting with the MQTT Bridge and the Rainforest EMU2. Make sure to back up your data regularly and test each component thoroughly before integrating them. It’s a bit of a project, but the payoff in terms of energy monitoring and control is well worth it.
Overall, this integration has been a game-changer for me. I now have real-time insights into my energy usage, which helps me optimize my solar panel usage and even adjust my energy consumption habits. It’s been a rewarding experience, and I’m excited to see how this system evolves over time.