[APP][Pro] Mood State

I’ve seen a few people asking about, and posting feature requests for, stateful moods. So that they are not only entities that set a collection of lights in a given state when triggered, but also allow for testing if a mood is active. What does it mean if a mood is active? The most reasonable interpretation in my opinion is that a mood is active if all the light devices it controls are in the state that the mood sets them in. Whether they are put into that state by the mood itself, or if they are put into that state manually or through a flow or anything else, if the lights match the mood the mood is considered active.

This isn’t very difficult to implement through an app, but it does require the usage of the web api, which adds the permission of full control of your Homey to the app store description. The source code is public and linked from the app store if you want to see that it doesn’t do anything harmful.

There is no need to add a device. Just install the app, and you get a new flow card for checking if a mood is active.

Feel free to use this thread or github issues to report any problems. The app is only available in testing for now.

5 Likes

Nice, thanks!
I personally wanted this feature for a while, even opened a request topic for it a while back

This is excellent and exactly what I was seeking. Many thanks for this initiative!

Unfortunately, I cannot seem to get it to work. I have set up a simple flow where a single trigger should enable either “all lights on” or “all lights off” moods, depending on whether “all lights on” mood is currently active. However, the condition always shows the mood as inactive, even immediately after being activated by that same flow.

Ok, that’s interesting. Hard to say what’s wrong from the description alone, but there are some edge cases that could make it return as inactive for perhaps surprising reasons. For instance if one of the devices included in the mood is inactive, offline, removed or unavailable somehow. Is it possible that this could be the case for you?

Hi, could you maybe add the room as well? - there are many moods with the same name, it would be useful if we could see which room is which on the card

1 Like

Good idea. I don’t see a neat way of making it visible when the card is just sitting there statically, but I added the zone name as the autocomplete description, which makes it easier to pick the correct one when setting up the card. Should be there in version 0.0.5.