From 573220aa551a3731cd6c4e86ddaecce274ef6358 Mon Sep 17 00:00:00 2001 From: MartinHjelmare Date: Thu, 18 Feb 2016 21:16:38 +0100 Subject: [PATCH] Update mysensors * Add optimistic config setting. * Explain how to set a custom unit of measurement for sensors. --- source/_components/mysensors.markdown | 4 +++- source/_components/sensor.mysensors.markdown | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/source/_components/mysensors.markdown b/source/_components/mysensors.markdown index 02335ffbd73..247cffe102a 100644 --- a/source/_components/mysensors.markdown +++ b/source/_components/mysensors.markdown @@ -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. diff --git a/source/_components/sensor.mysensors.markdown b/source/_components/sensor.mysensors.markdown index 4fce2117198..ed405f6044c 100644 --- a/source/_components/sensor.mysensors.markdown +++ b/source/_components/sensor.mysensors.markdown @@ -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/