Python scripts that are exposed as services: https://www.home-assistant.io/integrations/python_script/