DHT22 now uses AM2301 (2). Additional notes to set TempUnits and Update Interval

Roger Lew 2018-12-12 15:59:05 -08:00
parent 8eaf52336c
commit 1bdf1ddda8
1 changed files with 25 additions and 4 deletions

@ -17,25 +17,29 @@ The following single wire sensors are supported:
- DHT11 Temperature and Humidity - ``DHT11 (1)`` in group 1
- DHT21 Temperature and Humidity - ``AM2301 (2)`` in group 1
- AM2301 Temperature and Humidity - ``AM2301 (2)`` in group 1
- DHT22 Temperature and Humidity - ``DHT22 (3)`` in group 1
- AM2302 Temperature and Humidity - ``DHT22 (3)`` in group 1
- AM2321 Temperature and Humidity - ``DHT22 (3)`` in group 1
- DHT22 Temperature and Humidity - ``AM2301 (2)`` in group 1
- AM2302 Temperature and Humidity - ``AM2301 (2)`` in group 1
- AM2321 Temperature and Humidity - ``AM2301 (2)`` in group 1
- Itead SI7021 Temperature and Humidity - ``SI7021 (3)`` in group 1
- DS18B20 Temperature - ``DS18x20 (4)`` in group 2<br/>Enable option ``USE_DS18x20`` in ``user_config.h`` for multiple sensors using OneWire library
- DS18S20 Temperature - ``DS18x20 (4)`` in group 2<br/>Enable option ``USE_DS18x20`` in ``user_config.h`` using OneWire library
- External switch - ``Switch (9)``<br/>Use ``SwitchMode`` to tune its behaviour
- HC-SR501 PIR Motion Detection - ``Switch (9)``<br/>Use ``SwitchMode`` to tune its behaviour
Note: With older releases DHT22, AM20302, and AM2321 sensors operated under ``AM2302 (3)``. They now operate under ``AM2301 (2)``. If you are using a DHT22 or similar and do not see ``AM2302 (3)`` use ``AM2301 (2)``.
You can add a sensor using the following (MQTT) commands:
1. ``modules`` - show supported modules
2. ``module 4`` - select desired module functionality for a Sonoff TH (Wait for the restart)
3. ``gpios`` - show supported sensor types. (DHT21 = AM2301, AM2302 = AM2321 = DHT22)
3. ``gpios`` - show supported sensor types. (e.g. DHT21 = AM2301)
4. ``gpio`` - show current defined sensors on supported GPIO pins
5. ``gpio14 2`` - select sensor AM2301 (Wait for the restart)
For some sensors to show up a power cycle of Sonoff is needed to reset the devices just configured.
## I2C sensor
The following I2C sensors are supported using ``I2C SCL (5)`` and ``I2C SDA (6)`` in group 3:
@ -81,3 +85,20 @@ You can add a device using the following (MQTT) commands:
For some devices a power cycle of Sonoff is needed to reset the interface to the devices just configured.
## Additional Configuration
### Temperature Units
The temperature units can be set to report in Fahrenheit with the command:
``SetOption8 1``
to set back to Celsius use:
``SetOption8 0``
### Update Interval
To change the update interval change the ``TelePeriod``. The default interval is 300 seconds. The interval can be set between 10 and 3600 seconds. To set the update interval to 10 seconds, so the sensor will update 6 times a minute use the command:
``TelePeriod 10``