you can also use <a href="https://www.home-assistant.io/" rel="nofollow">https://www.home-assistant.io/</a>, where most of the stuff is already configured. You just have to create a YAML file according to the connection and add the automation to it.