AWTRIX Power Schedule
Node-RED

AWTRIX Power Schedule

Uses node-RED to power up the clock in the morning and power down in the evening.
A flow by Elias

Download flow

Flow Details

Uses HTTP requests to the clock to power the clock up/down.

  • The AWTRIX IP needs to be set through the environment variable.
  • The power up/down times can be changed inside of the flow
[ { "id": "0af138c02a817f4d", "type": "tab", "label": "AWTRIC Power Schedule", "disabled": false, "info": "", "env": [ { "name": "AWTRIX_IP", "value": "192.168.0.98", "type": "str" } ] }, { "id": "492b8a8feabc6a31", "type": "http request", "z": "0af138c02a817f4d", "name": "Power up", "method": "POST", "ret": "txt", "paytoqs": "ignore", "url": "", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": true, "headers": [ { "keyType": "other", "keyValue": "ContentType", "valueType": "other", "valueValue": "raw" } ], "x": 620, "y": 400, "wires": [ [] ] }, { "id": "67165c4287877f8d", "type": "inject", "z": "0af138c02a817f4d", "name": "Morning Trigger", "props": [ { "p": "payload" }, { "p": "url", "v": "AWTRIX_IP", "vt": "global" } ], "repeat": "", "crontab": "00 06 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"power\": true}", "payloadType": "str", "x": 230, "y": 400, "wires": [ [ "59941d49c7ee6b4f" ] ] }, { "id": "14f1d17d156fd888", "type": "http request", "z": "0af138c02a817f4d", "name": "Power down", "method": "POST", "ret": "txt", "paytoqs": "ignore", "url": "", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": true, "headers": [ { "keyType": "other", "keyValue": "ContentType", "valueType": "other", "valueValue": "raw" } ], "x": 630, "y": 560, "wires": [ [] ] }, { "id": "e96da971626c4e18", "type": "inject", "z": "0af138c02a817f4d", "name": "Evening Trigger", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "00 22 * * *", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{\"power\": false}", "payloadType": "str", "x": 220, "y": 560, "wires": [ [ "077e098f737dc41e" ] ] }, { "id": "077e098f737dc41e", "type": "function", "z": "0af138c02a817f4d", "name": "Construct URL", "func": "msg.url = \"http://\" + env.get(\"AWTRIX_IP\") + \"/api/power\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 420, "y": 560, "wires": [ [ "14f1d17d156fd888" ] ] }, { "id": "59941d49c7ee6b4f", "type": "function", "z": "0af138c02a817f4d", "name": "Construct URL", "func": "msg.url = \"http://\" + env.get(\"AWTRIX_IP\") + \"/api/power\";\n\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 440, "y": 400, "wires": [ [ "492b8a8feabc6a31" ] ] } ]
-- Flow first published on September 23, 2025.