Getting started with scenes

Hello,

now that my IKEA gear works with Gladys, I’m going to tackle automation.
Unfortunately, I can’t find a guide on how to get started.

Simple thing, I have several decades of experience in development but I don’t know how scenes work, it’s not intuitive for me.

Are we talking about a procedural operation where we start from the top and go to the bottom, or do we have a constantly active process with constant loops? (I’m old school :smiley: )

I’ll give you an example:

I have a program that I would like to apply to my cellar:

I want to manually trigger my scene

Scene:
Action 1: set the heating to Comfort

and as long as no inactivity of 2 hours has been detected, I want:

  • if the temperature exceeds 21° I put it on Eco
  • if the temperature drops below 19° I put it on Comfort

Action 2: set the heating to Frost Protection

so I would be interested in a link to a guide to get started properly

Thanks!

Hi @4get9, unfortunately I don’t have a link to help you, but you can check out some tutorials on the forum that integrate scenes to understand how they work.

Here’s an idea for an example for your scene that we could separate or not. I’m going with an « all in one » approach that will need to be tested and improved, of course. One thing to know is that there are no loops in Gladys yet, so we’ll have to work around that. I’m not taking into account the 2-hour tempo because I don’t know how to handle it right now, maybe in a second scene that will only manage that.

Triggers for the different actions
I see 4 (we’ll adjust the different actions later):

  • Heating in Comfort mode → single click of a button
  • If the temperature exceeds 21° → auto-trigger if temp > 21°C
  • If the temperature drops below 19° → auto-trigger if temp < 19°C
  • Heating in Frost Protection mode → double click of a button

    Of course, you’ll have a device (real or virtual) for your heating that manages the different « basic » states well:

Global Action
In my example below, don’t pay attention to the names (I didn’t replace them with « cellar »).

Comfort Action & temp > 21°C


For the heating mode values, I’m basing them on the Gladys code because we don’t have the direct « human » correspondence:

Comfort Action & temp < 19°C




On this block, you’ll need to be careful because we’re asking to switch to Comfort mode. Outside of this scene, it monitors the change in heating mode and triggers when we switch to Comfort mode, so we’ll inevitably re-trigger Comfort mode in a loop until the temp is >= 19°C. There may be safeguards to add as well.

Frost Protection Action



I don’t know if this already answers your questions, but this is how I would start, simple at first and then we add parameters.

To add an explanation about the inactivity period, you can use this very practical function:

The « Execute the scene after the condition has been valid for » checkbox allows you to wait for a specific time before triggering your inactivity action.

By the way, speaking of resources, I have recorded hours of videos on my personal installation that I present in the Gladys training: https://formation.gladysassistant.com/b/T6f3j

It’s €29.99, considering the time I spent on recording and editing, I think it’s really fair :slight_smile:

I’ll try to find some time to look into all of this

thanks!