Continue block only if < a decimal

Hello, is it normal that one cannot put a « , » or « . » in the « value » field?

I wanted to create a scene to turn off the outlet at my desk when the current is less than 0.15.
But I can’t?
Is there a workaround?

What I’m doing is this
![Screenshot_20220809-075922_Chrome|203x500](upload://3q42mCeT

Hi!
It is not possible to use a decimal value at the moment (maybe submit a feature request?).
I had a similar issue with the room temperature.
In your case, can’t you use power instead of current?
Indeed, 0.15 A corresponds to about 330 W if you’re on 220 V (P=U*I)

Indeed we only handle integers at the moment, but it shouldn’t be a problem to support decimals, I’d welcome a feature request (or a GitHub issue — in this case it’s not really a feature ^^ )

Done Use of decimals in the "continue only if" block · Issue #1585 · GladysAssistant/Gladys · GitHub

2 Likes

For your information, it is now possible to use decimal numbers in the « continue only if » block in scenes since Gladys v4.15 :slight_smile:

I’m closing this thread.

1 Like