I like the notification node but is there a way to have node red clear them ?
I’d like to inject a notification when a device is running but have the notification clear when that device is turned off.
I like the notification node but is there a way to have node red clear them ?
I’d like to inject a notification when a device is running but have the notification clear when that device is turned off.
There is a way, described on dbus · victronenergy/venus Wiki · GitHub.
So writing a 1 to Notifications/AcknowledgeAllshould work (or to the specific one).
I did create an issue for making it a bit more user-friendly already ([Feature] Acknowledge notifications · Issue #347 · victronenergy/node-red-contrib-victron · GitHub), but haven’t thought of the best approach yet on doing this in an intuitive way.
I am looking at this too, for the first time.
May I ask what node you are typically patching the output of the “Inject Notification” node to?
I am probably missing something obvious.
The node docs say “The node will inject the notification into the dbus at com.victronenergy.platform /Notifications/Injectwith the format "type\ttitle\tmessage".” but it looks like it needs to be patched to a flow to get there?
The latest stable os has a new node ( yellow) " inject notification "
I have not looked into clearing it yet like above, I’m still trying to figure it out.
Yes, that is the node I am trying out, and wondering what to patch it to.
You don’t need a node after it.
I think you can inject anything into it and it’ll output what you setup in the inject node.
For me I wanted to know when a certain device is running.
Did you make a flow for it?
I had a look at the node red docs and made it output the messages but nothing happened on the Victron side so I assume it needs to be wired there and
possibly with a token and such. That would make sense. It is something I want to do at some point for notifications from 3d party BMS and such.
Are you trying to get a notification to pop up or clear the notification?
Both if at all possible..
Yes, I got that far too. But are you seeing the notifications?
Yes
Works fine for me - setting and clearing.
[
{
"id": "2e1f1f6fb4823358",
"type": "victron-inject",
"z": "20fec985ee013124",
"name": "Test",
"notificationType": "0",
"notificationTitle": "Nuclear Reactor",
"x": 390,
"y": 1260,
"wires": [
[]
]
},
{
"id": "dbab9b53c859c97c",
"type": "inject",
"z": "20fec985ee013124",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "Meltdown imminent",
"payloadType": "str",
"x": 170,
"y": 1260,
"wires": [
[
"2e1f1f6fb4823358"
]
]
},
{
"id": "82cb1dfdb69b92c7",
"type": "victron-output-custom",
"z": "20fec985ee013124",
"service": "com.victronenergy.platform/0",
"path": "/Notifications/AcknowledgeAll",
"serviceObj": {
"service": "com.victronenergy.platform/0",
"name": "GX Device (0)"
},
"pathObj": {
"path": "/Notifications/AcknowledgeAll",
"name": "/Notifications/AcknowledgeAll",
"type": "number",
"value": 0
},
"name": "Acknowledge",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 380,
"y": 1340,
"wires": []
},
{
"id": "3a813add8f77c104",
"type": "inject",
"z": "20fec985ee013124",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1",
"payloadType": "num",
"x": 210,
"y": 1340,
"wires": [
[
"82cb1dfdb69b92c7"
]
]
},
{
"id": "b95d15ba11ce5178",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.7.8"
}
}
]
Sending alarm:
clearing:
Edit: I see you have it working.
That works for me too, but I was expecting a notification in VRM on browser and mobile app.
Are you getting that too if I may ask?
No, these appear to be local events on the GX only.
Ok, then I get it. Thanks for your patience. Much appreciated!
I have notifications working in Node Red from a side app that works ok but native notifications in VRM would certainly be nice.
I’m just going to use the whatsapp business api and send events that way from the GX.
Ok, we are staying away from anything Facebook or Google after the latest developments.
This is Android and iOS and also works on Apple Silicon Macs. Very decent pricing €or$ 3-4/year for notifications and also remote access for your other NR instances you need it. FWIW:
Can you share your acknowledge node please?