Simple display on the dashboard of MQTT topics without a controller

When defining an MQTT topic and deselecting the « Is this a sensor » option, it is not always possible to display it on the dashboard in a « room device » or « device » widget. Two cases arise:

  • either the topic type was developed with a controller (this is the case, for example, for the types « temperature setpoint » or « lighting on/off »). Then the topic can be displayed, in the form of a component that allows modifying its value.
  • or the topic type was developed without a controller (this is the case, for example, for « integer counter », or « unknown », or « text » (I haven’t tested them all, but there are probably others)), and in that case you cannot choose it in a « room device » or « device » widget.

The enhancement consists of making it possible to display the second category of topics. A simple display will suffice by default, without a controller that would allow modifying the value. (If needed, controllers can be added later, and would then replace the simple display)

To illustrate, a concrete example: I want to monitor how many times per day my power outlet is turned on. So I created an MQTT topic of type « integer counter » that is incremented from a scene (trigger = state change of the plug). And I would like to display it, but it’s impossible today.

You are absolutely right @StephaneB! :slight_smile:

It’s fixed:

I also took the opportunity to fix the placeholder in the scenes that was wrong!!

The PR:

No need for testers, I’ve tested it on my side, it works perfectly :slight_smile: I’ll merge as soon as the tests pass.

1 Like

I feel like I’m going to looooove this next version :wink::+1:

1 Like

Perfect! That one bothered me at the start of my experiments with Gladys :sweat_smile:

1 Like

This new feature is available in Gladys Assistant 4.58 :