Might not be the most elegant, but it works I check every minute if the power is down. Using the node nut-ups to connect to the NAS.
[{"id":"eb78a5043d4ee7ea","type":"nut-ups","z":"1fad8a33e4b23c2c","name":"Check UPS status","ups":"[email protected]","x":370,"y":220,"wires":[["1141940382b5c518"]]},{"id":"7f9f561076b248ce","type":"cronplus","z":"1fad8a33e4b23c2c","name":"Every minute","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"0 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":150,"y":220,"wires":[["eb78a5043d4ee7ea"]]},{"id":"1141940382b5c518","type":"change","z":"1fad8a33e4b23c2c","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ups.status.value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":220,"wires":[["c408c802ac0fa9e6"]]},{"id":"6e5e64848b78b91d","type":"switch","z":"1fad8a33e4b23c2c","name":"Outage?","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"OL","vt":"str"},{"t":"eq","v":"OL","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":920,"y":220,"wires":[["80b15016259579b0"],["7a9001d763546564"]]},{"id":"c408c802ac0fa9e6","type":"rbe","z":"1fad8a33e4b23c2c","name":"","func":"rbei","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":750,"y":220,"wires":[["6e5e64848b78b91d"]]},{"id":"80b15016259579b0","type":"change","z":"1fad8a33e4b23c2c","name":"Power Outage","rules":[{"t":"set","p":"payload","pt":"msg","to":"Power Outage","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":200,"wires":[["6ef4296f55c8e83b"]]},{"id":"7a9001d763546564","type":"change","z":"1fad8a33e4b23c2c","name":"Power restored","rules":[{"t":"set","p":"payload","pt":"msg","to":"Power restored","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":240,"wires":[["6ef4296f55c8e83b"]]}]
I excluded the pushover node from the export