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
}
]