Feature description
J’ai un bouton ikéa sans fil qui permet de faire varier la luminosité d’une ampoule quand il lui est associé en direct.
Via Gladys et Zigbee2MQTT je n’ai pas la possibilité de faire la même chose.
Node-Red le permet via une pseudo boucle infinie, mais c’est pas ouf en terme de performance, stockage base de données et expérience utilisateur.
Je voudrais pouvoir faire varier l’intensité lumineuse ou la lumière avec des boutons prévus pour, qui ont un + et un -.
J’allais ouvrir une demande de fonctionnalité aujourd’hui qui concerne aussi les sliders de lumière…
Je réponds ici pour voir si je crée un autre topic ou pas au final.
Ce qui est compliqué quand on a plusieurs ampoules c’est qu’elles puissent avoir toutes la même luminosité / temperature de couleur… Or là on fait a bisto de nas en jouant avec le slider.
Je pensais de mon côté à un affichage en chiffre lorsqu’on slide (du genre un curseur avec une valeur écrite dedans). Comme ça on peut facilement régler les ampoules sur la même valeur.
Du genre ça : html - HTML5 input type range show range value - Stack Overflow
Mais encore mieux avec la valeur intégrée au point du slider que l’on déplace.
Bonsoir guim31,
Pour depanner j’ai fais ça sur Node-Red, j’ai 2 slider et un affichage suivant le slider que tu bouges, la valeur correspondante s’affiche, c’est pas terrible mais ça fait le job
I noticed that IKEA allows you to physically pair the +/- buttons with a bulb to control its brightness.
It doesn’t even go through a proprietary hub.
How could we set up this kind of pairing in Gladys? Because looking at triggers in scenes, we could do:
Trigger on value DOWN, Light Down or an equivalent action sent by the button
Decrease the brightness in steps, smoothly, as long as the button does not send another value (for example STOP or UP). The user can choose the value in milliseconds between each step.
This way, Gladys uses few resources to dim a bulb, and the physical dimmer buttons are still managed via scenes.
I did a test in Node-RED, but my loop was too fast and caused 100% CPU usage.
In practice, it needs to be tested for this particular case.
I had to make a « pair » in Z2M directly so that the button could control my bulb’s brightness in a « smooth » way.
Otherwise manually, with NodeRed for example, you could see the different brightness levels in steps, without it being « smooth ». Not bothersome but less pleasant to live with.
Honestly, I don’t know if we want to copy this feature into Gladys if it already exists in Zigbee2mqtt.
And I’m not sure we want to highlight this feature; pairing a button with a lamp brings a lot of drawbacks: for one, you can no longer use the button in Gladys.
So you end up with a « simple » button that only does on/off/brightness control. For me, the whole point of Gladys is to be able to make smart buttons.
For example, at my place all my IKEA buttons have different behaviors depending on the time of day: during the day, they turn the ceiling light on at full power, and at night they turn on the LED strip on the floor (no ceiling light), or set the ceiling light to reduced brightness. To get full power at night, I configured a long press on the button.
If I had paired my button, I wouldn’t have been able to do any of that!