So just to make clear that I understand this correctly. You want to write a function that combines a check for two things:
1st is it day or night?
2nd is somebody home or not?
Both informations come from different sources.
If I understood it right my next question is do you want to save this state somewhere or do you want to root other messages base on the properties above and is home/away also a boolean?
1 Like