Sonoff iHub integration

Hello folks! My sugestion is to build an add-on for Sonoff iHub, to integrate our tempest to this system. Would be helpfull to create alerts and start some triggers, for exemplo, turn lights on when my tempest detect low light, turn my computer switch off when detect lightning closer than x miles, send an alert to me when my tempest detect rain and my window is opened, etc. I m using IFTTT but a bit limited regarding tempest.

Thanks from Brazil!
Alex Rodrigues