I had done this quite some time ago now, but I have as of about two years ago cut the blinds over to a basic esp8266 chip with mqtt. I also have my theater lights still on particle photons with curl statements, I can try to pay that code for you if you are interested.