[APP][Pro] MQTT Hub - Community version

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:

You can also add all language dependent titles if needed.

This way you get this mode list:
grafik

1 Like