mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 06:16:50 +00:00
Minimize configuration sample
This commit is contained in:
parent
d72fe784c2
commit
47774ab8ef
@ -16,8 +16,57 @@ ha_release: "0.45"
|
|||||||
|
|
||||||
Home Assistant will automatically discover their presence on your network.
|
Home Assistant will automatically discover their presence on your network.
|
||||||
|
|
||||||
|
## {% linkable_title Dependencies %}
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get install python3-gi gir1.2-gstreamer-1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
Depending on how you run Home Assistant you might be needed to symlink the `gi` module into your environment.
|
||||||
|
|
||||||
|
Hassbian:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/lib/python3.4/site-packages
|
||||||
|
```
|
||||||
|
|
||||||
|
Raspberry Pi All-In-One Installer:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages
|
||||||
|
```
|
||||||
|
|
||||||
You can also manually configure your devices by adding the following lines to your `configuration.yaml` file:
|
You can also manually configure your devices by adding the following lines to your `configuration.yaml` file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
axis:
|
||||||
|
m1065lw:
|
||||||
|
host: IP ADDRESS
|
||||||
|
include:
|
||||||
|
- camera
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration variables:
|
||||||
|
|
||||||
|
- **device** (*Required*): Unique name for the Axis device.
|
||||||
|
- **host** (*Required*): The IP address to your Axis device.
|
||||||
|
- **username** (*Optional*): The username to your Axis device. Defaults to `root`.
|
||||||
|
- **password** (*Optional*): The password to your Axis device. Defaults to `pass`.
|
||||||
|
- **trigger_time** (*Optional*): Minimum time (in seconds) a sensor should keep its positive value. Defaults to 0.
|
||||||
|
- **location** (*Optional*): Physical location of your Axis device. Default not set.
|
||||||
|
- **include** (*Required*): This cannot be empty else there would be no use adding the device at all.
|
||||||
|
- **camera**: Stream MJPEG video to Home Assistant.
|
||||||
|
- **motion**: The built-in motion detection in Axis cameras.
|
||||||
|
- **vmd3**: ACAP Motion Detection app which has better algorithms for motion detection.
|
||||||
|
- **pir**: PIR sensor that can trigger on motion.
|
||||||
|
- **sound**: Sound detector.
|
||||||
|
- **daynight**: Certain cameras have day/night mode if they have built-in IR lights.
|
||||||
|
- **tampering**: Signals when camera believes that it has been tampered with.
|
||||||
|
- **input**: Trigger on whatever you have connected to device input port.
|
||||||
|
|
||||||
|
A full configuration example could look like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
axis:
|
axis:
|
||||||
@ -35,45 +84,6 @@ axis:
|
|||||||
location: köket
|
location: köket
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Dependencies %}
|
|
||||||
|
|
||||||
```bash
|
|
||||||
sudo apt-get install python3-gi gir1.2-gstreamer-1.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Depending on how you run Home Assistant you might be needed to symlink the `gi` module into your environment.
|
|
||||||
|
|
||||||
Hassbian:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/lib/python3.4/site-packages
|
|
||||||
```
|
|
||||||
|
|
||||||
Raspberry Pi All-In-One Installer:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
ln -s /usr/lib/python3/dist-packages/gi /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages
|
|
||||||
```
|
|
||||||
|
|
||||||
## {% linkable_title Configuration variables %}
|
|
||||||
|
|
||||||
- **device** (*Required*): Unique name
|
|
||||||
- **host** (*Required*): The IP address to your Axis device.
|
|
||||||
- **username** (*Optional*): The username to your Axis device. Default 'root'.
|
|
||||||
- **password** (*Optional*): The password to your Axis device. Default 'pass'.
|
|
||||||
- **trigger_time** (*Optional*): Minimum time (in seconds) a sensor should keep its positive value. Default 0.
|
|
||||||
- **location** (*Optional*): Physical location of your Axis device. Default not set.
|
|
||||||
|
|
||||||
- **include** (*Required*): This cannot be empty else there would be no use adding the device at all.
|
|
||||||
- **camera**: Stream MJPEG video to Home Assistant
|
|
||||||
- **motion**: The Built in motion detection in Axis cameras
|
|
||||||
- **vmd3**: ACAP Motion Detection app which has better algorithms for motion detection
|
|
||||||
- **pir**: PIR sensor that can trigger on motion
|
|
||||||
- **sound**: Sound detector
|
|
||||||
- **daynight**: Certain cameras have day/night mode if they have built-in IR lights
|
|
||||||
- **tampering**: signals when camera believes that it has been tampered with
|
|
||||||
- **input**: trigger on whatever you have connected to device input port
|
|
||||||
|
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
Any specific levels for triggers needs to be configured on the device.
|
Any specific levels for triggers needs to be configured on the device.
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user