From bfd28a64c5356f48c97d73a091dc7b1e22bfab8e Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Sun, 31 Jan 2021 19:53:30 +0100 Subject: [PATCH 1/2] Remove jagged --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 550abb8f9..b07f91537 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ This custom component is an alternative for the standard build in [mitemp_bt](ht (small square body, segment LCD, broadcasts temperature and humidity once in about 10 minutes and battery level once in an hour (original firmware). With the original firmware, advertisements are encrypted, therefore you need to set an encryption key in your configuration, see for instructions the [encryption_key](#encryption_key) option (not needed for sensors with custom firmware). - `ble_monitor` also supports custom ATC firmware (both the firmware by `ATC1441`, available [here](https://github.com/atc1441/ATC_MiThermometer), and the improved firmware by `pvvx` available [here](https://github.com/pvvx/ATC_MiThermometer)). Both custom firmware's broadcast temperature, humidity, battery voltage and battery level in percent (note that both battery sensors are only visible as sensor with `batt_entities: True`). Reloading the integration is needed to receive the voltage sensor after switching the firmware. For the `pvvx` firmware, it is advised to change the `advertisement type` from `all` to `custom`. Sending multiple advertisment types at the same time might cause the voltage sensor from not showing up, depending on which advertisement comes first. The advertisement type `custom` will also result in a higher accuracy. It is also advised to change the `jagged` option to `False`) + `ble_monitor` also supports custom ATC firmware (both the firmware by `ATC1441`, available [here](https://github.com/atc1441/ATC_MiThermometer), and the improved firmware by `pvvx` available [here](https://github.com/pvvx/ATC_MiThermometer)). Both custom firmware's broadcast temperature, humidity, battery voltage and battery level in percent (note that both battery sensors are only visible as sensor with `batt_entities: True`). Reloading the integration is needed to receive the voltage sensor after switching the firmware. For the `pvvx` firmware, it is advised to change the `advertisement type` from `all` to `custom`. Sending multiple advertisment types at the same time might cause the voltage sensor from not showing up, depending on which advertisement comes first. The advertisement type `custom` will also result in a higher accuracy.) ![LYWSD03MMC](/pictures/LYWSD03MMC.jpg) @@ -210,7 +210,6 @@ ble_monitor: batt_entities: False rounding: True decimals: 1 - jagged: True period: 60 log_spikes: False use_median: False @@ -276,10 +275,6 @@ Data from sensors with other addresses will be ignored. Default value: True (boolean)(Optional) Enable/disable rounding of the average of all measurements taken within the number seconds specified with 'period'. This option is designed to disable rounding and thus keep the full average accuracy. When disabled, the `decimals` option is ignored. Default value: True -#### jagged - - (boolean)(Optional) This option is only applicable to LYWSD03MMC and MHO-C401 and will convert each individual received humidity measurement to an integer. The sensor sometimes sends measurements with decimals, while it's accuracy should be a measurement without any decimals (with default firmware). This option will remove these small fluctuations in the received data. Default value: True - #### decimals (positive integer)(Optional) Number of decimal places to round (will be ignored if rounding is disabled). Default value: 1 From 069cb590fd48fba772e99ff4bfe4a2594c2a38d3 Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Sun, 31 Jan 2021 19:55:10 +0100 Subject: [PATCH 2/2] Remove jagged --- info.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/info.md b/info.md index 6ba54aace..4c2cb313c 100644 --- a/info.md +++ b/info.md @@ -7,7 +7,7 @@ # Changes in 0.9.11-beta -- Added an option to disable Jagged humidity measurements of LYWSD03MMC and MHO-C401 (@jan-be) +- Remove jagged humidity measurements for sensors with ATC firmware - Added support for Bluetooth 5 advertisements (extended format) for sensors with ATC firmware - Improved support for motion sensor of MJYD02YL Xiaomi Motion Activated Night Light sensor (thanks for the support of @andrewjswan and @skynetua). @@ -92,7 +92,7 @@ This custom component is an alternative for the standard build in [mitemp_bt](ht (small square body, segment LCD, broadcasts temperature and humidity once in about 10 minutes and battery level once in an hour (original firmware). With the original firmware, advertisements are encrypted, therefore you need to set an encryption key in your configuration, see for instructions the [encryption_key](#encryption_key) option (not needed for sensors with custom firmware). - `ble_monitor` also supports custom ATC firmware (both the firmware by `ATC1441`, available [here](https://github.com/atc1441/ATC_MiThermometer), and the improved firmware by `pvvx` available [here](https://github.com/pvvx/ATC_MiThermometer)). Both custom firmware's broadcast temperature, humidity, battery voltage and battery level in percent (note that both battery sensors are only visible as sensor with `batt_entities: True`). Reloading the integration is needed to receive the voltage sensor after switching the firmware. For the `pvvx` firmware, it is advised to change the `advertisement type` from `all` to `custom`. Sending multiple advertisment types at the same time might cause the voltage sensor from not showing up, depending on which advertisement comes first. The advertisement type `custom` will also result in a higher accuracy. It is also advised to change the `jagged` option to `False` + `ble_monitor` also supports custom ATC firmware (both the firmware by `ATC1441`, available [here](https://github.com/atc1441/ATC_MiThermometer), and the improved firmware by `pvvx` available [here](https://github.com/pvvx/ATC_MiThermometer)). Both custom firmware's broadcast temperature, humidity, battery voltage and battery level in percent (note that both battery sensors are only visible as sensor with `batt_entities: True`). Reloading the integration is needed to receive the voltage sensor after switching the firmware. For the `pvvx` firmware, it is advised to change the `advertisement type` from `all` to `custom`. Sending multiple advertisment types at the same time might cause the voltage sensor from not showing up, depending on which advertisement comes first. The advertisement type `custom` will also result in a higher accuracy. ![LYWSD03MMC](https://raw.github.com/custom-components/ble_monitor/master/pictures/LYWSD03MMC.jpg) @@ -239,7 +239,6 @@ ble_monitor: batt_entities: False rounding: True decimals: 1 - jagged: True period: 60 log_spikes: False use_median: False @@ -309,10 +308,6 @@ Data from sensors with other addresses will be ignored. Default value: True (positive integer)(Optional) Number of decimal places to round (will be ignored if rounding is disabled). Default value: 1 -#### jagged - - (boolean)(Optional) This option is only applicable to LYWSD03MMC and MHO-C401 and will convert each individual received humidity measurement to an integer. The sensor sometimes sends measurements with decimals, while it's accuracy should be a measurement without any decimals (with default firmware). This option will remove these small fluctuations in the received data. Default value: True - #### period (positive integer)(Optional) The period in seconds during which the sensor readings are collected and transmitted to Home Assistant after averaging. Default value: 60.