I have a (for me) difficult task. I would like to receive a notification (how to send a notification after a trigger is known) when the conditions in the title are met. Unformtunately I really dont know how to start. I know how to create a template from a state. The state is “start_time” and the format is ‘2020-01-18 19:45:00’. Another state is “message” and the state is ‘call meeting office MT’.
So I can make two sensors: First is with start time (how get I rid of date) and second is message. But then… How can I make the condition meeting within 2h set to true?
This are the states from the google calendar. But another meetings has another message. So the message text should contain “meeting” AND time should be within two ours of the starting time. And another sensor should say traveltime more than >2 hours.