Skip to content

Commit 498c7ae

Browse files
Kane610fabaff
authored andcommitted
* Added information on how to get dependencies working on Python3.6. (home-assistant#2720)
* Added information about new device service vapix_call.
1 parent 2c631b3 commit 498c7ae

File tree

1 file changed

+36
-15
lines changed

1 file changed

+36
-15
lines changed

source/_components/axis.markdown

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,23 @@ axis:
5050
5151
Configuration variables:
5252
53-
- **device** (*Required*): Unique name for the Axis device.
54-
- **host** (*Required*): The IP address to your Axis device.
55-
- **username** (*Optional*): The username to your Axis device. Defaults to `root`.
56-
- **password** (*Optional*): The password to your Axis device. Defaults to `pass`.
57-
- **trigger_time** (*Optional*): Minimum time (in seconds) a sensor should keep its positive value. Defaults to 0.
58-
- **location** (*Optional*): Physical location of your Axis device. Default not set.
59-
- **include** (*Required*): This cannot be empty else there would be no use adding the device at all.
60-
- **camera**: Stream MJPEG video to Home Assistant.
61-
- **motion**: The built-in motion detection in Axis cameras.
62-
- **vmd3**: ACAP Motion Detection app which has better algorithms for motion detection.
63-
- **pir**: PIR sensor that can trigger on motion.
64-
- **sound**: Sound detector.
65-
- **daynight**: Certain cameras have day/night mode if they have built-in IR lights.
66-
- **tampering**: Signals when camera believes that it has been tampered with.
67-
- **input**: Trigger on whatever you have connected to device input port.
53+
## {% linkable_title Configuration variables %}
54+
55+
- **device** (*Required*): Unique name
56+
- **host** (*Required*): The IP address to your Axis device.
57+
- **username** (*Optional*): The username to your Axis device. Default 'root'.
58+
- **password** (*Optional*): The password to your Axis device. Default 'pass'.
59+
- **trigger_time** (*Optional*): Minimum time (in seconds) a sensor should keep its positive value. Default 0.
60+
- **location** (*Optional*): Physical location of your Axis device. Default not set.
61+
- **include** (*Required*): This cannot be empty else there would be no use adding the device at all.
62+
- **camera**: Stream MJPEG video to Home Assistant.
63+
- **motion**: The built-in motion detection in Axis cameras.
64+
- **vmd3**: ACAP Motion Detection app which has better algorithms for motion detection.
65+
- **pir**: PIR sensor that can trigger on motion.
66+
- **sound**: Sound detector.
67+
- **daynight**: Certain cameras have day/night mode if they have built-in IR lights.
68+
- **tampering**: Signals when camera believes that it has been tampered with.
69+
- **input**: Trigger on whatever you have connected to device input port.
6870
6971
A full configuration example could look like this:
7072
@@ -85,10 +87,29 @@ axis:
8587
location: köket
8688
```
8789
90+
<p class='note'>
91+
If you are using Python3.6 you might need to replace the 34m with 36m in the _gi.*.so filename in the gi folder.
92+
</p>
93+
8894
<p class='note'>
8995
Any specific levels for triggers needs to be configured on the device.
9096
</p>
9197
9298
<p class='note'>
9399
It is recommended that you create a user on your Axis device specifically for Home Assistant. For all current functionality it is enough to create a user belonging to user group viewer.
94100
</p>
101+
102+
## {% linkable_title Device services %}
103+
Available services: `vapix_call`.
104+
105+
#### {% linkable_title Service `axis/vapix_call` %}
106+
Send a command using [Vapix](https://www.axis.com/support/developer-support/vapix). For details please read the API specifications.
107+
108+
| Service data attribute | Optional | Description |
109+
|---------------------------|----------|--------------------------------------------------|
110+
| `name` | no | Name of device to communicate with. |
111+
| `param` | no | What parameter to operate on. |
112+
| `cgi` | yes | Which cgi to call on device. Default is `param.cgi`. |
113+
| `action` | yes | What type of call. Default is `update`. |
114+
115+
Response to call can be subscribed to on event `vapix_call_response`

0 commit comments

Comments
 (0)