You just need a script to call, can do anything you want. Mine just broadcasts a simple MQTT message.
alias: ''
data:
topic: ping
service: mqtt.publish
Then in node-red an inject node that triggers every minute that runs your script in home assistant.
[{"id":"e2d5882e.2f28c","type":"inject","z":"77013be1.720b4c","name":"","topic":"","payload":"TEST","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":1220,"wires":[["cf673d1f.50c1a8"]]},{"id":"ace063b3.c194b","type":"debug","z":"77013be1.720b4c","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":770,"y":1220,"wires":[]},{"id":"cf673d1f.50c1a8","type":"api-call-service","z":"77013be1.720b4c","name":"test ping","server":"26939aab.c81726","version":1,"debugenabled":false,"service_domain":"script","service":"mqtt_ping_service","entityId":"","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":440,"y":1220,"wires":[["ace063b3.c194b"]]},{"id":"1d745d1d.f3933b","type":"inject","z":"77013be1.720b4c","name":"Keepalive","topic":"","payload":"HASS Keepalive","payloadType":"str","repeat":"60","crontab":"","once":true,"onceDelay":0.1,"x":170,"y":1280,"wires":[["cf673d1f.50c1a8"]]},{"id":"26939aab.c81726","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]