Hallo in die Runde!
Ich möchte über Node Red Werte aus Entitäten an mein Handy senden.
Als Beispiel habe ich einen PV-Speicher der z.B. 30% anziegt.
Ich habe bereits ein Flow laufen welcher mir eine Nachricht sendet wenn der Speicher < 20% ist. Ich möchte jedoch auch angezeigt bekommen wie hoch der Wert der Entität ist!
Mein Flow sieht wie folgt aus:
hier noch der Code dazu:
[
{
"id": "c929992c76d0dfa3",
"type": "inject",
"z": "f349c4d095f53051",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "0 10-16 * * *",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 670,
"y": 1400,
"wires": [
[
"cb6d0bd153bcb4a9"
]
]
},
{
"id": "cb6d0bd153bcb4a9",
"type": "api-current-state",
"z": "f349c4d095f53051",
"name": "PV Speicher SOC",
"server": "31ec4be7.562224",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "num",
"halt_if_compare": "is",
"entity_id": "sensor.pv_speicher",
"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": 890,
"y": 1400,
"wires": [
[
"61ddf3eaa9f43a1a"
]
]
},
{
"id": "61ddf3eaa9f43a1a",
"type": "switch",
"z": "f349c4d095f53051",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "20",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1070,
"y": 1400,
"wires": [
[
"58853fcdd6430097"
]
]
},
{
"id": "58853fcdd6430097",
"type": "api-call-service",
"z": "f349c4d095f53051",
"name": "Speicher Überwachung",
"server": "31ec4be7.562224",
"version": 5,
"debugenabled": false,
"domain": "notify",
"service": "mobile_app_iphone",
"areaId": [],
"deviceId": [],
"entityId": [],
"data": "{\"message\":\"SOC < 20%\",\"title\":\"Speicher\"}",
"dataType": "json",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [
{
"property": "object",
"propertyType": "msg",
"value": "",
"valueType": "str"
}
],
"queue": "none",
"x": 1290,
"y": 1400,
"wires": [
[]
]
},
{
"id": "015d840c5358321e",
"type": "comment",
"z": "f349c4d095f53051",
"name": "Überwachung Speicher",
"info": "",
"x": 700,
"y": 1360,
"wires": []
},
{
"id": "31ec4be7.562224",
"type": "server",
"name": "Home Assistant",
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "",
"connectionDelay": false,
"cacheJson": false,
"heartbeat": false,
"heartbeatInterval": "",
"statusSeparator": "",
"enableGlobalContextStore": false
}
]
Das funktioniert sehr gut!
Kann mir jemand behilflich sein wie ich es schaffe den Zahlenwert ans Handy zu schicken?
Danke Gruß Günter