So I try to set up notifications for the fire alarm, and I want them to be critical (skip DnD, make sound if possible, and be displayed highest)
I want to add this data to a node before the notify action node.
So this is my setup:
![]()
[{"id":"99a13d0a8f178d5c","type":"inject","z":"49abe2a263c909c4","name":"Test alarm","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":160,"y":900,"wires":[["7bbdf3ab2a674453"]]},{"id":"7bbdf3ab2a674453","type":"template","z":"49abe2a263c909c4","name":"Melding","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n \"title\": \"🔥 Varsel: Brannalarm\",\n \"message\": \"Sensor oppdaget røyk!\"\n}","output":"json","x":400,"y":900,"wires":[["8bb47128b9f50769"]]},{"id":"8bb47128b9f50769","type":"change","z":"49abe2a263c909c4","name":"Add Critical","rules":[{"t":"set","p":"payload.data","pt":"msg","to":"{\"ttl\":0,\"priority\":\"high\",\"importance\":\"high\",\"persistent\":true,\"channel\":\"alarm_stream_max\",\"sound\":\"default\",\"push\":{\"sound\":{\"name\":\"default\",\"critical\":1,\"volume\":1}},\"interruption-level\":\"critical\"}","tot":"json"}],"x":570,"y":900,"wires":[["8cdb196e67ee91a7"]]},{"id":"8cdb196e67ee91a7","type":"api-call-service","z":"49abe2a263c909c4","name":"Notify Flemming","server":"fee63bd.14801c8","version":7,"debugenabled":true,"action":"notify.mobile_app_fleska_tlf","floorId":[],"areaId":[],"deviceId":[],"entityId":[],"labelId":[],"data":"{\t \"title\": payload.title,\t \"message\": payload.message,\t \"data\": payload.data\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"notify","service":"mobile_app_fleska_tlf","x":860,"y":900,"wires":[[]],"info":"Legger til overskrift og sender varsel med melding fra template noden."},{"id":"fee63bd.14801c8","type":"server","name":"Home Assistant","addon":true}]
The thing is, It will send me the message, but it does not make sound if on DnD, not on Android, not on iOS.
Also, it looks like data is double, and idk how to fix that:
I have tried asking ChatGPT also, but even he is stuck and just repeating himself at this point.
Question:
- Can I combine iOS and Android on the same Change node as I do?
- Are all the parameters valid/needed?
- Why does it not act critical?
- How do I avoild the double-data sendt in the last node?






