Very cool, Rich! I'll put some effort into it. Based on your earlier coaching, I've been able to successfully accept MQTT data from every sensor I've tried, including from a Sonoff Zigbee Bridge with a bunch of Sonoff SNZB-02 temperature sensors!
[[[tele/ZBBridge/SENSOR]]] # 0x4472 is #10 Living Room [[[[ZbReceived_0x4472_Device]]]] ignore = true [[[[ZbReceived_0x4472_Name]]]] ignore = true [[[[ZbReceived_0x4472_Temperature]]]] # The WeeWX name. # Default is the name from MQTT. name = inTemp [[[[ZbReceived_0x4472_Humidity]]]] # The WeeWX name. # Default is the name from MQTT. name = inHumidity [[[[ZbReceived_0x4472_BatteryVoltage]]]] ignore = true [[[[ZbReceived_0x4472_BatteryPercentage]]]] ignore = true [[[[ZbReceived_0x4472_Endpoint]]]] ignore = true [[[[ZbRecieved_0x4472_LinkQuality]]]] ignore = true On Wednesday, June 16, 2021 at 1:00:18 PM UTC-5 bell...@gmail.com wrote: > Eric, > For (2), MQTTSubscribe has a 'filter_out_message_when' option. So, you > would to do something like this in the MQTTSubscribe section > [[topics]] > [[[tele/AS3935/SENSOR]]] > [[[[AS3935_Event]]]] > ignore = True > # MQTT messages with and event value in the following will be ignored. > filter_out_message_when = 0, 2, 3, 4, 5, 6, 7, 8, 9 > conversion_type = int > . > . > . > > A bit more detail on this option can be found here, > https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring-additional-options#filter_out_message_when > There is some background information here, > https://github.com/bellrichm/WeeWX-MQTTSubscribe/discussions/112 > > For (3), read up on WeeWX accumulators here, > https://github.com/weewx/weewx/wiki/Accumulators > > If you get this working, this is exactly the type of MQTTSubscribe > configuration that I would like to capture as an example to help others in > the future. > - Rich > > > On Tuesday, 15 June 2021 at 19:35:19 UTC-4 Eric K wrote: > >> I just assembled this exact setup - AS3935 board with a Wemos D1 mini >> clone and Tasmota 9.4.0 sensor firmware. >> I didn't snap a picture before I deployed it, but it looks very much like >> the attached photo. >> I followed this page: https://tasmota.github.io/docs/AS3935/ >> >> Its working and I'm getting live data in the Tasmota web interface. >> I named it AS3935 in the Tasmota MQTT setup and it's sending telemetry to >> my mosquitto MQTT broker. >> The MQTT transmissions (seen from the Tasmota console) look like the >> example on the tasmota.github AS3935 page: >> 18:07:21.164 MQT: tele/AS3935/SENSOR = >> {"Time":"2021-06-15T18:07:21","AS3935":{"Event":0,"Distance":0,"Energy":0,"Stage":7}} >> >> I think I need to: >> 1. set the Tasmota setting AS3935lightevent to 1 so it only sends MQTT >> messages when there is a lightning strike registered. >> 2. set up weewx to read the MQTT Event variable so I only react to a >> valid lightning strike with distance (event 1) >> 3. Set up the lightning_count variable as an accumulator? >> >> I'm not quite sure: >> 1. how often I should set Tasmota's MQTT report period so I don't miss >> counting a lightning strike? Once per second? >> 2. how to set up a conditional statement in the MQTTSubscribe section of >> weewx.conf to increment the lightning_count only when valid lightning >> events occur. >> >> I'll be looking for example weewx.conf file settings that deal with the >> AS3935. >> On Sunday, December 6, 2020 at 12:51:45 PM UTC-6 misk...@gmail.com wrote: >> >>> Hello guys, >>> did anyone tried to use *Lightning sensor AS3935* tinkered on cheap >>> *ESP8266* with WeeWX? >>> >>> A time ago, I was user of Tasmota ESP8266 firmware and I know, it can >>> publish MQTT + JSON data. Here is the manual how to tinker and flash those >>> two together: >>> https://tasmota.github.io/docs/AS3935/ >>> I assume, that with JSON / MQTT it would be prety easy to fill WeeWX >>> database... >>> >>> Thanks, >>> Miso, >>> Slovakia >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/10f9bd8c-2722-4fed-adab-a54b9d965ab8n%40googlegroups.com.