I am currently working on setting up a « homemade » device based on NodeMcu + Mqtt broker. Everything works very well, thanks to the many tutorials from the community!
However, I have a question about integrating services on the dashboard: it is mentioned that the only supported services are on/off switches as well as sensor information.
In my case, I would also like to be able to send analog values to control the color and brightness of different bulbs/LED strips. Is this feature up-to-date or not?
Thanks in advance!
Hi,
well I don’t think anything is planned on this subject for the moment, as no need has been reported.
Here is one, so we can look into the matter.
If I understand correctly, in your case we are talking about providing color and brightness via MQTT.
This implies that this value must be normalized, and of course correctly interpreted by the device.
For brightness, we can stay with an integer from 0 to 100 (as a percentage), but for color, we can define several formats. This point will be more « complex ».
I invite you to create an « issue » on the github to track your request (with a link to this topic and vice versa to keep as much information as possible).
However, I cannot give you a schedule.
But I think I understand that you do (at least a little) development, you can even contribute with a PR on github.
We will read, help you if you have any questions.
Yes, that’s exactly it, and as a second measure, also having a status return to know the current brightness and color. So broker-device and vice versa.
For standardization, it’s clear that a percentage is the simplest on the UI side. On the device side, we could imagine a representation on a byte which is the most common but it doesn’t change much.
However, for the color, I was thinking of avoiding the RGB representation which requires 3 values to favor the HSV representation which only requires one value (an angle from 0 to 360).
I do dev but more on embedded targets, so C, C++, Python… For Node.js or preact that I saw pass on the forum it’s not yet up to par …
I would still be very happy to be able to contribute to the project and therefore if you have ideas for resources to start learning or specific advice to apply to the Gladys project I am interested.
Hi,
I just understood your need.
Actually, this is not necessarily related to MQTT, but first of all, having an actuator on the dashboard for brightness and light.
In this case, I will not ask you to provide development, because this dashboard presentation topic is a topic that is starting to date. We had already addressed the subject, some had even provided graphic proposals.
So, if you have some design notions, you can propose a nice integration of these controls in the dashboard.
@pierre-gilles no choice has been made yet on the presentation of the light color controls? (colors / brightness / …)
I think we should be inspired by existing solutions: Philips Hue app, Apple Homekit, they have beautiful apps that manage brightness/color well. I can see something similar in Gladys.