Scene on a user's return

Hello,

I created a scene with a trigger on:

  • A user’s return
  • The house was empty before

But in the end, it’s an OR, so it doesn’t suit me, because depending on who comes in, I don’t do the same thing, and here in the end, the 2 scenes are triggered at the same time regardless of the user.

Is there a way to manage this?

I wanted to try by retrieving the status of the Bluetooth device associated with each one, but I’m not sure if there is a corresponding value.

We have a trigger designed for this purpose, it’s called « Home is no longer empty »

This trigger will activate when any user of the house returns and is the first to do so (the house was empty before)

Does that meet your need, I think?

We also have the opposite trigger, « Home is empty », which activates when the last user leaves the house!

That’s the one I use, but I want to distinguish based on which user enters the house.

But as this seems to be an OR, but 2 scenes are triggered simultaneously.

It’s indeed an « OR ». For you to have an « AND », there would need to be a condition within the scene « User XX is at home ». We don’t have that at the moment :slight_smile:

Could you make a feature request on the forum?

I voted on this feature:

I think that the « AND » responds to this need in a simpler way, rather than creating a trigger « The house is no longer empty » and then adding a condition further down.
It would be better to allow an « AND ».

However, the development might be more complex?

This development will not take place in the form described as discussed in the post.

An « AND » in the triggers does not make sense, because two triggers cannot be triggered at the same time (I am talking from a « functional/philosophical/theoretical » point of view), it is physically impossible.

I don’t know if the distinction between trigger and condition is clear? Do you see what I mean? ^^

What can be done, however, is a trigger + a condition in the scene.

In your case, you just need the condition « Continue if user XX is at home/is not at home » :slight_smile: Are you making a feature request?

Okay, I understand, it doesn’t make functional sense.
I’m making a request :slight_smile:
I might be able to try doing the development, but I’m struggling with writing tests right now :frowning: .. well, I lack time to improve my skills in this area ^^

Thanks :slight_smile:

Oh? Don’t hesitate if you have specific questions, tests are really simple, not more complicated than writing the code :slight_smile: We can even call each other if you want to look at it live