Home Assistant - Python Scripts

Опубликовано: 25 Февраль 2026
на канале: TechWithDavid
28,121
374

📄 Free Resume Template: https://techwithdavid.com/resume
💌 Our Community Newsletter: https://techwithdavid.com/newsletter



In today's video we cover how to create and run our own custom python scripts within home assistant. I show you how to set it up, how to create the custom script, and finally how to add it into your home automation setup.

00:00 - Intro
00:49 - Pyscript
01:22 - HACS Setup
03:30 - Install Pyscript
06:32 - Creating Our Custom Script
09:03 - Complex Ai Example
13:32 - Automations

Pyscript Installation Instructions: https://hacs-pyscript.readthedocs.io/...
Pyscript Github Page: https://github.com/custom-components/...




SHOP AND SUPPORT! 🎁
==================
Enjoy the videos?
Use these links when you shop -- it’s a simple way to support the channel and helps fund future projects! 💖

Nord VPN: https://nordvpn.com/techwithdavid

Amazon Links:
Sonoff Zigbee USB Dongle: https://amzn.to/3AZr3ah
USB Extension Cable: https://amzn.to/3CN3GBh
KVM Switch: https://amzn.to/3N5rimv
Raspberry Pi Kit: https://amzn.to/3V9AFW3
Raspberry Pi 4 Fan Case: https://amzn.to/3P5hSsd
Aqara FP2: https://amzn.to/49ogmJu
Amazon Echo: https://amzn.to/3V9AVEv
Tapo Smart Wifi Plug: https://amzn.to/3zRTgid
Dji Neo: https://amzn.to/3YucS4N