Personally I would use optocouplers. Using optocouplers gives you galvanic isolation of the two systems and prevents one system from negatively affecting the other. Not that it would under normal operation, but if something were to happen to either the UPS or to the node, you wouldn't get a back-feed of bad power into the other system.
I have used the approach that @gohan mentions on my garage door opener node, but I only did that after testing the optocoupler approach and failed. Since you have LEDs that are being driven, the optocoupler approach should be no problem.