# MQTT Hub/Gateway

**URL:** <https://community.homey.app/t/mqtt-hub-gateway/6766>\
**Category:** Apps\
**Created:** [January 14, 2019, 6:59pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766 "2019-01-14T18:59:50Z")\
**Posts on this page:** 1\
**Showing post:** 1202

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 10, 2023, 7:32pm UTC](https://community.homey.app/t/mqtt-hub-gateway/6766/1202 "2023-07-10T19:32:49Z")

</div>

Hello @HarriedeGroot  
would it be possible to add additional states to exported capabilities?

Example:  
I export meter\_water and meter\_gas and want to use it in HA for energy dashboard.  
But these entities can only be added if they have attributes like:  
device\_class: gas  
state\_class: total\_increasing

The Hub only seems to export friendly\_name and unit, but nothing capability based.  
Do you think this could be added to device.\_publishMessage()? I could add some cases if you want and create PR. Or is there a better way? An alternative could be to add attributes to for devices in app settings, but this would need more adjustments.

Edit:  
I just added a template sensor to HA which inlo takes the value from the Mqtt sensor and added device\_class and state\_class.

---

_[View the full topic](https://community.homey.app/t/mqtt-hub-gateway/6766)._
