Skip to content

Files

Latest commit

 

History

History
53 lines (40 loc) · 1.85 KB

installation.rst

File metadata and controls

53 lines (40 loc) · 1.85 KB

Installation

Option 1: Home Assistant Community Store (HACS)

HACS is an integration in Home Assistant that allows you to install custom integrations, frontend elements, and add-ons developed by the Home Assistant community without the need to manually download and copy files. To install HACS, follow the instructions on the HACS website.

With HACS installed, under HACS -> Integrations, select “+”, search for pyscript, and install it.

During installation you will be asked to identify whether to allow all imports and whether to allow access to HASS as a global variable. These settings are documented on the overview page and can be changed after installation in the integration configuration.

Option 2: Manual

From the latest release download the zip file hass-custom-pyscript.zip

cd YOUR_HASS_CONFIG_DIRECTORY    # same place as configuration.yaml
mkdir -p custom_components/pyscript
cd custom_components/pyscript
unzip hass-custom-pyscript.zip

Alternatively, you can install the current GitHub master version by cloning and copying:

mkdir SOME_LOCAL_WORKSPACE
cd SOME_LOCAL_WORKSPACE
git clone https://github.com/custom-components/pyscript.git
mkdir -p YOUR_HASS_CONFIG_DIRECTORY/custom_components
cp -pr pyscript/custom_components/pyscript YOUR_HASS_CONFIG_DIRECTORY/custom_components

Install Jupyter Kernel

Installing the Pyscript Jupyter kernel is optional but highly recommended. The steps to install and use it are in this README.