UNPKG

node-red-contrib-power-saver

Version:

A module for Node-RED that you can use to turn on and off a switch based on power prices

121 lines (120 loc) 2.73 kB
[ { "id": "a621e21fe99857ef", "type": "inject", "z": "7b33d8ec8339db62", "name": "House", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "{viewer{home(id:\"12345678-abcd-4df4-ba6d-654321a987ab\"){currentSubscription{priceInfo(resolution:QUARTER_HOURLY){today{totalenergytaxstartsAt}tomorrow{totalenergytaxstartsAt}}}}}}", "payloadType": "str", "x": 70, "y": 100, "wires": [["2b55670453ea3277"]] }, { "id": "2b55670453ea3277", "type": "tibber-query", "z": "7b33d8ec8339db62", "name": "Get prices", "active": true, "apiEndpointRef": "0b8e6a120837e93c", "x": 210, "y": 100, "wires": [["7eeb5593b6da21f1"]] }, { "id": "027b09b451ef7b59", "type": "ps-general-add-tariff", "z": "7b33d8ec8339db62", "name": "Add General Tariff", "periods": [ { "start": "22", "value": 0.23 }, { "start": "06", "value": 0.45 } ], "validFrom": "", "validTo": "", "x": 570, "y": 100, "wires": [["c65dfd3ad3f7b10d"]], "days": { "Mon": true, "Tue": true, "Wed": true, "Thu": true, "Fri": true, "Sat": true, "Sun": true } }, { "id": "7eeb5593b6da21f1", "type": "ps-receive-price", "z": "7b33d8ec8339db62", "name": "Price Receiver", "x": 380, "y": 100, "wires": [["027b09b451ef7b59"]] }, { "id": "c65dfd3ad3f7b10d", "type": "ps-strategy-lowest-price", "z": "7b33d8ec8339db62", "name": "Lowest Price", "doNotSplit": "false", "sendCurrentValueWhenRescheduling": true, "outputIfNoSchedule": "true", "outputOutsidePeriod": "false", "x": 750, "y": 100, "wires": [[], [], ["9eb381b935ec987c"]], "fromHour": "00", "fromMinute": "00", "toHour": "00", "toMinute": "00", "minutesOn": "720", "maxPrice": null, "outputValueForOn": true, "outputValueForOff": false, "outputValueForOntype": "bool", "outputValueForOfftype": "bool", "contextStorage": "default" }, { "id": "9eb381b935ec987c", "type": "debug", "z": "7b33d8ec8339db62", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 960, "y": 120, "wires": [] }, { "id": "0b8e6a120837e93c", "type": "tibber-api-endpoint", "feedUrl": "wss://api.tibber.com/v1-beta/gql/subscriptions", "queryUrl": "https://api.tibber.com/v1-beta/gql", "name": "Tibber prices" } ]