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.
Flows

Help needed: flow how to exclude one specific day

fkeyfkey Member
edited July 2018 in Questions & Help
please help:
I have a flow that I do NOT want to execute on the 31 December.

but I cant figure out how to do it (probably overlooking something).
(except for ugly solutions)
I looked in logic and in beter logic but cant seem to find it.

my flow looks like this:
trigger: time is 23:50
And: lights are on
Then: turn the lights off.

I cant find an option to add to the “And”column: NOT 31 December 

I did find:
NOT 31 December 2018, but I do not want to change the flow every year
NOT 31 & NOT December, does not work, today (31 july) my lights would stay on... (its the 31..)

ugly solutions:
** create 2 extra flows: trigger on 31 December Action: deactivate flow. and another one to activate it again on 1 January
** create a vriable “oldyear” and use that in the AND column

Thanks
Tagged:

Comments

  • TiyrellTiyrell Member
    edited August 2018
    You can use the default Time/date card
    Use the date is between...
    Fill in 31-12 31-12 and check the box upper right (thats the NOT checkbox)

    Should work tested it with today



  • JPeJPe Member
    Also possible: It is December AND it is 31 THEN (nothing) ELSE switch your lights on.
  • If Its only one date a year, you can make 1 flow that disables other flows in the morning of 31-12 and another flow that enables the flows at the end of 31-12.. That way the flows won't run the 31st.
  • If Its only one date a year, you can make 1 flow that disables other flows in the morning of 31-12 and another flow that enables the flows at the end of 31-12.. That way the flows won't run the 31st.
    That's part of his "ugly" solutions:

    fkey said:


    ugly solutions:
    ** create 2 extra flows: trigger on 31 December Action: deactivate flow. and another one to activate it again on 1 January

  • fkeyfkey Member
    @Tiyrell: thanks did not find that one. Not very logical, but if it works it works... ;-).
    at least it CAN be used in the AND column which keeps the flow logical to read
  • fkeyfkey Member
    Its working now.
    didnt know you could remove the year and still make it work..
    But how weird that this does work:

    But this does not work:

    (You can see the test tickoffs in the left top, tested on 02-08)
  • Good finding, that is worth a github bug issue if you have time. 
    I would expext and think the last one should also work.
  • fkeyfkey Member
    Just created my first github post :-)
    (hope I did it right..)
  • fkey said:
    Just created my first github post :-)
    (hope I did it right..)
    Great! We will see if they also see it as bug or call it a feature.....
Sign In or Register to comment.