Bug with the time condition 23H00 to 6H00

I created a time condition between 23H and 6H, and it turns out that at 23:30, the condition did not want to execute. So I replaced 6H with 23H59, and now the condition works.

To summarize, the condition does not work when you put a smaller value on the right than on the left, see image. To fix the problem, I had to create 2 scenes, one with the condition 23H00 to 23H59 and another with the condition 00h00 to 6h00.

Thank you,

Best regards,

It’s not a bug, your condition is always false.

The interval you chose covers a 24-hour day starting at 00:00 and ending at 23:59.

To do it correctly, you need 2 conditions:

  • before 6 AM (i.e., from 00:00 to 6:00)
  • or after 11 PM (i.e., from 11:00 PM to 11:59 PM)

Hope I’ve been clear. :wink:

@pierre-gilles do you see a way to warn the user in the UI if the condition is always true/false?

From my perspective 23H to 6H if it’s 23:30 we are between the two so the condition is true.

PK I think it’s a bug, because already I am an automation engineer and it’s the first time I see this condition not working.

Secondly, before I used the Aquara application to configure my devices and this condition did not bother it. It automatically detected that 23H to 6H00 was a condition with a day change.

Automatically it added (next day) next to the 6H00 it therefore detected a day change in the schedule.

Here is the comment of the why.

This is not a bug, but indeed the intended behavior. It’s an « AND Â» that we have developed, and you are describing an « OR Â», which is not developed in Gladys.

We are aware of this lack, and it’s a development that is requested by other users.

I explained in this topic what happens:

https://community.gladysassistant.com/t/personalisation-de-profils-pour-utisateur-appareil-et-scenes/6759/21?u=pierre-gilles

@VonOx we don’t have OR :slight_smile: He won’t be able to do it, the OR is missing, it’s a development requested by many people.

Yes, I understand that it is not yet developed.

How could I know?

Still, I don’t fully understand the programming logic.

I mean, to achieve what I want to do, I had to create at least 8 scenes.

On the other hand, with an « if Â», « else Â» with an action for each condition would, in my opinion, be more logical.

See image « robot programming logic Â»

Having the possibility to integrate actions in the « if Â» and if this is not valid, moving to the next line would simplify this part, in my opinion.

Adding to this, having variables usable between scenes and to which we could assign the value we want at any time would make our programs very flexible.

But I don’t know everything, maybe you are already developing something like that. :grinning:

In any case, here it is, thank you for the explanations. :slightly_smiling_face:

Yes I knew we had talked but didn’t find the feature request (I’m on mobile) my bad.

That’s why heating management is a subject in its own right.

You couldn’t have known :slight_smile: I invite you to follow the feature request, as soon as it is developed you will receive a notification like that!

Indeed, as @VonOx said, heating management is a standalone development that will be developed precisely so that it is not necessary to create such complex scenes.

You can vote for the feature if you’re interested:

For your information, this is fixed in Gladys v4.7.3, which will be automatically available in the next 24 hours for you :wink:

Wow cool, I’m going to try it out

Hello,
I just tested it and it works perfectly on Chrome.
I set a time condition between 5 PM and 5 AM with the action to turn off the heating, and it turned off at 5:25 PM.
It’s perfect

Thanks a lot :smiley: