Merge pull request #231 from MartinHjelmare/update-mysensors

Update mysensors
This commit is contained in:
Paulus Schoutsen 2016-02-18 23:18:57 -08:00
commit 354ec7d9d3
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@
layout: page
title: "MySensors"
description: "Instructions how to integrate MySensors sensors into Home Assistant."
date: 2016-02-15 17:37 +0100
date: 2016-02-18 20:13 +0100
sidebar: true
comments: false
sharing: true
@ -31,6 +31,7 @@ mysensors:
debug: true
persistence: true
version: '1.5'
optimistic: 'true'
```
Configuration variables:
@ -41,6 +42,7 @@ Configuration variables:
- **persistence_file** (*Optional*): Path to a file to save sensor information. The file extension determines the file type. Currently supported file types are 'pickle' and 'json'.
- **version** (*Optional*): Specifies the MySensors protocol version to use. Supports 1.4 and 1.5. Default is 1.4.
- **baud_rate** (*Optional*): Specifies baud rate of the connected gateway. Default is 115200.
- **optimistic** (*Optional*): Enable or disable optimistic mode for actuators (switch/light). Default is false. Set this to true if no state feedback from actuators is possible. Home Assistant will assume that the command succeeded and change state.
If you are using an original Arduino the port will be named `ttyACM*`. The exact number can be determined with the command shown below.

View File

@ -2,7 +2,7 @@
layout: page
title: "MySensors Sensor"
description: "Instructions how to integrate MySensors sensors into Home Assistant."
date: 2016-01-17 15:49
date: 2016-02-18 20:13 +0100
sidebar: true
comments: false
sharing: true
@ -55,6 +55,12 @@ S_LIGHT_LEVEL | V_LEVEL
S_AIR_QUALITY | V_LEVEL (replaces V_DUST_LEVEL)
S_DUST | V_LEVEL (replaces V_DUST_LEVEL)
### {% linkable_title Custom unit of measurement %}
Some sensor value types are not specific for a certain sensor type. These do not have a default unit of measurement in Home Assistant. For example, the V_LEVEL type can be used for different sensor types, dust, sound, vibration etc.
By using V_UNIT_PREFIX, it's possible to set a custom unit for any sensor. The string value that is sent for V_UNIT_PREFIX will be used in preference to any other unit of measurement, for the defined sensors. V_UNIT_PREFIX can't be used as a standalone sensor value type. Sending a supported value type and value from the tables above is also required. V_UNIT_PREFIX is available with MySensors version 1.5 and later.
For more information, visit the [serial api] of MySensors.
[main component]: /components/mysensors/