Skip to content

Commit 5cbc85d

Browse files
committed
Merge branch 'current' into next
2 parents 09808b1 + 231814b commit 5cbc85d

10 files changed

+94
-29
lines changed

source/_components/envisalink.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,12 @@ Configuration variables:
6969
- **zones** (*Optional*): Envisalink boards have no way to tell us which zones are actually in use, so each zone must be configured in Home Assistant. For each zone, at least a name must be given. For more information on the available zone types, take a look at the [Binary Sensor](/components/binary_sensor.envisalink/) docs. *Note: If no zones are specified, Home Assistant will not load any binary_sensor components.*
7070
- **partitions** (*Optional*): Again, Envisalink boards do not tell us what is in use and what is not, so each partition must be configured with a partition name. If no partition parameter is specified, then no alarm_panel or sensor components are loaded.
7171

72+
Supported services:
73+
74+
The following services are supported by Envisalink and can be used to script or automate the alarm.
75+
76+
- **alarm_disarm**: Disarms the alarm with the user code provided, or the code specified in the configuration.
77+
- **alarm_arm_home**: Arms the alarm in home mode.
78+
- **alarm_arm_away**: Arms the alarm in standard away mode.
79+
- **alarm_trigger**: Trigger an alarm on the Envisalink connected alarm system. For example, a newer zwave/zigbee sensor can now be integrated into a legacy alarm system using a Home Assistant automation.
80+
- **alarm_keypress**: Sends a string of up to 6 characters to the alarm. *DSC alarms only*

source/_components/hdmi_cec.markdown

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,28 @@ Create a symlink to the `cec` installation.
3333
$ ln -s /usr/local/lib/python3.4/dist-packages/cec /path/to/your/venv/lib/python3.4/site-packages
3434
```
3535

36-
For the default virtual environment of a [Raspberry Pi AIO](/getting-started/installation-raspberry-pi-all-in-one/) the command would be as follows.
36+
For the default virtual environment of a [Raspberry Pi All-In-One installation](/getting-started/installation-raspberry-pi-all-in-one/) the command would be as follows.
3737

3838
```bash
3939
$ ln -s /usr/local/lib/python3.4/dist-packages/cec /srv/hass/hass_venv/lib/python3.4/site-packages
4040
```
4141

4242
<p class='note'>If after symlinking and adding `hdmi_cec:` to your configuration you are getting the following error in your logs,
43-
`* failed to open vchiq instance` you will also need to add the user account Home Asssistant runs under, to the `video` group. To add the Home Assisitant's user account to the `video` group, run the following command. `$ usermod -a -G video <hass_user_account>`
43+
`* failed to open vchiq instance` you will also need to add the user account Home Asssistant runs under, to the `video` group. To add the Home Assistant user account to the `video` group, run the following command. `$ usermod -a -G video <hass_user_account>`
4444
</p>
4545

4646
## {% linkable_title Testing your installation %}
4747

48-
* Login to Raspberry Pi `ssh pi@your_raspberry_pi_ip`
49-
* at the command line type: `echo scan | cec-client -s -d 1`
48+
* Login to Raspberry Pi
49+
50+
```bash
51+
ssh pi@your_raspberry_pi_ip
52+
```
53+
* at the command line type:
54+
55+
```bash
56+
echo scan | cec-client -s -d 1
57+
```
5058
* This will give you the list of devices that are on the bus
5159

5260
```bash

source/_components/input_slider.markdown

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,48 @@ automation:
110110
{% endraw %}
111111
```
112112

113+
114+
Exampleof `input_slider` being used in a bidirectional manner, both being set by and controlled by an MQTT action in an automation.
115+
116+
```yaml
117+
{% raw %}
118+
# Example configuration.yaml entry using 'input_slider' in an action in an automation
119+
120+
# Define input_slider
121+
input_slider:
122+
target_temp:
123+
name: Target Heater Temperature Slider
124+
min: 1
125+
max: 30
126+
step: 1
127+
unit_of_measurement: step
128+
icon: mdi:target
129+
130+
# Automation.
131+
# This automation script runs when a value is received via MQTT on retained topic: setTemperature
132+
# It sets the value slider on the GUI. This slides also had its own automation when the value is changed.
133+
- alias: Set temp slider
134+
trigger:
135+
platform: mqtt
136+
topic: "setTemperature"
137+
# entity_id: input_slider.target_temp
138+
action:
139+
service: input_slider.select_value
140+
data_template:
141+
entity_id: input_slider.target_temp
142+
value: '{{ trigger.payload}}'
143+
144+
# This automation script runs when the target temperature slider is moved.
145+
# It publishes its value to the same MQTT topic it is also subscribed to.
146+
- alias: Temp slider moved
147+
trigger:
148+
platform: state
149+
entity_id: input_slider.target_temp
150+
action:
151+
service: mqtt.publish
152+
data_template:
153+
topic: "setTemperature"
154+
retain: true
155+
payload: '{{ states.input_slider.target_temp.state | int }}'
156+
{% endraw %}
157+
```

source/_components/light.yeelight.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Configuration variables:
3131
3232
<p class='note'>
3333
Before trying to control your light through Home Assistant, you have to setup your bulb using Yeelight app. ( [Android](https://play.google.com/store/apps/details?id=com.yeelight.cherry&hl=fr), [IOS](https://itunes.apple.com/us/app/yeelight/id977125608?mt=8) ).
34-
In the bulb property, you have to enable "Developer Mode"
34+
In the bulb property, you have to enable "Developer Mode" Developer mode may only be available with the latest firmware installed on your bulb. Firmware can be updated in the application after connecting the bulb.
3535
Determine your bulb ip (using router, software, ping ...)
3636
</p>
3737

source/_components/media_player.emby.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ media_player:
2929
Configuration variables:
3030
3131
- **host** (*Required*): The host name or address of the device that is running Emby.
32-
- **api_key** (*Requred*): The api-key you would like home-assistant to use to authenticate.
32+
- **api_key** (*Required*): The api-key you would like home-assistant to use to authenticate.
3333
- **ssl** (*Optional*): True if you want to connect with https. Be sure to set the port also.
3434
- **port** (*Optional*): The port number. Defaults to 8096.

source/_components/openalpr.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Configuration variables:
9191
```yaml
9292
# Example configuration.yaml entry
9393
openalpr:
94-
engine: local
94+
engine: cloud
9595
region: eu
9696
api_key: SK_AAABBBBCCCEEEE
9797
entities:

source/_components/sensor.command_line.markdown

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ There are several ways to get the temperature of your hard drive. A simple solut
4444
$ hddtemp -n /dev/sda
4545
```
4646

47-
To use those information, the entry for a command-line sensor in the `configuration.yaml` file will look like this.
47+
To use this information, the entry for a command-line sensor in the `configuration.yaml` file will look like this.
4848

4949
```yaml
5050
# Example configuration.yaml entry
@@ -68,10 +68,9 @@ Thanks to the [`proc`](https://en.wikipedia.org/wiki/Procfs) file system, variou
6868
value_template: '{% raw %}{{ value | multiply(0.001) }}{% endraw %}'
6969
```
7070

71-
### {% linkable_title Monitoring the failed login attempt on HA %}
72-
73-
If you want to get the fillowing in case you want to know if someone is hammering your server is open on the net
71+
### {% linkable_title Monitoring failed login attempts on Home Assistant %}
7472

73+
If you'd like to know how many failed login attempts are made to Home Assistant, add the following to your `configuration.yaml` file:
7574

7675
```yaml
7776
# Example configuration.yaml entry
@@ -81,7 +80,7 @@ sensor:
8180
command: grep -c 'Login attempt' /home/hass/.homeassistant/home-assistant.log
8281
```
8382

84-
Make sure to configure the logger to monitor the proper component at the proper level.
83+
Make sure to configure the [logger component](/components/logger) to monitor the [http component](https://home-assistant.io/components/http/) at least the `warning` level.
8584

8685
```yaml
8786
# Example working logger settings that works
@@ -115,7 +114,7 @@ sensor:
115114

116115
### {% linkable_title Use an external script %}
117116

118-
The example is doing the same as the [aREST sensor](/components/sensor.arest/) but with an external Python script. It should give you an idea about interacting with devices which are exposing a RESTful API.
117+
The example is doing the same as the [aREST sensor](/components/sensor.arest/) but with an external Python script. It should give you an idea about interfacing with devices which are exposing a RESTful API.
119118

120119
The one-line script to retrieve a value is shown below. Of course would it be possible to use this directly in the `configuration.yaml` file but need extra care about the quotation marks.
121120

source/_components/sensor.synologydsm.markdown

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ ha_iot_class: depends
1616

1717
This `synologydms` sensor allows getting various statistics from your [Synology NAS](https://www.synology.com).
1818

19-
<p class='note warning'>
20-
This sensor will wake up your Synology NAS if it's in hibernation mode.
21-
</p>
22-
2319
To use the `synologydsm` sensor in your installation, add the following to your `configuration.yaml` file:
2420

2521
```yaml
@@ -34,12 +30,19 @@ sensor:
3430
- memory_real_usage
3531
- network_up
3632
```
37-
Note: After booting Home Assistant it can take up to 15 minutes for the sensors to show up. This is due to the fact that sensors are created after Home Assistant has fully been initialized.
33+
34+
<p class='note'>
35+
After booting Home Assistant it can take up to 15 minutes for the sensors to show up. This is due to the fact that sensors are created after Home Assistant has fully been initialized.
36+
</p>
37+
38+
<p class='note warning'>
39+
This sensor will wake up your Synology NAS if it's in hibernation mode.
40+
</p>
3841
3942
Configuration variables:
4043
4144
- **host** (*Required*): The IP address of the Synology NAS to monitor
42-
- **port** (*Optional*): The port number on which the Synology NAS is reachable. Defaults to `5000`.
45+
- **port** (*Optional*): The port number on which the Synology NAS is reachable. Defaults to `5000`.
4346
- **username** (*Required*): An user to connect to the Synology NAS (a separate account is advised, see the Separate User Configuration section below for details).
4447
- **password** (*Required*): The password of the user to connect to the Synology NAS.
4548
- **volumes** (*Optional*): Array of volumes to monitor. Defaults to all volumes.
@@ -78,6 +81,6 @@ Configuration variables:
7881

7982
Separate User Configuration:
8083

81-
Due to the nature of the Synology DSM API it is required to grant the user admin rights. This is related to the fact that utilization information is stored in the core module.
84+
Due to the nature of the Synology DSM API it is required to grant the user admin rights. This is related to the fact that utilization information is stored in the core module.
8285

8386
When creating the user it is possible to deny access to all locations and applications. By doing this the user will not be able to login to the web interface or view any of the files on the Synology NAS. It is still able to read the utilization and storage information using the API.

source/_components/switch.command_line.markdown

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Configuration variables:
3838
- **value_template** (*Optional*): If specified, `command_state` will ignore the result code of the command but the template evaluating to `true` will indicate the switch is on.
3939
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
4040

41+
A note on `friendly_name`:
42+
43+
When set, the `friendly_name` had been previously used for API calls and backend configuration instead of the `object_id` ("identifier"), but [this behavior is changing](https://github.com/home-assistant/home-assistant/pull/4343) to make the `friendly_name` for display purposes only. This allows users to set an `identifier` that emphasizes uniqueness and predictability for API and config purposes but have a prettier `friendly_name` still show up in the UI. As an additional benefit, if a user wanted to change the `friendly_name` / display name (e.g. from "Kitchen Lightswitch" to "Kitchen Switch" or "Living Room Light", or remove the `friendly_name` altogether), he or she could do so without needing to change existing automations or API calls. See aREST device below for an example.
44+
4145
## {% linkable_title Examples %}
4246

4347
In this section you find some real life examples of how to use this switch.
@@ -51,14 +55,16 @@ The example below is doing the same as the [aREST switch](/components/switch.are
5155
switch:
5256
platform: command_line
5357
switches:
54-
arest_pin4:
58+
arest_pin_four:
5559
command_on: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/1"
5660
command_off: "/usr/bin/curl -X GET http://192.168.1.10/digital/4/0"
5761
command_state: "/usr/bin/curl -X GET http://192.168.1.10/digital/4"
5862
value_template: '{% raw %}{{ return_value == "1" }}{% endraw %}'
59-
friendly_name: aREST Pin 4
63+
friendly_name: Kitchen Lightswitch
6064
```
6165

66+
Given this example, in the UI one would see the `friendly_name` of "Kitchen Light". However, the `identifier` is `arest_pin_four`, making the `entity_id` `switch.arest_pin_four`, which is what one would use in [`automation`](https://home-assistant.io/components/automation/) or in [API calls](https://home-assistant.io/developers/).
67+
6268
### {% linkable_title Shutdown your local host %}
6369

6470
This switch will shutdown your system that is hosting Home Assistant.

source/developers/server_sent_events.markdown

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Visit [http://localhost:8123/local/sse.html](http://localhost:8123/local/sse.htm
4444

4545
## {% linkable_title Examples %}
4646

47-
A simple way to consume server-sent events is to use a command-line http client like [httpie][https://httpie.org/]. Installation info is on the site (if you use Homebrew, it's `brew install httpie`). Once installed, run this snippet from your terminal:
47+
A simple way to consume server-sent events is to use a command-line http client like [httpie](https://httpie.org/). Installation info is on the site (if you use Homebrew, it's `brew install httpie`). Once installed, run this snippet from your terminal:
4848

4949
```bash
5050
$ http --stream http://localhost:8123/api/stream x-ha-access:YOUR_PASSWORD content-type:application/json
@@ -62,11 +62,7 @@ If you want to test the server-sent events without creating a website, the Pytho
6262
$ pip3 install sseclient
6363
```
6464

65-
<<<<<<< HEAD
66-
The simplest script to consume the SSE looks like the following snippet.
67-
=======
68-
The simplest script to consume the SSE in Python looks like this:
69-
>>>>>>> current
65+
A simple script to consume SSE in Python looks like this:
7066

7167
```python
7268
from sseclient import SSEClient
@@ -75,4 +71,3 @@ messages = SSEClient('http://localhost:8123/api/stream?api_password=YOUR_PASSWOR
7571
for msg in messages:
7672
print(msg)
7773
```
78-

0 commit comments

Comments
 (0)