Tasmota 5.12.0m supports the HC-SR04 Ultrasonic Sensor, thanks to @nferreyra and @arendst
The Wemos Wikipage has been updated accordingly.
@RaymondMouthaan:
I think the Wemos Wiki is a great idea!
I would like to contribute something, but I dont't know how to adjust the Postings in guthub.
Here are the screenshots of my Sensors MHZ-19b for CO2:
and the SDS0X1 fine dust sensor:
I hope can provide this in next time in the WeMos Wiki.
Greetings Fabian
@FabianHM , thanks hope it helps others 馃槍.
Could you provide the english versions of your screenshots , then ill make sure the wiki gets updated accordingly.
I cant find it... my sensors numbers arrive to 65 max (PSM5003). How i can enable HC-SR04?
@tassheloff thats most probably because you haven't flashed your wemos with Sonoff-Tasmota 5.12.0m ?
mmm i read 5.12.0. where i grab 5.12.0m?
@tassheloff you can get it from this GitHub and compile it yourself .. the tasmota wiki has the steps documented how to ...
ok found under development right?
You got that right ;)
Really thanks :). i'm trying :)
This is great. Got it up and running in no time and it's given me yet another way of working out the status of the garage roller door. A question though ... is there an MQTT cmnd to query the current distance or do I just do it through watching SENSOR telemetry?
I think there is no mqtt command to instantly get the sensor data. As you suggested you can use TelePeriod to have the sensor published to mqtt frequently.
I've you need the sensor data instantly, i suggest you to use STATUS 10 via web (rest):
http://<ip-address>/cm?cmnd=Status%2010
This returns a json like:
{
"StatusSNS": {
"Time": "2018-04-25T09:45:05",
"BME280": {
"Temperature": 25.9,
"Humidity": 40.5,
"Pressure": 1009.8
},
"TempUnit": "C"
}
}
Maybe there is a better way, but this how i currently use it.
Well if there is a rest then there is a MQTT too as they all use the same internals:
Yes indeed, just looked into it
Just publish 10 to topic cmnd/wemos-8/STATUS which results:
10:09:03 MQT: stat/wemos-8/STATUS10 = {"StatusSNS":{"Time":"2018-04-25T10:09:03","BME280":{"Temperature":26.9,"Humidity":38.1,"Pressure":1010.0},"TempUnit":"C"}}
Thanks to both of you Raymond & Theo. MQTT Status 10 works, giving me on-demand updates. (I didn't try the rest).
@RaymondMouthaan
Hi Ray,
Actually, I already wanted to send you screenshots to other sensors. Unfortunately, I can not compile the current version of Tasmota for Wemos. The settings have changed, can you tell me what needs to be set now?
These Settings in the Wiki doesn't work:
[env:wemos-d1-mini]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=1000
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
extra_scripts = pio/strip-floats.py
; * Serial Monitor options
monitor_baud = 115200
; * Upload Serial reset method for Wemos and NodeMCU
upload_resetmethod = nodemcu
upload_speed = 115200
Please could you update the Wiki for the compilation of wemos?
Greetings Fabian
@FabianHM
I've been flashing my Wemos devices for several weeks now with these settings (suggested by Theo) without any issues:
[env:wemos-d1-mini]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=1000 -DUSE_CONFIG_OVERRIDE
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
extra_scripts = pio/strip-floats.py
; *** Serial Monitor options
monitor_baud = 115200
; *** Upload Serial reset method for Wemos and NodeMCU
upload_resetmethod = nodemcu
upload_speed = 115200
;upload_port = COM6
; *** Upload file to OTA server using SCP
;upload_port = user@host:/path
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
; *** Upload file to OTA server using HTTP
;upload_port = domus1:80/api/upload-arduino.php
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py