Node Red Heater Kids Room

 avatar
unknown
plain_text
2 years ago
12 kB
17
No Index
[
    {
        "id": "c630e6d996718f72",
        "type": "api-call-service",
        "z": "59bbe7e4.6f8678",
        "name": "Turn on Annbel Room Heater",
        "server": "2e31528c.f3973e",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_on",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.annabel_room_heater"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1420,
        "y": 120,
        "wires": [
            [
                "6588484925904fec"
            ]
        ]
    },
    {
        "id": "6588484925904fec",
        "type": "stoptimer",
        "z": "59bbe7e4.6f8678",
        "duration": "30",
        "units": "Minute",
        "payloadtype": "num",
        "payloadval": "0",
        "name": "30 min timer",
        "x": 1630,
        "y": 120,
        "wires": [
            [
                "b3a1b7bea958aec5"
            ],
            []
        ]
    },
    {
        "id": "c9936a3e552fa6da",
        "type": "delay",
        "z": "59bbe7e4.6f8678",
        "name": "Limit to 1 message every 31 min",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "31",
        "rateUnits": "minute",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": true,
        "allowrate": false,
        "outputs": 1,
        "x": 1130,
        "y": 120,
        "wires": [
            [
                "c630e6d996718f72"
            ]
        ]
    },
    {
        "id": "b3a1b7bea958aec5",
        "type": "api-call-service",
        "z": "59bbe7e4.6f8678",
        "name": "Turn Off Annabel Room Heater",
        "server": "2e31528c.f3973e",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.annabel_room_heater"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1850,
        "y": 120,
        "wires": [
            []
        ]
    },
    {
        "id": "3e0f8f4a44527c32",
        "type": "inject",
        "z": "59bbe7e4.6f8678",
        "name": "Check 3 minutes",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "180",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 130,
        "y": 120,
        "wires": [
            [
                "ce131b48da3f80ba"
            ]
        ]
    },
    {
        "id": "29c8d8aec8bf18df",
        "type": "api-current-state",
        "z": "59bbe7e4.6f8678",
        "name": "Check input Annabel Room Heater Helper",
        "server": "2e31528c.f3973e",
        "version": 3,
        "outputs": 2,
        "halt_if": "$entities(\"sensor.annabel_room_temperature\").state",
        "halt_if_type": "jsonata",
        "halt_if_compare": "gt",
        "entity_id": "input_number.annbel_heater",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": 0,
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 820,
        "y": 120,
        "wires": [
            [
                "c9936a3e552fa6da"
            ],
            []
        ]
    },
    {
        "id": "9a38246af3a91bda",
        "type": "time-range-switch",
        "z": "59bbe7e4.6f8678",
        "name": "",
        "lat": "35.717300",
        "lon": "-78.894638",
        "startTime": "20:30",
        "endTime": "07:00",
        "startOffset": 0,
        "endOffset": "0",
        "x": 530,
        "y": 120,
        "wires": [
            [
                "29c8d8aec8bf18df",
                "60e8f360abdf6840"
            ],
            []
        ]
    },
    {
        "id": "a1d86cf4d2b4daf2",
        "type": "api-call-service",
        "z": "59bbe7e4.6f8678",
        "name": "Turn on Declan Room Heater",
        "server": "2e31528c.f3973e",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_on",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.declan_room_heater"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1420,
        "y": 180,
        "wires": [
            [
                "ca5ab77bd81cfd1f"
            ]
        ]
    },
    {
        "id": "ca5ab77bd81cfd1f",
        "type": "stoptimer",
        "z": "59bbe7e4.6f8678",
        "duration": "30",
        "units": "Minute",
        "payloadtype": "num",
        "payloadval": "0",
        "name": "30 min timer",
        "x": 1630,
        "y": 180,
        "wires": [
            [
                "ec23a397309d826f"
            ],
            []
        ]
    },
    {
        "id": "19abaeb504f83c84",
        "type": "delay",
        "z": "59bbe7e4.6f8678",
        "name": "Limit to 1 message every 31 min",
        "pauseType": "rate",
        "timeout": "5",
        "timeoutUnits": "seconds",
        "rate": "1",
        "nbRateUnits": "31",
        "rateUnits": "minute",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": true,
        "allowrate": false,
        "outputs": 1,
        "x": 1130,
        "y": 180,
        "wires": [
            [
                "a1d86cf4d2b4daf2"
            ]
        ]
    },
    {
        "id": "ec23a397309d826f",
        "type": "api-call-service",
        "z": "59bbe7e4.6f8678",
        "name": "Turn Off Declan Room Heater",
        "server": "2e31528c.f3973e",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.declan_room_heater"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 1850,
        "y": 180,
        "wires": [
            []
        ]
    },
    {
        "id": "60e8f360abdf6840",
        "type": "api-current-state",
        "z": "59bbe7e4.6f8678",
        "name": "Check input Declan Room Heater Helper",
        "server": "2e31528c.f3973e",
        "version": 3,
        "outputs": 2,
        "halt_if": "$entities(\"sensor.declan_room_temperature\").state",
        "halt_if_type": "jsonata",
        "halt_if_compare": "gt",
        "entity_id": "input_number.declan_heater",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": 0,
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 820,
        "y": 180,
        "wires": [
            [
                "19abaeb504f83c84"
            ],
            []
        ]
    },
    {
        "id": "b1e14394d1bfb80a",
        "type": "inject",
        "z": "59bbe7e4.6f8678",
        "name": "Shut off in morning",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "40 07 * * *",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 320,
        "wires": [
            [
                "39702eb827d802a8"
            ]
        ]
    },
    {
        "id": "39702eb827d802a8",
        "type": "api-call-service",
        "z": "59bbe7e4.6f8678",
        "name": "Turn Off Both Heaters",
        "server": "2e31528c.f3973e",
        "version": 5,
        "debugenabled": false,
        "domain": "switch",
        "service": "turn_off",
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "switch.annabel_room_heater",
            "switch.declan_room_heater"
        ],
        "data": "",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "x": 420,
        "y": 320,
        "wires": [
            []
        ]
    },
    {
        "id": "ce131b48da3f80ba",
        "type": "api-current-state",
        "z": "59bbe7e4.6f8678",
        "name": "Vacation Mode on?",
        "server": "2e31528c.f3973e",
        "version": 3,
        "outputs": 2,
        "halt_if": "off",
        "halt_if_type": "str",
        "halt_if_compare": "is",
        "entity_id": "input_boolean.vacation_mode",
        "state_type": "str",
        "blockInputOverrides": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "entity"
            }
        ],
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "override_topic": false,
        "state_location": "payload",
        "override_payload": "msg",
        "entity_location": "data",
        "override_data": "msg",
        "x": 330,
        "y": 120,
        "wires": [
            [
                "9a38246af3a91bda"
            ],
            []
        ]
    },
    {
        "id": "f01658af9fc91ed7",
        "type": "comment",
        "z": "59bbe7e4.6f8678",
        "name": "Make sure all the heaters are off in the AM",
        "info": "",
        "x": 200,
        "y": 260,
        "wires": []
    },
    {
        "id": "2e31528c.f3973e",
        "type": "server",
        "name": "Home Assistant",
        "version": 5,
        "addon": true,
        "rejectUnauthorizedCerts": true,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": "30",
        "areaSelector": "friendlyName",
        "deviceSelector": "friendlyName",
        "entitySelector": "friendlyName",
        "statusSeparator": "at: ",
        "statusYear": "hidden",
        "statusMonth": "short",
        "statusDay": "numeric",
        "statusHourCycle": "h23",
        "statusTimeFormat": "h:m",
        "enableGlobalContextStore": true
    }
]
Editor is loading...
Leave a Comment