I have mine set to send a notification to my iPhone. You will have to adjust yours accordingly.
Basically I used the poll state to set how often I want to check the state of the garage.
The current state then sets the proper “payload”. Open or Closed. If the state is closed to flow is halted.
Then you set which times you want the flow to be active. And add your preferred notification service.
You can import the flow below into node red using the hamburger icon, import, clipboard.
[
{
"id": "48a5b8.0d208a48",
"type": "api-call-service",
"z": "38ba64c4.52010c",
"name": "Notify iPhone",
"server": "6882cc0e.116284",
"service_domain": "notify",
"service": "ios_iphone",
"data": "{}",
"mergecontext": "",
"x": 1140,
"y": 600,
"wires": [
[]
]
},
{
"id": "75978159.6ad6f",
"type": "function",
"z": "38ba64c4.52010c",
"name": "Data",
"func": "msg.payload = \n{\n \"data\": \n {\n \"message\": \"Garage Open\",\n \"data\": \n {\n \"push\": \n {\n \"badge\": 5,\n \"category\": \"garage\"\n },\n }\n }\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 830,
"y": 600,
"wires": [
[
"48a5b8.0d208a48"
]
]
},
{
"id": "55f844f3.4c2e4c",
"type": "api-current-state",
"z": "38ba64c4.52010c",
"name": "Garage Door",
"server": "6882cc0e.116284",
"halt_if": "closed",
"override_topic": true,
"override_payload": true,
"entity_id": "cover.garage",
"x": 350,
"y": 600,
"wires": [
[
"713b399f.437ed8"
]
]
},
{
"id": "7a022668.b6cb48",
"type": "poll-state",
"z": "38ba64c4.52010c",
"name": "Poll Garage Door",
"server": "6882cc0e.116284",
"updateinterval": "900",
"outputinitially": false,
"outputonchanged": false,
"entity_id": "cover.garage",
"x": 120,
"y": 600,
"wires": [
[
"55f844f3.4c2e4c"
]
]
},
{
"id": "713b399f.437ed8",
"type": "time-range-switch",
"z": "38ba64c4.52010c",
"name": "9:30PM-5AM",
"lat": "53.63279",
"lon": "-113.60596",
"startTime": "21:30",
"endTime": "05:00",
"startOffset": 0,
"endOffset": 0,
"x": 650,
"y": 600,
"wires": [
[
"75978159.6ad6f"
],
[]
]
},
{
"id": "6882cc0e.116284",
"type": "server",
"z": "",
"name": "Home Assistant",
"url": "http://hassio/homeassistant",
"pass": "xxxxxxx"
}
]