Hi All.
I'm trying to get a rule to trigger on a DS18B20 reading update. As much as I can tell, I'm using the same code as the example given in the documentation. I'm trying to publish the new data to a specific MQTT topic, using a JSON formatted payload.
Rule1
ON System#Init DO Var1 0.00 ENDON
ON DS1820#Temperature!=%Var1% DO backlog
publish RN_IOT_DAQ/D1Mini {"Temperature":%value%} ;
Var1 %value%
ENDON
The sensor works fine, and I get MQTT #/SENSOR publications on my MQTT broker. The published temperature values are realistic and I feel 100% confident that there are no problems with the sensor or wiring. I'm using a 4K7 pullup on the data pin, although it seems to work equally well without it.
No errors or warnings are printed on the console when I create the rule, and the rule is enabled. I see no evidence whatsoever that the trigger is ocurring.
I'm using a recent version of the sources, built with additions for ESP32 BLE. This problem is ocurring on a Wemos D1Mini.
My best guess is that there is some additional configuration required, but I cannot seem to find anything after considerable searching.
Thanks.
--- rod.