Last active
December 12, 2021 16:18
-
-
Save Leo-PL/5081bb60e33446877548137cde8a5525 to your computer and use it in GitHub Desktop.
Example rule to push data from BME280 and PMS7003 sensors to Luftdaten directly from Tasmota
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
README | |
A simple rule to push sensor data to Luftdaten directly off of sensor running Tasmota. Assumes configured BME280 and PMS5003 sensors. | |
Replace <CHIP_ID> and <VERSION> by ESP8266 chip ID (available on info page) and Tasmota version, respectively. | |
Rule1 | |
ON Tele-BME280#Temperature DO Backlog Var1 %value% ENDON | |
ON Tele-BME280#Humidity DO Backlog Var2 %value% ENDON | |
ON Tele-BME280#Pressure DO Backlog Var3 %value% ENDON | |
ON Tele-PMS5003#PM10 DO Backlog Var4 %value% ENDON | |
ON Tele-PMS5003#PM2.5 DO | |
Backlog Var5 %value%; | |
Backlog WebQuery http://api.sensor.community/v1/push-sensor-data/ POST [Content-Type: application/json|X-Pin: 11|X-Sensor: esp8266-<SENSOR_ID>]{"software_version":"Tasmota <VERSION>","sensordatavalues":[{"value_type":"temperature","value":%var1%},{"value_type":"humidity","value":%var2%},{"value_type":"pressure","value":%var3%}]}; | |
Backlog WebQuery http://api.sensor.community/v1/push-sensor-data/ POST [Content-Type: application/json|X-Pin: 1|X-Sensor: esp8266-<SENSOR_ID>]{"software_version":"Tasmota <VERSION>","sensordatavalues":[{"value_type":"P1","value":%var4%},{"value_type":"P2","value":%var5%}]} | |
ENDON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment