Skip to content

Commit 0dc23ba

Browse files
pvizeliballoob
authored andcommitted
Dispatcher camera for 0.40 (home-assistant#2219)
* Create camera.dispatcher.markdown * Update camera.dispatcher.markdown Minor spelling fix. * Update camera.dispatcher.markdown
1 parent b6b6057 commit 0dc23ba

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: page
3+
title: "Dispatcher IP Camera"
4+
description: "Instructions how to integrate internal dispatcher cameras within Home Assistant."
5+
date: 2017-03-08 00:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
ha_category: Camera
11+
logo: camcorder.png
12+
ha_release: 0.40
13+
ha_iot_class: "depends"
14+
---
15+
16+
<p class='note'>
17+
This platform is meant for developers only.
18+
</p>
19+
20+
The `dispatcher` camera platform allows developers to create virtual camera's.
21+
22+
You would normally not add this camera to your configuration directly but have it be discovered by one of the components that uses it.
23+
24+
```yaml
25+
# Example configuration.yaml entry
26+
camera:
27+
- platform: dispatcher
28+
signal: name_of_dispatcher_signal
29+
```
30+
31+
To update the image from another piece of code, run this from an async context:
32+
33+
```python
34+
from homeassistant.helpers.dispatcher import async_dispatcher_send
35+
36+
async_dispatcher_send(hass, 'name_of_dispatcher_signal', image_data)
37+
```
38+
39+
Configuration variables:
40+
- **signal** (*Required*): The signal name of dispatcher signal they send image data to this camera.
41+
- **name** (*Optional*): This parameter allows you to override the name of your camera.

0 commit comments

Comments
 (0)