udpをnext hubから発信して、泥で受信してアクションを起動すりゃいいんじゃないの?
https://www.macrodroidforum.com/index.php?threads/udp-receiver-in-trigger.2585/