How to connect easily a custom device via REST or MQTT or MODBUS TCP

You are free to add such an automation as PR :wink:

And please check the first post: