This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

flow that checks for open doors/windows

Hi All,

I was wondering what would be the most simple flow(s) to let homey check if all windows/doors are closed and report every single open window/door which is still open (in 1 string?) so I can use this string for speech (or for a push message).

I would like this to use in a flow like :
> Ok Homey, goodbye, I'm leaving.
< Goodbye <name>, have a nice day, please don't forget to close window kitchen, window bathroom, door garage.

or when everything is closed.
> Ok Homey, goodbye, I'm leaving.
< Goodbye <name>, have a nice day, all doors and windows are closed.

I'm scratching my head what would be the best way to approach this without a zillion (nested) flows.

thanks!

Comments

  • @blusser , how you want it i don't know but this is how i have it:

    1- WHEN this flow is started "contact status" THEN start a flow "groundfloor" AND THEN  start a flow "firstfloor" AND THEN start a flow "second floor"

    2-
    WHEN this flow started "groundfloor" AND frontdoor contact is off AND contact backdoor is off  AND contact kitchen window is off THEN ....  ELSE THEN send message "there is a window or door open on the ground floor"

    3 - WHEN this flow started "firstfloor" AND window masterbedroom contact is off AND demi's window contact is off  THEN ......ELSE THEN send message "there is a window open on the firstfloor"

    4- 
    WHEN this flow started "secondfloor" AND window 1 contact is off AND window 2 contact is  off  THEN ....  ELSE THEN send message "there is a window open on the secondfloor"


    to start flow 1 for example:

    WHEN it starts raining THEN start a flow "contact status"
    or
    WHEN you  leave THEN start a flow "contact status
    etc...

  • @glijie, thanks for you version. I was already researching into that direction but I didn’t got it right and found it a bit complex.
    But since nobody else has a simpler solution, it seems to be the way to go.
    I’ll try to build it like your example

    thanks!

    Blusser
Sign In or Register to comment.