[SCENE] Bug: 'control a device' block

Hi everyone,

I’m having an issue with my scenes and after banging my head against it I just noticed a strange behavior.

When I want to use a « control a device » block and I want to turn it off:

For the scene to run as expected, when I create my scene I have to click the toggle twice, first to set it to ON, then again to OFF.
If I don’t touch the toggle and leave it as it is (OFF) then my scene stops.

I noticed this by sending messages at each step of my scene.

I wonder if this has been the case since the introduction of variables in these blocks.

Anyone able to test this?

Details:
Computer running Ubuntu / Chromium browser

Thanks for the feedback, I’m not surprised, the variable isn’t initialized by default, and the button’s state is just « off » when displayed, so it can’t work

Are you creating a GitHub issue?

It’s done!

1 Like

The bug is fixed in this PR: Scene: In device.set-value action, binary feature should default to 0 by Pierre-Gilles · Pull Request #1901 · GladysAssistant/Gladys · GitHub

I merged the PR, which will ship in the next version of Gladys :slight_smile:

Thanks for reporting the bug! :raised_hands:

2 Likes

Live fix in Gladys Assistant 4.29:

1 Like