Ich wollte es nochmal nachstellen, aber offensichtilich hab ich den Fehler nicht mehr. Hatte mit ein paar Flows experimentiert und da war wohl einer faul. Aktuell hab ich fast alles wieder wie vorher.
So, jetzt hab ich mir auch ein paar Infos zum BMW (Restreichweite, Tankinhalt und km-Stand) aufs Dashboard geholt:
@Masipulami
Greifst du die Werte aus iobroker oder aus NodeRed ab?
Würdest du den Flow mit mir teilen?
Läuft über NodeRed mit diesem Plugin:
Hier mein Flow:
[
{
"id": "2e236af5.ac981e",
"type": "tab",
"label": "BMW",
"disabled": false,
"info": ""
},
{
"id": "8442164d.97a36",
"type": "homeeDevice",
"z": "2e236af5.ac981e",
"virtual-homee": "",
"name": "BMW",
"nodeId": "320",
"showNodeId": false,
"profile": "2007",
"icon": "default",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 4,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "",
"step_value": 1,
"editable": 1,
"last_changed": 1602945667,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 321,
"type": 232,
"node_id": 320
}
],
"statusTemplate": "",
"x": 850,
"y": 260,
"wires": [
[]
]
},
{
"id": "4e63115b.901f",
"type": "inject",
"z": "2e236af5.ac981e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 190,
"y": 360,
"wires": [
[
"a9861bef.3e5498"
]
]
},
{
"id": "d4628a4f.b6daa8",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 650,
"y": 120,
"wires": []
},
{
"id": "51bac7c3.4fcd18",
"type": "function",
"z": "2e236af5.ac981e",
"name": "",
"func": "if(msg.payload.attributesMap.door_lock_state ==\"UNLOCKED\" || msg.payload.attributesMap.door_lock_state ==\"SELECTIVELOCKED\"){\n return {payload:{\"attribute\":{\"id\":321,\"value\":0}}}\n}\nelse \nreturn {payload:{\"attribute\":{\"id\":321,\"value\":1}}}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 200,
"wires": [
[
"9c6d310d.636fe",
"8442164d.97a36"
]
]
},
{
"id": "9c6d310d.636fe",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 860,
"y": 200,
"wires": []
},
{
"id": "a9861bef.3e5498",
"type": "car-bmw-get",
"z": "2e236af5.ac981e",
"account": "e9fe4f97.01e2a8",
"name": "BMW 320d",
"datatype": "dynamic",
"x": 380,
"y": 360,
"wires": [
[
"d4628a4f.b6daa8",
"51bac7c3.4fcd18",
"4f493cdc.808544",
"b076df07.83548",
"4a61bc85.344c64",
"e653bed3.ab189"
]
]
},
{
"id": "4f493cdc.808544",
"type": "function",
"z": "2e236af5.ac981e",
"name": "",
"func": "if(msg.payload.attributesMap.trunk_state ==\"CLOSED\"){\n return {payload:{\"attribute\":{\"id\":331,\"value\":0}}}\n}\nelse \nreturn {payload:{\"attribute\":{\"id\":331,\"value\":1}}}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 480,
"wires": [
[
"75d2e482.84fe7c",
"41ee05a7.7a4e6c"
]
]
},
{
"id": "75d2e482.84fe7c",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 860,
"y": 480,
"wires": []
},
{
"id": "41ee05a7.7a4e6c",
"type": "homeeDevice",
"z": "2e236af5.ac981e",
"virtual-homee": "",
"name": "BMW Kofferraum",
"nodeId": "330",
"showNodeId": false,
"profile": "2000",
"icon": "nodeicon_doorsensor",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "",
"step_value": 1,
"editable": 0,
"last_changed": 1602945449,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 331,
"type": 14,
"node_id": 330
}
],
"statusTemplate": "",
"x": 890,
"y": 540,
"wires": [
[]
]
},
{
"id": "b076df07.83548",
"type": "function",
"z": "2e236af5.ac981e",
"name": "",
"func": "if(msg.payload.attributesMap.window_driver_front ==\"CLOSED\" && msg.payload.attributesMap.window_passenger_front ==\"CLOSED\" && msg.payload.attributesMap.window_driver_rear ==\"CLOSED\" && msg.payload.attributesMap.window_passenger_rear ==\"CLOSED\"){\n return {payload:{\"attribute\":{\"id\":341,\"value\":0}}}\n}\nelse \nreturn {payload:{\"attribute\":{\"id\":341,\"value\":1}}}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 340,
"wires": [
[
"6e02bb96.36ea24",
"3c69a3c4.fee73c"
]
]
},
{
"id": "6e02bb96.36ea24",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 860,
"y": 340,
"wires": []
},
{
"id": "3c69a3c4.fee73c",
"type": "homeeDevice",
"z": "2e236af5.ac981e",
"virtual-homee": "",
"name": "BMW Fenster",
"nodeId": "340",
"showNodeId": false,
"profile": "2000",
"icon": "nodeicon_doorsensor",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "",
"step_value": 1,
"editable": 0,
"last_changed": 1602945449,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 341,
"type": 14,
"node_id": 340
}
],
"statusTemplate": "",
"x": 880,
"y": 400,
"wires": [
[]
]
},
{
"id": "4a61bc85.344c64",
"type": "function",
"z": "2e236af5.ac981e",
"name": "",
"func": "if(msg.payload.attributesMap.door_driver_front ==\"CLOSED\" || msg.payload.attributesMap.door_passenger_front ==\"CLOSED\" || msg.payload.attributesMap.door_driver_rear ==\"CLOSED\" || msg.payload.attributesMap.door_passenger_front ==\"CLOSED\"){\n return {payload:{\"attribute\":{\"id\":351,\"value\":0}}}\n}\nelse \nreturn {payload:{\"attribute\":{\"id\":351,\"value\":1}}}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 620,
"wires": [
[
"28f5e4c1.0abb0c",
"92cfdbe1.2495e8"
]
]
},
{
"id": "28f5e4c1.0abb0c",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 860,
"y": 620,
"wires": []
},
{
"id": "92cfdbe1.2495e8",
"type": "homeeDevice",
"z": "2e236af5.ac981e",
"virtual-homee": "",
"name": "BMW Türen",
"nodeId": "350",
"showNodeId": false,
"profile": "2000",
"icon": "nodeicon_doorsensor",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "",
"step_value": 1,
"editable": 0,
"last_changed": 1602945449,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 351,
"type": 14,
"node_id": 350
}
],
"statusTemplate": "",
"x": 870,
"y": 680,
"wires": [
[]
]
},
{
"id": "a654898b.29c198",
"type": "homeeDevice",
"z": "2e236af5.ac981e",
"virtual-homee": "",
"name": "BMW Infos",
"nodeId": "360",
"showNodeId": false,
"profile": "3014",
"icon": "default",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1000,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "km",
"step_value": 1,
"editable": 0,
"last_changed": 1602945667,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 361,
"type": 5,
"node_id": 360
},
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "l",
"step_value": 1,
"editable": 0,
"last_changed": 1603624498,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 362,
"type": 7,
"node_id": 360
},
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1000000,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "km",
"step_value": 1,
"editable": 0,
"last_changed": 1603627259,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 363,
"type": 94,
"node_id": 360
}
],
"statusTemplate": "",
"x": 870,
"y": 840,
"wires": [
[]
]
},
{
"id": "51419b0f.7f6bd4",
"type": "debug",
"z": "2e236af5.ac981e",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 860,
"y": 780,
"wires": []
},
{
"id": "e653bed3.ab189",
"type": "function",
"z": "2e236af5.ac981e",
"name": "",
"func": "var remaining_distance = Number(msg.payload.attributesMap.beRemainingRangeFuelKm)\nvar remaining_fuel = Number(msg.payload.attributesMap.remaining_fuel)\nvar total_milage = Number(msg.payload.attributesMap.mileage)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":361,\n \"value\":remaining_distance\n }\n }\n}\n)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":362,\n \"value\":remaining_fuel\n }\n }\n}\n)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":363,\n \"value\":total_milage\n }\n }\n}\n)",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 740,
"wires": [
[
"51419b0f.7f6bd4",
"a654898b.29c198"
]
]
},
{
"id": "e9fe4f97.01e2a8",
"type": "car-bmw",
"z": "",
"name": "",
"server": "www.bmw-connecteddrive.com",
"debug": true
}
]
Der Flow liefert 5 neue Geräte:
- Verschlusszustand
- Fensterstatus
- Türstatus
- Kofferraumstatus
- Allgemeine Infos (Restreichweite, verbleibender Tankinhalt, Gesamtkilometerstand)
Danke. Mal sehen, ob ich mir das auf iobroker-Input noch umbaue. Am Ende geht es mir nur um ein paar Stats…
Das hier bekommst du alles zurück:
{
"attributesMap": {
"updateTime_converted": "13.06.2019 16:56",
"DCS_CCH_Ongoing ": null,
"updateTime_converted_timestamp": "1560444966000",
"gps_lat": "xxxxxxx",
"trunk_state": "CLOSED",
"door_lock_state": "UNLOCKED",
"condition_based_services": "xxxxxxxv",
"vehicle_tracking": "1",
"hood_state": "CLOSED",
"door_passenger_front": "CLOSED",
"lastUpdateReason": "VEHCSHUTDOWN",
"check_control_messages": "",
"beRemainingRangeFuel": "511.0",
"lights_parking": "OFF",
"lsc_trigger": "VEHCSHUTDOWN",
"unitOfEnergy": "kWh",
"beRemainingRangeFuelKm": "511.0",
"kombi_current_remaining_range_fuel": "511",
"window_passenger_front": "CLOSED",
"unitOfElectricConsumption": "kWh/100km",
"door_driver_front": "CLOSED",
"mileage": "12345",
"head_unit_pu_software": "03/18",
"updateTime": "13.06.2019 16:56:06 UTC",
"DCS_CCH_Activation": null,
"head_unit": "NBTEvo",
"remaining_fuel": "43",
"updateTime_converted_time": "16:56",
"window_driver_front": "CLOSED",
"beRemainingRangeFuelMile": "317.0",
"gps_lng": "xxxxxxx",
"unitOfCombustionConsumption": "l/100km",
"updateTime_converted_date": "13.06.2019",
"unitOfLength": "km",
"heading": "193"
},
"vehicleMessages": {
"ccmMessages": [],
"cbsMessages": [
{
"description": "Nächster Wechsel spätestens zum angegebenen Termin.",
"text": "Bremsflüssigkeit",
"id": 3,
"status": "OK",
"messageType": "CBS",
"date": "2019-12"
}
]}
}
Ok. Cool. Kannst ja dann dein Ergebnis hier teilen.
Ich habs mal versucht, umzubauen.
Letztlich auch nicht schwer, denke ich. Komischerweise klappt es dennoch nicht. Ich habe deine Funktion übernommen und auf meinen homee umgestellt.
Reichweite -> Get Wert passt, in der Wertevorschau in NR steht NaN, in homee kommt der Wert an.
Tankinhalt -> Get Wert passt, in der Wertevorschau in NR steht der Wert korrekt, in homee kommt 0 an.
Laufleistung -> Get Wert passt, in der Wertevorschau in NR steht NaN, in homee kommt 0 an.
Alle drei Werte gebe ich als Payloadx (1-3) weiter.
[
{
"id": "41e21cf3.3eadfc",
"type": "inject",
"z": "1640e9f3.7b5096",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "60",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 365,
"y": 187,
"wires": [
[
"292b0581.4887fa",
"b0d05f95.e24878",
"e8de37dd.184a28"
]
]
},
{
"id": "292b0581.4887fa",
"type": "ioBroker get",
"z": "1640e9f3.7b5096",
"name": "RemainingRageKM",
"topic": "bmw.0.xxxxxxxxxxxx.dynamic.beRemainingRangeFuelKm",
"attrname": "payload1",
"payloadType": "value",
"x": 570,
"y": 140,
"wires": [
[
"e73c10e2.c302f8"
]
]
},
{
"id": "c2306e2b.7b971",
"type": "homeeDevice",
"z": "1640e9f3.7b5096",
"virtual-homee": "",
"name": "BMW Stats",
"nodeId": "1360",
"showNodeId": false,
"profile": "3014",
"icon": "nodeicon_roadblocker",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1000,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "km",
"step_value": 1,
"editable": 0,
"last_changed": 1602945667,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 1361,
"type": 5,
"node_id": 1360
},
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "l",
"step_value": 1,
"editable": 0,
"last_changed": 1603624498,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 1362,
"type": 7,
"node_id": 1360
},
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1000000,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "km",
"step_value": 1,
"editable": 0,
"last_changed": 1603627259,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 1363,
"type": 94,
"node_id": 1360
}
],
"statusTemplate": "",
"x": 830,
"y": 220,
"wires": [
[]
]
},
{
"id": "e73c10e2.c302f8",
"type": "function",
"z": "1640e9f3.7b5096",
"name": "",
"func": "var remaining_distance = Number(msg.payload1)\nvar remaining_fuel = Number(msg.payload2)\nvar total_milage = Number(msg.payload3)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":1361,\n \"value\":remaining_distance\n }\n }\n}\n)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":1362,\n \"value\":remaining_fuel\n }\n }\n}\n)\n\nnode.send( {\n \"payload\":{\n \"attribute\":{\n \"id\":1363,\n \"value\":total_milage\n }\n }\n}\n)",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 820,
"y": 140,
"wires": [
[
"c2306e2b.7b971"
]
]
},
{
"id": "e8de37dd.184a28",
"type": "ioBroker get",
"z": "1640e9f3.7b5096",
"name": "RemainingFuel",
"topic": "bmw.0.xxxxxxxxxxxx.dynamic.remaining_fuel",
"attrname": "payload2",
"payloadType": "value",
"x": 560,
"y": 200,
"wires": [
[
"e73c10e2.c302f8"
]
]
},
{
"id": "b0d05f95.e24878",
"type": "ioBroker get",
"z": "1640e9f3.7b5096",
"name": "Milage",
"topic": "bmw.0.xxxxxxxxxxxx.dynamic.mileage",
"attrname": "payload3",
"payloadType": "value",
"x": 530,
"y": 260,
"wires": [
[
"e73c10e2.c302f8"
]
]
}
]
Hm, guck mal in den Attributwerten. Da musste ich Min und Max und Stepvalue jeweils anpassen. Vermute, dass die Werte nicht angezeigt werden, da sie außerhalb der Range der beiden Attribute liegen.
In meinem Flow war das schon korrigiert. Vermute die Attributwerte wurden bei dir beim Import wieder auf die Standardwerte für Luftfeuchtigkeit etc. gesetzt.
Hm, hast du Fehler im Debug?
Nein, hatte ich nicht.
Mein Fehler: Die 3 Get-Werte waren parallel geschalten. Jetzt sind sie nacheinander und damit kommen dann auch alle 3 Werte an.
Prima. Dann hats ja geklappt.
Nimm am besten mal deine VIN oben aus dem Node Red Flow. Muss ja nicht jeder haben.
Danke für den Hinweis auf die VIN. Nicht, dass sich noch wer meine Ausstattungsliste anschaut und meine Lederfarbe kommentiert.
Jetzt überlege ich mir mal, welche Werte mich im homee vielleicht noch interessieren…
Guten Morgen. Ich finde die Idee, die Daten vom Auto zu ermitteln echt interessant.
Hat das schon mal jemand beim Mercedes gemacht? Habe im NR leider nichts vergleichbares gefunden…
Ich glaube, das sollte über iobroker lösbar sein. Dort gibt es einen Adapter für MercedesMe
Also iobroker …
Muss ich mich wohl doch noch in die Materie einarbeiten.
Ungetestet: Gibt auch was für NodeRed.
Gibt es auch für Volkswagen… freue mich schon
So, ich hab jetzt auch mal nen Node Red Flow erstellt, um das Gäste-WLAN meiner Fritz!Box einzuschalten (mit Rückkanal):
[
{
"id": "8022dab7.ab3b78",
"type": "tab",
"label": "Gäste-WLAN",
"disabled": false,
"info": ""
},
{
"id": "de6c2a73.e8e558",
"type": "function",
"z": "8022dab7.ab3b78",
"name": "",
"func": "var cmd = msg.payload.targetValue\n\nnode.send({payload:{\"NewEnable\":cmd}})",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 920,
"y": 340,
"wires": [
[
"a7d793b2.10bb8",
"5b21dd0e.592514"
]
]
},
{
"id": "5b21dd0e.592514",
"type": "fritzbox-in",
"z": "8022dab7.ab3b78",
"device": "e4184bb8.da2978",
"name": "Gäste WLAN",
"service": "urn:dslforum-org:service:WLANConfiguration:3",
"action": "SetEnable",
"arguments": "{\"NewEnable\":\"value\"}",
"x": 1110,
"y": 380,
"wires": [
[]
]
},
{
"id": "fc88bec8.afee5",
"type": "homeeDevice",
"z": "8022dab7.ab3b78",
"virtual-homee": "",
"name": "Gäste-WLAN",
"nodeId": "490",
"showNodeId": false,
"profile": "16",
"icon": "default",
"attributes": [
{
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"unit": "",
"step_value": 1,
"editable": 1,
"last_changed": 1603786725,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": 491,
"type": 1,
"node_id": 490
}
],
"statusTemplate": "",
"x": 750,
"y": 340,
"wires": [
[
"de6c2a73.e8e558"
]
]
},
{
"id": "a7d793b2.10bb8",
"type": "debug",
"z": "8022dab7.ab3b78",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1110,
"y": 300,
"wires": []
},
{
"id": "a07d156b.9c2f68",
"type": "fritzbox-in",
"z": "8022dab7.ab3b78",
"device": "904ac1f2.01468",
"name": "Status Gäste WLAN",
"service": "urn:dslforum-org:service:WLANConfiguration:3",
"action": "GetInfo",
"arguments": "{}",
"x": 360,
"y": 340,
"wires": [
[
"1baec0df.6d38ef",
"6e111b04.319db4"
]
]
},
{
"id": "1baec0df.6d38ef",
"type": "debug",
"z": "8022dab7.ab3b78",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 530,
"y": 420,
"wires": []
},
{
"id": "783e965c.962378",
"type": "inject",
"z": "8022dab7.ab3b78",
"name": "get_status",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "10",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 340,
"wires": [
[
"a07d156b.9c2f68"
]
]
},
{
"id": "6e111b04.319db4",
"type": "function",
"z": "8022dab7.ab3b78",
"name": "",
"func": "var status = Number(msg.payload.NewEnable)\n\nnode.send({payload:{\"id\":491,\"value\":status}})",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 580,
"y": 340,
"wires": [
[
"fc88bec8.afee5",
"9eb90382.1188a"
]
]
},
{
"id": "9eb90382.1188a",
"type": "debug",
"z": "8022dab7.ab3b78",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 720,
"y": 240,
"wires": []
},
{
"id": "e4184bb8.da2978",
"type": "fritzbox-config",
"z": "",
"name": "FritzBox",
"host": "fritz.box",
"port": "49000",
"ssl": false,
"user": ""
},
{
"id": "904ac1f2.01468",
"type": "fritzbox-config",
"z": "",
"name": "",
"host": "fritz.box",
"port": "49000",
"ssl": false,
"user": "admin"
}
]