Not beautiful, but I use HomeSeer on Ubuntu. It is commercial, but after spending a couple thousand dollars on all the home hardware and server, spending a bit on software makes as much sense. It is reliable with my automations. I have added custom devices and automations through scripts that publish MQTT messages.
For simple remote control, I tend to eschew their UI and have HomeBridge publish device access to HomeKit.