Home Assistant

From Sudo Room
Revision as of 16:59, 9 August 2022 by Juul (talk | contribs) (Created page with "We are using [Home Assistant https://www.home-assistant.io/] for the new RFID-based door access control. Some notes for now: <pre> On junk.local in /home/homeassistant/.homeassistant/configuration.yml I added: ``` logger: default: info ``` To set the log-level to `info`. Now you can `tail -f /home/homeassistant/.homeassistant/home-assistant.log` and I added the line: ``` python_script: ``` (yes, nothing after the `:` at all) to enable the python script integr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

We are using [Home Assistant https://www.home-assistant.io/] for the new RFID-based door access control.

Some notes for now:


On junk.local
in /home/homeassistant/.homeassistant/configuration.yml

I added:

```
logger:
  default: info
```

To set the log-level to `info`.
Now you can `tail -f /home/homeassistant/.homeassistant/home-assistant.log`

and I added the line:

```
python_script:
```

(yes, nothing after the `:` at all)

to enable the python script integration.

Then I added the dir: `home/homeassistant/.homeassistant/python_scripts`

and the file `hello_world.py` in that dir.

The basics of how to do this are documented here: https://www.home-assistant.io/integrations/python_script/

and the full API is documented here: https://developers.home-assistant.io/docs/dev_101_hass/