# \[APP\]\[Pro\] MQTT Hub - Community version

**URL:** <https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463>\
**Category:** Apps\
**Tags:** app, mqtt, homey-pro\
**Created:** [July 26, 2024, 3:58pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463 "2024-07-26T15:58:53Z")\
**Posts on this page:** 20\
**Page:** 6

<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:** [October 6, 2024, 6:18pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/109 "2024-10-06T18:18:39Z")

</div>

New **test version 4.2.3** including some fixes:

- Changed start/stop control in app settings
- Fixed custom settings (checkboxes)
- Fixed HA discovey on Hub restart

@Fabien_Schmitz FYI and to try:

> **[MQTT Hub](https://homey.app/en-us/app/org.mqtt.hub/MQTT-Hub/)**
>
> Turn your Homey into a HUB and let external applications discover & control all your connected devices.

---

<div class="post-metadata">

**Author:** ![Fabien\_Schmitz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fabien_schmitz/32/8472_2.png) [@Fabien\_Schmitz](https://community.homey.app/u/Fabien_Schmitz)\
**Post date:** [October 7, 2024, 10:16am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/110 "2024-10-07T10:16:00Z")

</div>

Hi Ronny,

The Checkboxes are working now! Thank you for the quick solution.

I’m still running in some problems, (mqtt device reporting no value but says invalid date etc) but I’ll have to investigate it further to make a proper bug report!

---

<div class="post-metadata">

**Author:** ![fly\_man](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fly_man/32/57526_2.png) [@fly\_man](https://community.homey.app/u/fly_man)\
**Post date:** [October 15, 2024, 11:54am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/111 "2024-10-15T11:54:50Z")

</div>

Hi there,

I’ve developed some sensors using ESP32 and I would like to use MQTT to send data to Homey gateway.

At this point I have MQTT Device added do Homey with properties like on/of and temperature measue. Problem is that temperature measure is setable=false and this value can’t be ubdated by MQTT from what I understand.

So MQTT Hub is to have Homey real devices accesible outside throuth MQTT but is it a method to update temperature measure in that kind of virtual device or i mssed something?

Already tryed change setable to true but it not helped.

Cheers!

---

<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:** [October 15, 2024, 4:51pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/112 "2024-10-15T16:51:41Z")

</div>

If you add a MQTT-device and add a measure\_temperature capability linked to a numeric MQTT topis, this value gets updated in realtime if the MQTT value changes.  
The capability is not setable. That means, you can’t set the value from “outside”. But the app itself can of course change the value.

You don’t need to handle the capabilities or values with flows like it’s needed for virtual devices. That’s all done by the app.

---

<div class="post-metadata">

**Author:** ![fly\_man](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fly_man/32/57526_2.png) [@fly\_man](https://community.homey.app/u/fly_man)\
**Post date:** [October 15, 2024, 6:50pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/113 "2024-10-15T18:50:08Z")

</div>

My problem solved.  
thank you @RonnyW !

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee6d814890a8bd8af5219c146252e8acbda8a5e2.png)

---

<div class="post-metadata">

**Author:** ![Johan\_Holmberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_holmberg/32/33966_2.png) [@Johan\_Holmberg](https://community.homey.app/u/Johan_Holmberg)\
**Post date:** [October 17, 2024, 10:36am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/114 "2024-10-17T10:36:02Z")

</div>

> [@Thomas\_007](#):
>
> MQTT Hub («Advanced» field under settings

Where do you find Advanced? I can’t see it in mobile app nor web? (version 4.2.4)

---

<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:** [October 17, 2024, 10:47am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/115 "2024-10-17T10:47:11Z")

</div>

That’s device settings for a MQTT device.

---

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [November 9, 2024, 1:20pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/116 "2024-11-09T13:20:53Z")

</div>

Hi, would it be possible to add a checkbox (or any way) to enable and disable the [cumulative](https://apps.developer.homey.app/the-basics/devices/energy#measuring-devices) property of an mqtt device?  
My situation is that I have a mqtt power meter, and the power it measures is added to Homeys energy section so it looks like my energy usage is double of what it is.  
It doesn’t cause any porblems other than making the energy usage visualization off, so its not a big problem 🙂

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [November 20, 2024, 5:58am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/117 "2024-11-20T05:58:06Z")

</div>

Hi @RonnyW  
Recently the app seems to be instable at times.Sometimes with an “Memory Warning Limit Reached”

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d148082fc8cac6b4d12ca6134cd93172329b94eb.png)  
and other times with an “CPU Warning Limit Reached”  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e05145d5a1c23312354220d78cf8d57632ac4d59.png)

Today the instability began at 3:00 am:

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/6/e6d7600ddbac63d3e6a86add8470d1afd96d1481.png)

Diagnostic rapport:  
`a22d022f-3905-4a68-898d-cf67e3623512`

Any idea why?

---

<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:** [November 20, 2024, 9:46am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/118 "2024-11-20T09:46:59Z")

</div>

The CPU usage is caused by a sync in most cases.  
Was the Mqtt connection broken at this time and caused a new sync?

Did you set a sync delay in Mqtt Hub settigs? If not, please try 20 ms. If you get still crashes, increase up to 50ms.

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [November 20, 2024, 11:07am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/119 "2024-11-20T11:07:07Z")

</div>

I don’t think the mqtt connection was broken at the time of the crashing period. I have the broker running on a Qnap nas, and used mqtt explorer on a PC to check the connection. That worked fine.

Thanks for the suggestion to adjust the sync delay. To be honest, I do not have a clou wat sync delay is 😅 But I can’t find it either in the settings?

These are the settings I have:

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/4/044f97717ba4e62abecd4c33b9716c5b2704df5b.png)  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d74d976a792072c46c8d314046ada34dd3c55150.png)

Or do I need to set it somewhere in the broker settings (I use mosquitto on the Qnap NAS)?

[EDIT]  
Just found out I was running an old version of MQTT hub even though I had the auto-update on.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e24862e5860e9d3b5b3d818af305ea0bdb19f1c2.png)  
I see the delay option now 👍  
Thanks.

---

<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:** [November 20, 2024, 11:32am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/120 "2024-11-20T11:32:52Z")

</div>

Now you are using this app/version?

> **[MQTT Hub](https://homey.app/de-de/app/org.mqtt.hub/MQTT-Hub/)**
>
> Turn your Homey into a HUB and let external applications discover & control all your connected devices.

---

<div class="post-metadata">

**Author:** ![Satoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/satoer/32/38113_2.png) [@Satoer](https://community.homey.app/u/Satoer)\
**Post date:** [November 20, 2024, 2:24pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/121 "2024-11-20T14:24:51Z")

</div>

Yes I am now on 4.2.4

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/0/105e4edfc025f2cd1d8325302c81857fec1c03fd.jpeg)

---

<div class="post-metadata">

**Author:** ![Doekse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/doekse/32/109415_2.png) [@Doekse](https://community.homey.app/u/Doekse)\
**Post date:** [November 23, 2024, 6:16pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/122 "2024-11-23T18:16:45Z")

</div>

Hi @RonnyW! Quick question _(asking for a friend 😉)_; Are there any plans to update the app with the new capabilities? I’m currently using it for my Itho Daalderop ventilation unit, and it would be awesome to have the option to use _“fan speed”_ instead of just _“dim”_ 👀

---

<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:** [November 23, 2024, 6:24pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/123 "2024-11-23T18:24:59Z")

</div>

Hi, you mean while adding a MqttHub device when you add a capability for a topic?  
I have to check how it’s implemented. I just took over the app but don’t know all details.

You can try to change the capability in device settings (the JSON definition). I know you can change capabiliy options, but I never tried to change the capability itself.

More details later 😉

---

<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:** [December 13, 2024, 6:44am UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/124 "2024-12-13T06:44:18Z")

</div>

Short update based on a question on Github…

If you have topics using a custom mode list, you can’t set this on adding the device.  
But you can change the attributes of the enum capability later in device settings:

The capability update functionality updates all attributes set in the JSON. If you use the “values” element, this capability option is updated which sets the enum list.  
I just tried an example and it’s working if you set the mode list in correct JSON syntax. Add the “values” element, then add all entries to the array.

`{ "thermostat_mode": { "capability": "thermostat_mode", "stateTopic": "homie/homey-pro/heizung-buro/eurotronic-mode-spirit", "setTopic": "", "valueTemplate": "", "outputTemplate": "", "displayName": "Thermostat", "values":[{ "id": "mode1", "title": "Mode 1" }, { "id": "mode2", "title": "Mode 2" }] } }`

See documentation:

> **[Capabilities | Homey Apps SDK](https://apps.developer.homey.app/the-basics/devices/capabilities#enum-capability-options)**
>
> A capability is a programmatic representation of a device's state.

You can also add all language dependent titles if needed.

This way you get this mode list:  
[![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/f/ff559615f41086a8031ac0ab190ffb3339b13ac5.png)](https://private-user-images.githubusercontent.com/49495550/387391904-c1842199-2e91-451d-9943-b9847249ba34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQwNzIzNjQsIm5iZiI6MTczNDA3MjA2NCwicGF0aCI6Ii80OTQ5NTU1MC8zODczOTE5MDQtYzE4NDIxOTktMmU5MS00NTFkLTk5NDMtYjk4NDcyNDliYTM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjEzVDA2NDEwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjY2MxNzJmODllNDgyMDBmNDA0ZjYwZTYzYjFlODdhZThlNDQ3ZGUwZjhlZDVmM2FjYjNmYjU4MGVmNjA0MGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.29G4N5RVUQzpspdgG9-Eg2M2PMQOYEmp1ubAnpswAGw)

---

<div class="post-metadata">

**Author:** ![Awangens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/awangens/32/7789_2.png) [@Awangens](https://community.homey.app/u/Awangens)\
**Post date:** [December 13, 2024, 8:21pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/125 "2024-12-13T20:21:59Z")

</div>

With the new energy tab(beta), it would be nice to get this, “cumulative”: “true”, work! I have tried adding this to the Jason Sting on the device. And it applies the change.

But it does not show up as a smart meeter.

```
{
	"measure_power": {
		"capability": "measure_power",
		"stateTopic": "ams/meter/import/active",
		"setTopic": "",
		"valueTemplate": "",
		"outputTemplate": "",
		"title": "Power",
                     "cumulative": "true"
	}

```

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 13, 2024, 8:31pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/126 "2024-12-13T20:31:12Z")

</div>

Afaik `cumulative true|false` is a `meter_power` setting, named energy (kWh).  
Some meters just count, others reset at midnight.  
`measure_power` is a _now_ value, it does not count up/down.

---

<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:** [December 13, 2024, 8:44pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/127 "2024-12-13T20:44:02Z")

</div>

Please try this syntax:

```auto
"energy": {
    "cumulative": true
  }

```

But I have to check how the capability is changed. If I’m right, the capabilityOptions are set. This would mean, the cumulative option is not applied. This has to be done with a device method. I’ll check that later…

---

<div class="post-metadata">

**Author:** ![Awangens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/awangens/32/7789_2.png) [@Awangens](https://community.homey.app/u/Awangens)\
**Post date:** [December 13, 2024, 8:52pm UTC](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463/128 "2024-12-13T20:52:04Z")

</div>

God point, did now apply this:

```
	"meter_power.acc": {
		"capability": "meter_power",
		"stateTopic": "ams/meter/import/active/accumulated",
		"setTopic": "",
		"valueTemplate": "",
		"outputTemplate": "",
		"title": "Energy",
                 "cumulative": "true"
	},

```

But it don’t show up as smart meeter now either.

[Previous page](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463.md?page=5)

[Next page](https://community.homey.app/t/app-pro-mqtt-hub-community-version/113463.md?page=7)
