hello, someone can say me what’s wrong on this flow?
nothing change or happens but I think there are not error.
[{
"id": "8031d4c08266bb88",
"type": "debug",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1370,
"y": 1000,
"wires": []
},
{
"id": "e12f27c8fa40d349",
"type": "api-call-service",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "Imposta nuova temperatura",
"server": "3fa08516.1d473a",
"version": 7,
"debugenabled": false,
"action": "climate.set_temperature",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{\n \"entity_id\": \"{{entity_id}}\",\n \"temperature\": \"{{temperature}}\"\n}\n",
"dataType": "jsonata",
"mergeContext": "false",
"mustacheAltTags": false,
"outputProperties": [],
"blockInputOverrides": false,
"domain": "climate",
"service": "set_temperature",
"output_location": "",
"output_location_type": "none",
"x": 1270,
"y": 940,
"wires": [
["8031d4c08266bb88"]
]
},
{
"id": "c8afbc1adc9e631d",
"type": "function",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "Aumenta temperatura termostati",
"func": "if (msg.thermostat_entity_ids) {\n msg.thermostat_entity_ids.forEach(thermostat => {\n node.send({\n payload: {\n domain: 'climate',\n service: 'set_temperature',\n data: {\n entity_id: thermostat,\n temperature: 1 // Aumenta di 1°C\n }\n }\n });\n });\n}\nreturn null;\n",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1000,
"y": 940,
"wires": [
["e12f27c8fa40d349"]
]
},
{
"id": "cbcc1c7d6df6bb70",
"type": "function",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "Verifica temperatura esterna",
"func": "if (msg.payload > 0) {\n // Aggiungi gli ID dei termostati da controllare\n msg.thermostat_entity_ids = [\n 'climate.shellywalldisplay_000822fd344f_thermostat_0',\n 'climate.shellywalldisplay_000822835122_thermostat_0'\n ];\n return msg;\n} else {\n return null; // Interrompe il flusso se la temperatura esterna è <= 0°C\n}\n",
"outputs": 1,
"timeout": "",
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 710,
"y": 940,
"wires": [
["c8afbc1adc9e631d"]
]
},
{
"id": "e0066da28ca527c6",
"type": "api-current-state",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "Stato attuale weather.forecast_mokaor",
"server": "3fa08516.1d473a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "weather.forecast_mokaor",
"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",
"x": 410,
"y": 940,
"wires": [
["cbcc1c7d6df6bb70"]
]
},
{
"id": "f7b61878f8ba5803",
"type": "inject",
"z": "5b13fa0d2adc43fb",
"g": "47e6d5ab36e71d67",
"name": "Attivazione manuale",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 160,
"y": 940,
"wires": [
["e0066da28ca527c6"]
]
},
{
"id": "3fa08516.1d473a",
"type": "server",
"name": "Home Assistant",
"addon": true
}
]