DIY устройства MQTT интегрированные в Sprut.Hub: различия между версиями

Материал из Sprut.hub Wiki
Нет описания правки
Нет описания правки
Строка 11: Строка 11:
|DS18B20
|DS18B20
|SprutHub/DS18B20/temperature
|SprutHub/DS18B20/temperature
|/sensor/ds18b20/state
|spruthub_(.*)/sensor/ds18b20/state
|-
|-
|BME280
|BME280
Строка 17: Строка 17:
SprutHub/BME280/Temperature
SprutHub/BME280/Temperature
/BME280/Humidity
/BME280/Humidity
|/sensor/bme280_pressure/state
|spruthub_(.*)/sensor/bme280_pressure/state
/sensor/bme280_temperature/state
spruthub_(.*)/sensor/bme280_temperature/state
/sensor/bme280_humidity/state
/sensor/bme280_humidity/state
|-
|-
Строка 24: Строка 24:
|SprutHub/BMP280/Pressure
|SprutHub/BMP280/Pressure
SprutHub/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
Строка 34: Строка 34:
|SprutHub/DHT11/Temperature
|SprutHub/DHT11/Temperature
SprutHub/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
|SprutHub/DHT22/Temperature
|SprutHub/DHT22/Temperature
SprutHub/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
Строка 51: Строка 51:
SprutHub/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
/sensor/mh-z19/state
spruthub_(.*)/sensor/mh-z19_temperature/state
/sensor/mh-z19_temperature/state
|-
|-
|Outlet
|Outlet
Строка 72: Строка 71:


SprutHub/PZEM-004/Energy_WH  
SprutHub/PZEM-004/Energy_WH  
|/sensor/pzem-004_voltage_v/state  
|spruthub_(.*)/sensor/pzem-004_voltage_v/state  
/sensor/pzem-004_current_a/state  
spruthub_(.*)/sensor/pzem-004_current_a/state
/sensor/pzem-004_power_w/state  
 
/sensor/pzem-004_energy_wh/state  
spruthub_(.*)/sensor/pzem-004_power_w/state
 
spruthub_(.*)/sensor/pzem-004_energy_wh/state  
|-
|-
|Senseair S8
|Senseair S8
|SprutHub/Senseair/co2
|SprutHub/Senseair/co2
|/sensor/senseair/state
|spruthub_(.*)/sensor/senseair/state
|-
|-
|LYWSD02
|LYWSD02
|
|
|/sensor/(lywsd02.*)_temperature/state  
|spruthub_(.*)/sensor/(lywsd02.*)_temperature/state  
/sensor/(2)_humidity/state
spruthub_(.*)/sensor/(2)_humidity/state  
/sensor/(2)_battery_level/state  
 
spruthub_(.*)/sensor/(2)_battery_level/state  
|-
|-
|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:12, 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 /BME280/Humidity

spruthub_(.*)/sensor/bme280_pressure/state

spruthub_(.*)/sensor/bme280_temperature/state /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

spruthub_(.*)/sensor/(2)_battery_level/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 Поддержка "из коробки"