Базовые популярные платформы ESPHome и ESPEasy
Описаны шаблоны MQTT топиков, которые воспринимаются Sprut.hub и автоматически добавляют устройства при настроенном MQTT контроллере.
Для кого словосочетание "топик MQTT" - это набор символов, а не осмысленное выражение, советуем ознакомиться с теоретической частью про данный протокол, написанной в максимально доступной форме.
Модель | ESPEasy | ESPHome |
---|---|---|
DS18B20 | SprutHub/DS18B20/temperature | /sensor/ds18b20/state |
BME280 | SprutHub/BME280/Pressure
SprutHub/BME280/Temperature /BME280/Humidity |
/sensor/bme280_pressure/state
/sensor/bme280_temperature/state /sensor/bme280_humidity/state |
BMP280 | SprutHub/BMP280/Pressure
SprutHub/BMP280/Temperature |
/sensor/bmp280_pressure/state
/sensor/bmp280_temperature/state |
Contact | SprutHub/Contact/State | |
DHT11 | SprutHub/DHT11/Temperature
SprutHub/DHT11/Humidity |
/sensor/dht11_temperature/state
/sensor/dht11_humidity/state |
DHT22 | SprutHub/DHT22/Temperature
SprutHub/DHT22/Humidity |
/sensor/dht22_temperature/state
/sensor/dht22_humidity/state |
HC-SR501 | SprutHub/HC-SR501/State | |
MH-Z19 | SprutHub/MH-Z19_([0-9])/PPM
SprutHub/MH-Z19_(2)/PPM /MH-Z19_(2)/Temperature |
/sensor/mh-z19/state
/sensor/mh-z19/state /sensor/mh-z19_temperature/state |
Outlet | Состояние: SprutHub/Outlet/Switch
Включение: SprutHub/gpio/12 |
|
Relay | Состояние: SprutHub/Relay/Switch
Включение: SprutHub/gpio/12 |
|
PZEM-004 | SprutHub/PZEM-004/Voltage_V
SprutHub/PZEM-004/Current_A SprutHub/PZEM-004/Power_W SprutHub/PZEM-004/Energy_WH |
/sensor/pzem-004_voltage_v/state
/sensor/pzem-004_current_a/state /sensor/pzem-004_power_w/state /sensor/pzem-004_energy_wh/state |
Senseair S8 | SprutHub/Senseair/co2 | /sensor/senseair/state |
LYWSD02 | /sensor/(lywsd02.*)_temperature/state
/sensor/(2)_humidity/state /sensor/(2)_battery_level/state | |
YWSD03MMC | /sensor/(lywsd03mmc.*)_temperature/state
/sensor/(2)_humidity/state /sensor/(2)_battery_level/state |
Другие устройства
Модель | Топики |
---|---|
Sonoff 1CH (Tasmota) | stat/(1)/POWER
cmnd/(1)/POWER |
Sonoff 4CH (Tasmota) | stat/(.*)/POWER([1-4])
cmnd/(.*)/POWER([1-4]) |
Shelly | shellies/(.*)/relay/([0-9])
shellies/(1)/relay/(2)/command |
Drivent | Поддержка "из коробки" |