Mała prośba w kodzie

Witam,
próbóje ustawić w Nodie aby klima załaczała sie gdy zużycie poniżej 1000W oraz temeratura pomieszczenia jest mniejsza niz 10 stopni o to mój kod

[
    {
        "id": "daa11c0fc1a5ca1f",
        "type": "api-call-service",
        "z": "dd8006442c3b3755",
        "name": "Włącz Climate i ustaw na grzanie",
        "server": "fc5a30fe.4d318",
        "version": 7,
        "debugenabled": false,
        "action": "",
        "floorId": [],
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "climate.502cc6f77acf"
        ],
        "labelId": [],
        "data": "{\"hvac_mode\":\"heat\"}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "blockInputOverrides": false,
        "domain": "climate",
        "service": "set_hvac_mode",
        "output_location": "",
        "output_location_type": "none",
        "x": 580,
        "y": 160,
        "wires": [
            [
                "c8c0d26cee21b1f8"
            ]
        ]
    },
    {
        "id": "c8c0d26cee21b1f8",
        "type": "api-call-service",
        "z": "dd8006442c3b3755",
        "name": "Ustaw temperaturę na 25°C",
        "server": "fc5a30fe.4d318",
        "version": 7,
        "debugenabled": false,
        "action": "",
        "floorId": [],
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "climate.502cc6f77acf"
        ],
        "labelId": [],
        "data": "{\"temperature\":25}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "blockInputOverrides": false,
        "domain": "climate",
        "service": "set_temperature",
        "output_location": "",
        "output_location_type": "none",
        "x": 920,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "5c5d05a51dbb7104",
        "type": "api-current-state",
        "z": "dd8006442c3b3755",
        "name": "Sprawdź ENERGY Total_Power",
        "server": "fc5a30fe.4d318",
        "version": 3,
        "outputs": 2,
        "halt_if": "1000",
        "halt_if_type": "num",
        "halt_if_compare": "lt",
        "entity_id": "sensor.energy_energy_total_power",
        "state_type": "num",
        "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": 190,
        "y": 140,
        "wires": [
            [
                "51a6fc23ee7c3bfa",
                "7754a0d978abc106"
            ],
            []
        ]
    },
    {
        "id": "51a6fc23ee7c3bfa",
        "type": "api-current-state",
        "z": "dd8006442c3b3755",
        "name": "Sprawdz temperarure",
        "server": "fc5a30fe.4d318",
        "version": 3,
        "outputs": 2,
        "halt_if": "10",
        "halt_if_type": "num",
        "halt_if_compare": "lt",
        "entity_id": "sensor.wemos_garaz_temperatury_temperatura_w_garazu",
        "state_type": "num",
        "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": 520,
        "y": 260,
        "wires": [
            [
                "daa11c0fc1a5ca1f"
            ],
            []
        ]
    },
    {
        "id": "9cf938260c15891d",
        "type": "api-current-state",
        "z": "dd8006442c3b3755",
        "name": "Sprawdź temperaturę dla wyłączenia",
        "server": "fc5a30fe.4d318",
        "version": 3,
        "outputs": 2,
        "halt_if": "20",
        "halt_if_type": "num",
        "halt_if_compare": "gte",
        "entity_id": "sensor.wemos_garaz_temperatury_temperatura_w_garazu",
        "state_type": "num",
        "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": 190,
        "y": 340,
        "wires": [
            [
                "7754a0d978abc106"
            ],
            []
        ]
    },
    {
        "id": "7754a0d978abc106",
        "type": "api-call-service",
        "z": "dd8006442c3b3755",
        "name": "Wyłacz Klime",
        "server": "fc5a30fe.4d318",
        "version": 7,
        "debugenabled": false,
        "action": "climate.turn_off",
        "floorId": [],
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "climate.502cc6f77acf"
        ],
        "labelId": [],
        "data": "",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "queue": "none",
        "blockInputOverrides": true,
        "domain": "climate",
        "service": "turn_off",
        "x": 520,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "fc5a30fe.4d318",
        "type": "server",
        "name": "Home Assistant",
        "addon": true
    }
]

Zacznij jeszcze raz w dziale Node Red . Generalnie to co sobie wymyśliłeś nawet się nie rozpocznie. Pierwszy node w procesie nie może być current state, a nawet gdyby się zaczęło sprawdzanie tego czujnika Total Power, to proces zostanie skierowany jednocześnie do sprawdź temperaturę i do wyłącz klimę.
Zacznij od czegoś prostego np włącz klimę gdy power < 1000W , jak to zadziała dokładaj kolejne warunki.

[
    {
        "id": "de7f0501904cafa8",
        "type": "server-state-changed",
        "z": "6f22821b7dd59e36",
        "name": "Monitoruj energia czynną",
        "server": "fc5a30fe.4d318",
        "version": 6,
        "outputs": 1,
        "exposeAsEntityConfig": "",
        "entities": {
            "entity": [
                "sensor.energy_energy_total_power"
            ],
            "substring": [],
            "regex": []
        },
        "outputInitially": false,
        "stateType": "num",
        "ifState": "",
        "ifStateType": "str",
        "outputOnlyOnStateChange": true,
        "for": "",
        "forType": "num",
        "ignorePrevStateNull": false,
        "ignorePrevStateUnknown": false,
        "ignorePrevStateUnavailable": false,
        "ignoreCurrentStateUnknown": false,
        "ignoreCurrentStateUnavailable": false,
        "outputProperties": [],
        "x": 110,
        "y": 140,
        "wires": [
            [
                "21dd6446c5fdc870"
            ]
        ]
    },
    {
        "id": "5c7474786aba1663",
        "type": "switch",
        "z": "6f22821b7dd59e36",
        "name": "Sprawdź energię <= -2000",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "-2000",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 480,
        "y": 120,
        "wires": [
            [
                "23fdea31853a0562"
            ]
        ]
    },
    {
        "id": "f0a52132238f75f6",
        "type": "server-state-changed",
        "z": "6f22821b7dd59e36",
        "name": "Monitoruj temperaturę w garażu",
        "server": "fc5a30fe.4d318",
        "version": 6,
        "outputs": 1,
        "exposeAsEntityConfig": "",
        "entities": {
            "entity": [
                "sensor.dh11_garaz_temperatura_w_gara_u"
            ],
            "substring": [],
            "regex": []
        },
        "outputInitially": false,
        "stateType": "num",
        "ifState": "",
        "ifStateType": "str",
        "outputOnlyOnStateChange": true,
        "for": "",
        "forType": "num",
        "ignorePrevStateNull": false,
        "ignorePrevStateUnknown": false,
        "ignorePrevStateUnavailable": false,
        "ignoreCurrentStateUnknown": false,
        "ignoreCurrentStateUnavailable": false,
        "outputProperties": [],
        "x": 130,
        "y": 400,
        "wires": [
            [
                "21dd6446c5fdc870"
            ]
        ]
    },
    {
        "id": "c6b0e55d10c1e0d0",
        "type": "switch",
        "z": "6f22821b7dd59e36",
        "name": "Sprawdź temperaturę <= 10",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "lte",
                "v": "10",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 480,
        "y": 300,
        "wires": [
            [
                "23fdea31853a0562"
            ]
        ]
    },
    {
        "id": "23fdea31853a0562",
        "type": "join",
        "z": "6f22821b7dd59e36",
        "name": "Połącz warunki",
        "mode": "and",
        "build": "object",
        "property": "payload",
        "propertyType": "msg",
        "key": "topic",
        "joiner": ",",
        "timeout": "1",
        "count": "2",
        "x": 640,
        "y": 220,
        "wires": [
            [
                "9e5c70476881e474"
            ]
        ]
    },
    {
        "id": "21dd6446c5fdc870",
        "type": "trigger",
        "z": "6f22821b7dd59e36",
        "name": "",
        "op1": "1",
        "op2": "0",
        "op1type": "str",
        "op2type": "str",
        "duration": "30",
        "extend": false,
        "overrideDelay": false,
        "units": "min",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 270,
        "y": 240,
        "wires": [
            [
                "c6b0e55d10c1e0d0",
                "5c7474786aba1663"
            ]
        ]
    },
    {
        "id": "9e5c70476881e474",
        "type": "api-call-service",
        "z": "6f22821b7dd59e36",
        "name": "Włącz klime",
        "server": "8f21b206.449a88",
        "version": 7,
        "debugenabled": false,
        "action": "climate.turn_on",
        "floorId": [],
        "areaId": [],
        "deviceId": [],
        "entityId": [
            "climate.502cc6f77acf"
        ],
        "labelId": [],
        "data": "25",
        "dataType": "jsonata",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "blockInputOverrides": false,
        "domain": "climate",
        "service": "turn_on",
        "output_location": "",
        "output_location_type": "none",
        "x": 830,
        "y": 160,
        "wires": [
            [
                "9c05f25d81c0d2c8"
            ]
        ]
    },
    {
        "id": "9c05f25d81c0d2c8",
        "type": "api-call-service",
        "z": "6f22821b7dd59e36",
        "name": "Ustaw temperaturę",
        "server": "8f21b206.449a88",
        "version": 7,
        "debugenabled": false,
        "action": "climate.set_temperature",
        "floorId": [],
        "areaId": [],
        "deviceId": [
            "6f7fe11638bcd6d54ff5af71e4f3aa4b"
        ],
        "entityId": [],
        "labelId": [],
        "data": "{\"entity_id\":\"climate.502cc6f77acf\",\"temperature\":25}",
        "dataType": "json",
        "mergeContext": "",
        "mustacheAltTags": false,
        "outputProperties": [],
        "blockInputOverrides": false,
        "domain": "climate",
        "service": "set_temperature",
        "output_location": "",
        "output_location_type": "none",
        "x": 1030,
        "y": 160,
        "wires": [
            []
        ]
    },
    {
        "id": "fc5a30fe.4d318",
        "type": "server",
        "name": "Home Assistant",
        "addon": true
    },
    {
        "id": "8f21b206.449a88",
        "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
    }
]