Access to all sensor values over time

Hello!

So I’ve been working all day on the subject, and I have 3 proposals to address the different issues :slight_smile:

I’m responding here because it’s a topic where we talk about scenes, but it has nothing to do with the title of the topic. Once we agree, we can rename the development.

The Problem

I started from the different needs, without thinking about the product, just the final need:

  • Be able to turn off the light in a room if there is no movement for XX minutes
  • Be able to receive an alert if the fridge temperature drops below 10°C for at least 1 hour.
  • Be able in a scene to execute actions only if the sun is in the state of rising/setting/before sunrise minus 10 minutes, after sunset plus 30 minutes, etc..
  • Be able to execute a scene (or part of a scene) according to a time condition. Example: if it is before 12 p.m./after 2 p.m./between 12 p.m. and 2 p.m./on Tuesday, Wednesday and Thursday between 7 a.m. and 8 a.m./and many others.

Based on this specification, I dug a bit into how we could have this in Gladys.

I quite liked what home assistant did on the « maintain a condition for XX minutes » part, and I went for a solution close to theirs for this part.

After that, I still have some questions (marked on the document), not everything is clear on the functional side.

The mockups (with explanations) are available here: New scenes triggers/conditions/actions

Also available as image export below:

What do you think?

@lmilcent In the end, it’s very different from your proposal :stuck_out_tongue: Sorry, to save time I went with what I saw, and then we can indeed see what best addresses the issues.

Note: If you have cases that are not well covered by my proposal, feel free to bounce back on them :slight_smile: I’m talking about practical and concrete cases at your place, we’re really in practice here, not in theory.