Configuring Athom EM2 Energy Meter: A Comprehensive Guide

Hey everyone, I wanted to share my experience configuring the Athom EM2 energy meter. I recently set this up and thought I’d walk through the process in case anyone else is looking to do the same. :smile:

The Athom EM2 is a fantastic device for monitoring energy consumption, and integrating it into OpenHAB can be really rewarding. However, getting everything just right took a bit of tweaking. Here’s how I approached it:

First, I made sure the MQTT topic on the device was set to energy_meter. This was crucial for ensuring the data flows correctly into OpenHAB. I also updated the bridgeUID to match my MQTT bridge setup. Once that was done, I configured the channels to capture all the necessary data points.

Here’s a snippet of the configuration I used:

plaintext
UID: mqtt:topic:OpenhabianMQTT:EnergyMeter
label: House Energy Meter
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:OpenhabianMQTT
location: Electric box
channels:

  • id: Channel1Current
    channelTypeUID: mqtt:number
    label: Current channel 1
    description: null
    configuration:
    postCommand: false
    retained: false
    unit: A
    stateTopic: tele/energy_meter/SENSOR
    transformationPattern: JSONPATH:$.ENERGY.Current[0]

… and so on for other channels

I decided not to add summary values like Energy Today or Energy Total since OpenHAB has built-in ways to handle those. This kept the configuration clean and focused on raw data capture.

After setting everything up, I tested each channel to ensure it was receiving data correctly. It’s a bit time-consuming, but it’s worth it to make sure every aspect of your energy usage is tracked accurately.

If anyone has questions about configuring their Athom EM2 or needs help setting up similar devices, feel free to reach out! I’d be happy to share more details or troubleshoot any issues you might encounter. :thumbsup:

Happy automating everyone! :rocket: