mirror of https://github.com/arendst/Tasmota.git
Updated Sensor Configuration (markdown)
parent
187c754dfb
commit
2b9d77d0e0
|
@ -1,13 +1,13 @@
|
||||||
Pre:
|
Pre:
|
||||||
[How To Connect a Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Expanding-Sonoffs)
|
[How To Connect a Sensor](https://github.com/arendst/Sonoff-Tasmota/wiki/Expanding-Sonoffs)
|
||||||
|
|
||||||
The software allows for dynamically configuration of sensors and devices to selected GPIO pins. Depending on the type of (Sonoff) Module certain GPIO pins are easily accessable.
|
The software allows for dynamically configuration of sensors and devices to selected GPIO pins. Depending on the type of (Sonoff) Module certain GPIO pins are easily accessible.
|
||||||
|
|
||||||
Sensor configuration is possible by either the web pages OR using the commands ``modules``, ``module``, ``gpios`` and ``gpio``.
|
Sensor configuration is possible by either the web pages OR using the commands ``modules``, ``module``, ``gpios`` and ``gpio``.
|
||||||
|
|
||||||
The software supports:
|
The software supports:
|
||||||
- [single wire sensors](#single-wire-sensor)
|
- [single wire sensors](#single-wire-sensor)
|
||||||
- [dual wire or I2C sensors](#i2c-sensor)
|
- [dual wire or I<sup>2</sup>C sensors](#i2c-sensor)
|
||||||
- [single wire devices](#device)
|
- [single wire devices](#device)
|
||||||
|
|
||||||
Only one sensor per group is allowed.
|
Only one sensor per group is allowed.
|
||||||
|
@ -40,8 +40,8 @@ For some sensors to show up a power cycle of Sonoff is needed to reset the devic
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## I2C sensor
|
## I<sup>2</sup>C sensor
|
||||||
The following I2C sensors are supported using ``I2C SCL (5)`` and ``I2C SDA (6)`` in group 3:
|
The following I<sup>2</sup>C sensors are supported using ``I<sup>2</sup>C SCL (5)`` and ``I<sup>2</sup>C SDA (6)`` in group 3:
|
||||||
|
|
||||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/sensors1.jpg" width="230" align="right" />
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/sensors1.jpg" width="230" align="right" />
|
||||||
|
|
||||||
|
@ -59,16 +59,16 @@ The following I2C sensors are supported using ``I2C SCL (5)`` and ``I2C SDA (6)`
|
||||||
- SHT11 Temperature and Humidity in group 3c
|
- SHT11 Temperature and Humidity in group 3c
|
||||||
- SHT15 Temperature and Humidity in group 3c
|
- SHT15 Temperature and Humidity in group 3c
|
||||||
|
|
||||||
You can add I2C sensors using the following (MQTT) commands:
|
You can add I<sup>2</sup>C sensors using the following (MQTT) commands:
|
||||||
|
|
||||||
1. ``modules`` - show supported modules
|
1. ``modules`` - show supported modules
|
||||||
2. ``module 1`` - select desired module functionality for a Sonoff Basic (Wait for the restart)
|
2. ``module 1`` - select desired module functionality for a Sonoff Basic (Wait for the restart)
|
||||||
3. ``gpios`` - show supported sensor types. We need two pins: I2C SCL (5) and I2C SDA (6)
|
3. ``gpios`` - show supported sensor types. We need two pins: I<sup>2</sup>C SCL (5) and I<sup>2</sup>C SDA (6)
|
||||||
4. ``gpio`` - show current defined sensors on supported GPIO pins
|
4. ``gpio`` - show current defined sensors on supported GPIO pins
|
||||||
5. ``gpio14 5`` - select I2C SCL (Wait for the restart)
|
5. ``gpio14 5`` - select I<sup>2</sup>C SCL (Wait for the restart)
|
||||||
6. ``gpio4 6`` - select I2C SDA (Wait for the restart)
|
6. ``gpio4 6`` - select I<sup>2</sup>C SDA (Wait for the restart)
|
||||||
|
|
||||||
The software will autodetect the connected I2C devices. For some sensors to show up a power cycle of Sonoff is needed to reset the devices just configured.
|
The software will autodetect the connected I<sup>2</sup>C devices. For some sensors to show up a power cycle of Sonoff is needed to reset the devices just configured.
|
||||||
|
|
||||||
## Device
|
## Device
|
||||||
The following additional device(s) are supported:
|
The following additional device(s) are supported:
|
||||||
|
|
Loading…
Reference in New Issue