# Device delivering Wh, not kWh, how to deal with, scaling factor

**URL:** <https://community.homey.app/t/device-delivering-wh-not-kwh-how-to-deal-with-scaling-factor/46944>\
**Category:** Questions & Help\
**Created:** [May 1, 2021, 1:33pm UTC](https://community.homey.app/t/device-delivering-wh-not-kwh-how-to-deal-with-scaling-factor/46944 "2021-05-01T13:33:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![HarriedeGroot](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/harriedegroot/32/56160_2.png) [@HarriedeGroot](https://community.homey.app/u/HarriedeGroot)\
**Post date:** [May 3, 2021, 2:01pm UTC](https://community.homey.app/t/device-delivering-wh-not-kwh-how-to-deal-with-scaling-factor/46944/5 "2021-05-03T14:01:25Z")

</div>

@Metatron math expressions are implemented in MQTT Hub v3.4.0.

For an example see:

> [@MQTT Hub/Gateway](https://community.homey.app/t/mqtt-hub-gateway/6766/952):
>
> Version 3.4.0 MQTT Device: allow [mathJS](https://mathjs.org/) expressions as value template for incoming messages Both [mathJS](https://mathjs.org/) & [jsonPath](https://github.com/dchester/jsonpath) expression are allowed as value template for incoming messages. The value is accessible via the value param if the message is a raw value. If the message is JSON formatted: path.within.json can be used to target the value. Example: Convert incoming Wh to kWh

---

_[View the full topic](https://community.homey.app/t/device-delivering-wh-not-kwh-how-to-deal-with-scaling-factor/46944)._
