Bigmanekb (обсуждение | вклад) Нет описания правки |
Red (обсуждение | вклад) Нет описания правки |
||
(не показаны 4 промежуточные версии 2 участников) | |||
Строка 3: | Строка 3: | ||
Описаны шаблоны MQTT топиков, которые воспринимаются Sprut.hub и автоматически добавляют устройства при настроенном MQTT контроллере. | Описаны шаблоны MQTT топиков, которые воспринимаются Sprut.hub и автоматически добавляют устройства при настроенном MQTT контроллере. | ||
Для кого словосочетание "топик MQTT" - это набор символов, а не осмысленное выражение, советуем ознакомиться с теоретической частью про данный протокол, написанной в [ | Для кого словосочетание "топик MQTT" - это набор символов, а не осмысленное выражение, советуем ознакомиться с теоретической частью про данный протокол, написанной в [[Как работает протокол MQTT (немного теории)|максимально доступной форме]]. | ||
{| class="wikitable" | {| class="wikitable" | ||
!Модель | !Модель | ||
Строка 10: | Строка 10: | ||
|- | |- | ||
|DS18B20 | |DS18B20 | ||
|/DS18B20/temperature | |SprutHub/DS18B20/temperature | ||
|/sensor/ds18b20/state | |spruthub_(.*)/sensor/ds18b20/state | ||
|- | |- | ||
|BME280 | |BME280 | ||
|/BME280/Pressure | |SprutHub/BME280/Pressure | ||
/BME280/Temperature | SprutHub/BME280/Temperature | ||
/BME280/Humidity | |||
|/sensor/bme280_pressure/state | SprutHub/BME280/Humidity | ||
/sensor/bme280_temperature/state | |spruthub_(.*)/sensor/bme280_pressure/state | ||
/sensor/bme280_humidity/state | spruthub_(.*)/sensor/bme280_temperature/state | ||
spruthub_(.*)/sensor/bme280_humidity/state | |||
|- | |- | ||
|BMP280 | |BMP280 | ||
|/BMP280/Pressure | |SprutHub/BMP280/Pressure | ||
/BMP280/Temperature | SprutHub/BMP280/Temperature | ||
|/sensor/bmp280_pressure/state | |spruthub_(.*)/sensor/bmp280_pressure/state | ||
/sensor/bmp280_temperature/state | spruthub_(.*)/sensor/bmp280_temperature/state | ||
|- | |- | ||
|Contact | |Contact | ||
|/Contact/State | |SprutHub/Contact/State | ||
| | | | ||
|- | |- | ||
|DHT11 | |DHT11 | ||
|/DHT11/Temperature | |SprutHub/DHT11/Temperature | ||
/DHT11/Humidity | SprutHub/DHT11/Humidity | ||
|/sensor/dht11_temperature/state | |spruthub_(.*)/sensor/dht11_temperature/state | ||
/sensor/dht11_humidity/state | spruthub_(.*)/sensor/dht11_humidity/state | ||
|- | |- | ||
|DHT22 | |DHT22 | ||
|/DHT22/Temperature | |SprutHub/DHT22/Temperature | ||
/DHT22/Humidity | SprutHub/DHT22/Humidity | ||
|/sensor/dht22_temperature/state | |spruthub_(.*)/sensor/dht22_temperature/state | ||
/sensor/dht22_humidity/state | spruthub_(.*)/sensor/dht22_humidity/state | ||
|- | |- | ||
|HC-SR501 | |HC-SR501 | ||
|/HC-SR501 | |SprutHub/HC-SR501/State | ||
| | | | ||
|- | |- | ||
|MH-Z19 | |MH-Z19 | ||
|/MH-Z19_([0-9])/PPM | |SprutHub/MH-Z19_([0-9])/PPM | ||
/MH-Z19_(2)/PPM | SprutHub/MH-Z19_(2)/PPM | ||
/MH-Z19_(2)/Temperature | /MH-Z19_(2)/Temperature | ||
|/sensor/mh-z19/state | |spruthub_(.*)/sensor/mh-z19/state | ||
spruthub_(.*)/sensor/mh-z19_temperature/state | |||
/sensor/mh-z19_temperature/state | |||
|- | |- | ||
|Outlet | |Outlet | ||
|Состояние: /Outlet/Switch | |Состояние: SprutHub/Outlet/Switch | ||
Включение: /gpio/12 | Включение: SprutHub/gpio/12 | ||
| | | | ||
|- | |- | ||
|Relay | |Relay | ||
|Состояние: /Relay/Switch | |Состояние: SprutHub/Relay/Switch | ||
Включение: /gpio/12 | Включение: SprutHub/gpio/12 | ||
| | | | ||
|- | |- | ||
|PZEM-004 | |PZEM-004 | ||
|/PZEM-004/Voltage_V | |SprutHub/PZEM-004/Voltage_V | ||
/PZEM-004/Current_A | SprutHub/PZEM-004/Current_A | ||
/PZEM-004/Power_W | |||
/PZEM-004/Energy_WH | SprutHub/PZEM-004/Power_W | ||
|/sensor/pzem-004_voltage_v/state | |||
/sensor/pzem-004_current_a/state | SprutHub/PZEM-004/Energy_WH | ||
/sensor/pzem-004_power_w/state | |spruthub_(.*)/sensor/pzem-004_voltage_v/state | ||
/sensor/pzem-004_energy_wh/state | spruthub_(.*)/sensor/pzem-004_current_a/state | ||
spruthub_(.*)/sensor/pzem-004_power_w/state | |||
spruthub_(.*)/sensor/pzem-004_energy_wh/state | |||
|- | |- | ||
|Senseair S8 | |Senseair S8 | ||
|/Senseair/co2 | |SprutHub/Senseair/co2 | ||
|/sensor/senseair/state | |spruthub_(.*)/sensor/senseair/state | ||
|- | |- | ||
|LYWSD02 | |LYWSD02 | ||
| | | | ||
|/sensor/(lywsd02.*)_temperature/state | |spruthub_(.*)/sensor/(lywsd02.*)_temperature/state | ||
spruthub_(.*)/sensor/(2)_humidity/state | |||
/sensor/(2) | |||
|- | |- | ||
|YWSD03MMC | |YWSD03MMC | ||
| | | | ||
|/sensor/(lywsd03mmc.*)_temperature/state | |spruthub_(.*)/sensor/(lywsd03mmc.*)_temperature/state | ||
/sensor/(2)_humidity/state | spruthub_(.*)/sensor/(2)_humidity/state | ||
/sensor/(2)_battery_level/state | |||
spruthub_(.*)/sensor/(2)_battery_level/state | |||
|} | |} | ||
Текущая версия от 16:14, 22 ноября 2022
Базовые популярные платформы ESPHome и ESPEasy
Описаны шаблоны MQTT топиков, которые воспринимаются Sprut.hub и автоматически добавляют устройства при настроенном MQTT контроллере.
Для кого словосочетание "топик MQTT" - это набор символов, а не осмысленное выражение, советуем ознакомиться с теоретической частью про данный протокол, написанной в максимально доступной форме.
Модель | ESPEasy | ESPHome |
---|---|---|
DS18B20 | SprutHub/DS18B20/temperature | spruthub_(.*)/sensor/ds18b20/state |
BME280 | SprutHub/BME280/Pressure
SprutHub/BME280/Temperature SprutHub/BME280/Humidity |
spruthub_(.*)/sensor/bme280_pressure/state
spruthub_(.*)/sensor/bme280_temperature/state spruthub_(.*)/sensor/bme280_humidity/state |
BMP280 | SprutHub/BMP280/Pressure
SprutHub/BMP280/Temperature |
spruthub_(.*)/sensor/bmp280_pressure/state
spruthub_(.*)/sensor/bmp280_temperature/state |
Contact | SprutHub/Contact/State | |
DHT11 | SprutHub/DHT11/Temperature
SprutHub/DHT11/Humidity |
spruthub_(.*)/sensor/dht11_temperature/state
spruthub_(.*)/sensor/dht11_humidity/state |
DHT22 | SprutHub/DHT22/Temperature
SprutHub/DHT22/Humidity |
spruthub_(.*)/sensor/dht22_temperature/state
spruthub_(.*)/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 |
spruthub_(.*)/sensor/mh-z19/state
spruthub_(.*)/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 |
spruthub_(.*)/sensor/pzem-004_voltage_v/state
spruthub_(.*)/sensor/pzem-004_current_a/state spruthub_(.*)/sensor/pzem-004_power_w/state spruthub_(.*)/sensor/pzem-004_energy_wh/state |
Senseair S8 | SprutHub/Senseair/co2 | spruthub_(.*)/sensor/senseair/state |
LYWSD02 | spruthub_(.*)/sensor/(lywsd02.*)_temperature/state
spruthub_(.*)/sensor/(2)_humidity/state | |
YWSD03MMC | spruthub_(.*)/sensor/(lywsd03mmc.*)_temperature/state
spruthub_(.*)/sensor/(2)_humidity/state spruthub_(.*)/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 | Поддержка "из коробки" |