Tasmota - MQTT - HomeAssistant
How to integrate ESP32 Tasmota device sensors to Home assistant via MQTT
Links:
Configure steps:
- HA : If using the Mosquitto Broker add-on for Home Assistant, first create a new Home Assistant user under Settings > People.
- HA : Integrations >> MQTT Settings >> RE-CONFIGURE MQTT
- Username: mqtt_broker_user (former:homeassistant)
- Password: xxxxx
- TASMOTA : Then, in Tasmota > Configure MQTT under “Host” enter the address of your Home Assistant instance and under “User” and “Password” enter the Home Assistant user you just created.
ZIGBEE - Tuya Smart Wifi ZigBee Temperature And Humidity
Tuya Smart Wifi ZigBee Temperature And Humidity Sensor Indoor Hygrometer Controller Monitoring For Alexa Google Home
Buy:
BLE - LYWSD03MMC - Thermometer + Humidity
Xiaomi Smart LCD Screen Digital Thermometer 2 Mijia Bluetooth Temperature Humidity Sensor Moisture Meter Mijia App
(upgradable firmware via Bluetooth)
Buy:
Links:
Homeassistant - ESPhome BLE proxy
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
bluetooth_proxy:
active: true
sensor:
- platform: xiaomi_lywsd03mmc
mac_address: "A4:C1:38:B1:CD:7F"
bindkey: "eef418daf699a0c188f3bfd17e4565d9"
temperature:
name: "LYWSD03MMC Temperature"
humidity:
name: "LYWSD03MMC Humidity"
battery_level:
name: "LYWSD03MMC Battery Level"
Private data:
BLE - SOIL HUMIDITY
Links:
DHT 11 / 22 - Temperature and Humidity
Links:
DHT11 (blue) Keyes module pins :
- DATA = "S" pin (leftmost)
- VCC = middle pin
- GND = "-" pin (rightmost)
I2C - BME280 senzor teploty, tlaku a vlhkosti vzduchu
Buy:
Libs:
Links:
HW:
- bst-bme280.pdf
- Pracovné napätie: 1.8 – 5V
- Rozsah merania: 300 hPa – 1100 hPa (tlak) / -40°C – 85C° (teplota) / 0 – 100% (vlhkosť)
- Rozlíšenie: 0.18 hPa, 0.01°C, 0.008%
- Prúd: 2.8 uA
- Rozhranie: I2C 3.4 MHz, adresy 0x76/0x77 (podľa pinu SDO Low/High)
- Scratch the connection between the middle and the left copper pad to disconnect those using a sharp knife.
I2C - SOIL HUMIDITY - Capacitive
Buy:
Links:
Troubleshooting:
HW:
I2C Protocol (by https://github.com/Miceuz/i2c-moisture-sensor)
- The default I2C address of the Chirp is 0x20.
| Name | Register | R/W | Data length | Payload |
| GET_CAPACITANCE | 0x00 | (r) | 2 | 0..65535 |
| SET_ADDRESS | 0x01 | (w) | 1 | 0xNN |
| GET_ADDRESS | 0x02 | (r) | 1 | 0xNN |
| MEASURE_LIGHT | 0x03 | (w) | 0 | (start commnad) |
| GET_LIGHT | 0x04 | (r) | 2 | 0..65536 |
| GET_TEMPERATURE | 0x05 | (r) | 2 | 0..65535 |
| RESET | 0x06 | (w) | 0 |
| GET_VERSION | 0x07 | (r) | 1 | 0x24 / 0x26 |
| SLEEP | 0x08 | (w) | 0 |
| GET_BUSY | 0x09 | (r) | 1 | 0/1 .. isCapacitanceMeasurementInProgress OR isTemperatureMeasurementInProgress OR isLightMeasurementInProgress |
ADC - SOIL HUMIDITY - Capacitive Analog
Links:
HW:
- Analog output: 0-3V
- Power supply voltage: 3.3-5.5V (regulated by regulator)
- Current: 5mA
UART - Power Meter
PZEM-004T 3.0 Version TTL Modbus-RTU Power Meter Kwh Meter AC Single Phase 100A Electric Volt Amp Frequency Power Factor Tester
(5 USD)
Buy:
BINARY TOUCH - Kapacitní Dotykové tlačítko TTP223
Links:
Params:
- Napájecí napětí 2-5.5V
- Rozměry: 15x11mm
- Módy: jog, self-locking
- Ploška "A" bez propájení - výstup při doteku do HIGH, s propájením do LOW
- Po propájení plošky "B" bude fungovat jako tlačítko s pamětí.
- Moznost znizenia citlicosti pridavnym kapacitorom (Cs)
- Moznost odpojit LED
BINARY TOUCH - TTP223 senzor dotyku plochý
Links:
Na doske sa nachádzajú dva skratovacie jumpery:
- A – spojený:aktívny v 0 | rozpojený:aktívny v1
- T – spojený:západkový(toggle) | momentový(momentary) | bude fungovat jako tlačítko s pamětí.
Rotary encoder(s)
Links:
KY-040 HW connect :
ROR ESP32 connection exmaple
---------------------------------
GND GND
+ 3.3V
SW GPIO25 - button
DT GPIO27 - A direction
CLK GPIO32 - B direction
Sparkfun RGB - top view
side A Side B
--------------------------
R - Red cathode
B-dir G - Green cathode
C-GND common SW - button
A-dir B - Blue cathode
+ - Common anode + common for SW
--------------------------
IR remote control sensor (KY-022)
KY-022 pins :
- 1 - (-) Ground
- 2 - 3.3V
- 3 - (S)ignal
Links:
Air quality
| NAME | INTERFACE | AIR | POWER | PRICE | DUST | TEMP | HUMID | PRESS | ESPHOME |
| Senserion SEN55-SDN-T (36g) - NO CABLE!! | I2C JST-1.25mm-6pin | PM 1,2,4,10 | 5V/60mA | 860 Kc | 0.3..10um | -10..50 °C | RH 0..90 % | - | https://esphome.io/components/sensor/sen5x.html |
| Senserion SEN54-SDN-T (36g) - NO CABLE!! | I2C JST-1.25mm-6pin | PM 1,2,4,10 | 5V/60mA | 1020 Kc | 0.3..10um | -10..50 °C | RH 0..90 % | - | dtto |
| Senserion SPS30 (27g) Best - NO CABLE!! | I2C/UART JST-1.5mm-5pin | PM 1,2,4,10 | 5V/60mA | 830 Kc | 0.3..10um | -10..60 °C | - | 86kPa do 110kPa | https://esphome.io/components/sensor/sps30.html |
| Nova PM SDS011 (60g) | UART/PWM JST-XH7 | PM 2,10 | 5V/70mA | 710 Kc | 0.3..10um | -10..50 °C | - | 86kPa do 110kPa | https://esphome.io/components/sensor/sds011.html |
| Plantower PMS5003T (40g) - INCL.CABLE | UART | PM 1,2,10 | 5V/100mA | 550 Kc | 0.3..10um | -10..60 °C | RH 0..99 % | - | https://esphome.io/components/sensor/pmsx003.html |
| Plantower PMS7003T (33g) - INCL.CABLE | UART | PM 1,2,10 | 5V/100mA | 680 Kc | 0.3..10um | -10..60 °C | RH 0..99 % | - | dtto |
| Plantower PMS6003 (43g) | UART | PM0.5 - PM2.5 | 5V/100mA | 1300 Kc | 0.3..10um | -10..60 °C | RH 0..95 % | - | NO |
| GP2Y1010AU0F (techfun) | | PM2.5 | | 9.00 E | | | - | - | https://techfun.sk/produkt/opticky-senzor-kvality-vzduchu-gp2y1010au0f/ https://community.home-assistant.io/t/sharp-gp2y1010au-pm2-5-particle-dust-sensor-working/450844 |
Notes
- Senserion SENS5x CABLES (JST-1.25) :
- Senserion SPS30 CALBLES (JST-1.5) :
- Nova PM SDS011 HowTo