Skip to content

Python Scripts for Home Automation using Appdemon and Home Assistant

License

Notifications You must be signed in to change notification settings

skababji/IoT_HA_Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

This repo includes sample Python scripts developed using Appdaemon for Home Assistant (HA). The scripts are written for some of the customers and they are fully functional on a setup of Home Assistant/Appdeamon installed on Raspberry Pi 3 Model B+ . You may copy and customize the scripts to your needs.

To run the scripts, you are expected to have HA installed on your hub of choice. You then need to install Appdaemon as an add-on to HA. You may need to check a video for the necessary setup.

Once everything is installed, you need to customize the sample scripts to your needs. Each script is self-explanatory and includes basic comments to enhance readability. The scripts include calling some APIs, playing tracks, checking various sensors, writing selected sensor states to local file and executing other actions. It is unlikely you have the exact same sensors, however, some of the sensors can be installed by searching HA HACS community. Other sensors need to be replaced as per your setup of smart devices.

Below are general guidelines you may consider when customizing the scripts:

  • For media_content_id, you need to enter the full URL. For instance, if you are playing a local mp3 file stored in the hub of your choice (e.g. Rasperry Pi 3B+), you need to make sure that the track is stored under the folder: /config/www/ and in the script enter the full URL, e.g. "https://HA-IP-ADDRESS/local/TRACK_FILE_NAME.mp3"
  • HA-IP-ADDRESS could be either your local ip address of the hub or, if you are using DNS service (e.g. duckdns), your domain name. Make sure to add :8123 after the domain name.

About

Python Scripts for Home Automation using Appdemon and Home Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages