EVENT not being publish

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dony71
Normal user
Posts: 16
Joined: 25 Apr 2018, 20:01

EVENT not being publish

#1 Post by dony71 » 18 Jun 2019, 21:09

i notice in log there are event
31549163: EVENT: PPD42NJ#PM10_ug_per_m3=0.05
31549396: EVENT: PPD42NJ#PM25_ug_per_m3=0.05
31549608: EVENT: PPD42NJ#PM10_mili_ppmv=nan
31549835: EVENT: PPD42NJ#PM25_mili_ppmv=nan
31550047: EVENT: PPD42NJ#AQI_PM10=0.00
31550252: EVENT: PPD42NJ#AQI_PM25=0.00
31550457: EVENT: PPD42NJ#AQI_PM10_Status=2.00

however nothing being publish by checking
mosquito_sub -v -t WeMOS/PPD42NJ/#

am I missing something?

source code is here
https://github.com/dony71/ESPEasyPlugin ... _PPD42.ino

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: EVENT not being publish

#2 Post by ThomasB » 19 Jun 2019, 02:15

am I missing something?
It's very difficult to offer casual advice on custom plugins. And without screenshots of the device and controller settings we can't offer feedback on the basic setup.

But as a primitive test, use a rule to publish your Air Quality values to the broker. Success with that will confirm that MQTT is configured correctly and your values are being read in the plugin.

Lastly, I saw that your custom plugin uses the Arduino "SimpleTimer" library. I don't know of any other official ESPEasy plugin that uses it. Are you sure this library can play nice inside ESPEasy? Do you have reliable success with it in any of your other custom ESPEasy plugins?

- Thomas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 36 guests