SHT3x-D remove accuracy

This commit is contained in:
Otto Winter 2018-06-07 14:26:06 +02:00
parent f7ae5a2f62
commit d46fdd0d45
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
5 changed files with 3 additions and 23 deletions

View File

@ -18,10 +18,6 @@ Example Usage
// Basic
auto sht3xd = App.make_sht3xd_sensor("SHT31D Temperature", "SHT31D Humidity");
// Advanced
// default accuracy is high
sht3xd.sht3xd->set_accuracy(sensor::SHT3XD_ACCURACY_LOW);
.. cpp:namespace:: nullptr
See :cpp:func:`Application::make_sht3xd_sensor`.
@ -34,8 +30,6 @@ API Reference
:protected-members:
:undoc-members:
.. doxygenenum:: sensor::SHT3XDAccuracy
.. doxygenclass:: sensor::SHT3XDTemperatureSensor
:members:
:protected-members:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 KiB

View File

@ -1,24 +1,12 @@
SHT3X-D Temperature+Humidity Sensor
===================================
.. warning::
This sensor is experimental has not been fully tested yet as I do not own all sensors. If you
can verify it works (or if it doesn't), please notify me on `discord <https://discord.gg/KhAMKrd>`__.
The ``sht3xd`` sensor platform Temperature+Humidity sensor allows you to use your Sensiron SHT31-D
(`datasheet <https://cdn-shop.adafruit.com/product-files/2857/Sensirion_Humidity_SHT3x_Datasheet_digital-767294.pdf>`__,
`Adafruit`_ ) sensors with
esphomelib. The :ref:`I²C Bus <i2c>` is
required to be set up in your configuration for this sensor to work.
.. figure:: images/sht3xd-full.jpg
:align: center
:target: `Adafruit`_
:width: 50.0%
SHT3X-D Temperature & Humidity Sensor. Image by `Adafruit`_.
.. _Adafruit: https://www.adafruit.com/product/2857
.. figure:: images/temperature-humidity.png
@ -34,7 +22,6 @@ required to be set up in your configuration for this sensor to work.
name: "Living Room Temperature"
humidity:
name: "Living Room Humidity"
accuracy: high
address: 0x44
update_interval: 15s
@ -54,9 +41,7 @@ Configuration variables:
- All other options from :ref:`Sensor <config-sensor>` and :ref:`MQTT Component <config-mqtt-component>`.
- **address** (*Optional*, int): Manually specify the i^2c address of the sensor.
Defaults to ``0xff``.
- **accuracy** (*Optional*, string): The accuracy of the sensor. One of ``low``, ``medium`` and ``high``.
Lower accuracies allow for faster update intervals. Defaults to ``high``.
Defaults to ``0x44``.
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
sensor. Defaults to ``15s``. See :ref:`sensor-default_filter`.

View File

@ -11,5 +11,6 @@ Version 1.7.0
Breaking Changes
~~~~~~~~~~~~~~~~
- Fixed the :doc:`SHT3x-D </esphomeyaml/component/sensor/sht3xd>` component and removed the ``accuracy``
parameter. The accuracy now defaults to ``HIGH``.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 33 KiB