Home Assistant is a home automation platform running on Python 3. It is able to track and control all devices at home and offer a platform for automating control.
sudo apt install libffi-dev python3-dev sudo python3 -m pip install homeassistant hass --open-ui
Home Assistant supports a large mount of devices. You can a long list at https://www.home-assistant.io/integrations/