I have the Sonoff setup the way it needs to be however I am stuck with the automation. I believe it is an issue with the template. I have another thread for this going but I have not received a reply back yet.
Once I have it all figured out I plan to do a right up on it.
Let me know if you have any thoughts.