Modify the openings variable

This is somewhat in response to @spenceur’s request.

At the moment, if we use the openings variable in a scene it returns 0 for open and 1 for closed.

I’m creating a scene for when I leave the house that plays a message on my Sonos, but using 0 or 1 in the sentence isn’t explicit.

It would be nice to be able to modify the variable either during input or in the code to have « open » or « closed », or even « yes » or « no ».

You’re using Node-RED for that, right? I know that’s not a solution in Gladys, but why don’t you create two cases in Node-RED and put the correct translations in Node-RED? :slight_smile:

Indeed I use Node-RED for Sonos but I’m far from being a great expert on its features.

I worked around it by creating a scene for each opening and changing the message played depending on which opening is triggered.

Ok ! Should this feature request remain open ?

I don’t actually see anything actionable in this request.

We’ll see, because it’s only a hack using Node-RED.
Anyone who doesn’t want to or doesn’t know how to use Node-RED won’t be able to adapt the text that will be broadcast for me.

I may be mistaken, but as long as a text-to-speech system isn’t integrated into Gladys, we still have to tinker with Node-RED / other personal systems anyway. So I’m not sure it’s necessary to change the code as long as it only serves certified geeks haha :wink:

1 Like

The same problem in another form

I agree with @guim31, I don’t see anything actionable in this feature request as it stands! I’m closing it; if one day we have this feature natively in Gladys, it will simply be handled natively :slight_smile:

1 Like