MQTT energy meter graph

Hello everyone,

I am currently getting my first Home Assistant deployment built out after using Smartthings for the last 3 years. I plan to keep ST around for now, and have configured the ST-MQTT bridge by StJohnJohnson.

I am able to add all my devices to HA via MQTT, and everything appears to be working well, but when I added my Aeon Home Energy Meter, I am able to get the correct value, but get an error if I try to enable the line graph feature.

Entity: sensor.home_energy_meter - Has no Unit of Measurement and therefore can not display a line graph.

2019-02-04%2015_48_23-Home%20Assistant

The code for the device is…

 - platform: mqtt
    name: "Home Energy Meter"
    state_topic: "smartthings/Aeon Home Energy Meter/power"
    unit_of_measure: 'W'
    qos: 1
    retain: true

I tried several different options in the unit_of_measure attribute, but they only append it to the value. Any help here would be greatly appreciated.

Thanks!

unit_of_measurement
instead of
unit_of_measure

 - platform: mqtt
    name: "Home Energy Meter"
    state_topic: "smartthings/Aeon Home Energy Meter/power"
    unit_of_measurement: 'W'
    qos: 1
    retain: true

That did it! Thank you SO much!!