Witam, zaczynam zabawe z Nodem napisałem prostą automatyzacje niestety nie chce działać w HA w autamatyzacij działa bez problemu
[
{
"id": "587f4b91.8f4c38",
"type": "server-state-changed",
"z": "bf9e2ddc.14fda",
"name": "Stan klimatyzacji",
"server": "e8abf084.22e3c",
"version": 3,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "sensor.klimat_ac",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"for": "",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"x": 140,
"y": 180,
"wires": [
[
"f67d1ee0.d450c"
]
]
},
{
"id": "f67d1ee0.d450c",
"type": "switch",
"z": "bf9e2ddc.14fda",
"name": "Sprawdź stan klimatyzacji",
"property": "payload.new_state.state",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "heating",
"vt": "str"
},
{
"t": "eq",
"v": "idle",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 330,
"y": 180,
"wires": [
[
"7db87f3e.9cbbd"
],
[
"f8c156b6.39e808"
],
[
"f8c156b6.39e808"
]
]
},
{
"id": "7db87f3e.9cbbd",
"type": "api-call-service",
"z": "bf9e2ddc.14fda",
"name": "Włącz Switch 1 podczas grzania",
"server": "e8abf084.22e3c",
"version": 3,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_on",
"entityId": "switch.gniazdko_socket_1",
"data": "",
"dataType": "json",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 580,
"y": 140,
"wires": []
},
{
"id": "f8c156b6.39e808",
"type": "api-call-service",
"z": "bf9e2ddc.14fda",
"name": "Wyłącz Switch 1",
"server": "e8abf084.22e3c",
"version": 3,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.gniazdko_socket_1",
"data": "",
"dataType": "json",
"mergecontext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 580,
"y": 240,
"wires": []
},
{
"id": "e8abf084.22e3c",
"type": "server",
"name": "Home Assistant",
"addon": true
}
]