arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.97k stars 4.77k forks source link

Tasmota AS3935 based lightning and storm sensor module #983

Closed jeylites closed 6 years ago

jeylites commented 6 years ago

Hi all

is it possible to implement AS3935 lightning and storm sensor module with Tasmota? If not how can this be achieved using an Arduino board to send values & alert to Tasmota? It will be nice to turn off devices if a storm is detected at a certain radius.

as3935-lightning-sensor-300x241 ![Uploading MOD-1016v8_1_600-1.jpg…]()

https://www.aliexpress.com/item/CFsunbird-AS3935-lightning-sensor-Lightning-lightning-lightning-detection-storm-distance/32829119257.html?spm=2114.search0303.3.20.Afc7qr

lobradov commented 6 years ago

Wow, this is nice :) Didn't know this existed :) too bad I don't have a use-case for it at all...

Anwyay, seems these modules can use both SPI (which doesn't work with Tasmota) as well as I2C (which is supported by Tasmota). Tasmota can't read specific AS3935 data, but support for it can be added by someone that has time + knowledge + actual module.

If you'd like to give it a go, I'd point you to one of the xsns "drivers" that use I2C (for example xsns_sht1x.ino) , as well as their invocations in sonoff.ino. Given that libraries exist, it shouldn't be too hard to put it together.

Good luck.

On 6 October 2017 at 21:08, jeylites notifications@github.com wrote:

Hi all

is it possible to implement AS3935 lightning and storm sensor module with Tasmota? If not how can this be achieved using an Arduino board to send values & alert to Tasmota?

[image: as3935-lightning-sensor-300x241] https://user-images.githubusercontent.com/9190080/31294232-b87f68b8-aa9f-11e7-8d03-482ac122ec97.jpg [image: Uploading MOD-1016v8_1_600-1.jpg…]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/983, or mute the thread https://github.com/notifications/unsubscribe-auth/AcWpOlsbU8sTcSqYOzstVY8hbA473o3lks5spnqRgaJpZM4Pw6M6 .

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

ludwich66 commented 4 years ago

There is a Tasmota Version with AS3935 on Test now.

jeylites commented 4 years ago

@ludwich66

is this on development or the current version?

ludwich66 commented 4 years ago

Hi jeylites,

i am not the proger - i am the tester ;-) Its a very good collaboration Projekt. device111 progs without sensor - iam owner off a sensor (mod1016) without Programming skills

PastedGraphic-2

tasmota-DE_AS3935_05042020.bin.zip

Please test it! - but report your Experience!! GUI MQTT output what device do you use? Praise and criticism?

Value Description

AS3935default - load default for Sensor and Settings (no argument required) AS3935settings - show all settings no argument AS3935calibrate - auto calibrate the internal Capacitors AS3935setnf 0,1,2,3,4,5,6,7 Noise Floor Level Wert von 0-7 (3 Bit) AS3935autonf 0,1 Set Auto Tune for Noise Level 0/1 (1 Bit) AS3935setgain Indoors, Outdoors Set Inddoors/Outdoors AS3935autonfmax 0,1 Set Auto Tune with Indoors and Outdoors 0/1 (1 Bit) AS3935setwdth 0-15 Watchdog threshold, value from 0-15 (4Bits) AS3935settunecaps 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 Internal Tuning Capacitor (from 0 to 120pF in steps of 8pf) AS3935setrej 0-15 Spike rejection / Ablehnen AS3935setml 1,5,9,16 Minimum number of Lightnings (2 bit) AS3935disturber 0,1 Set Disturber on/off ( 1 Bit) AS3935autodisturber 0,1 Set Auto-Disturber.On for 120sec. per Event AS3935mqttevent 0,1 json messages only for lightning events 0/1 (1 Bit)

ludwich

Am 06.04.2020 um 05:06 schrieb jeylites notifications@github.com:

@ludwich66 https://github.com/ludwich66 is this on development or available on current version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/983#issuecomment-609542181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DF3K2NTSHDHRHU646Y6TRLFBMVANCNFSM4D6DUM5A.

jeylites commented 4 years ago

@ludwich66

That's great; I will check it out once I get a chance to get back to my home town. I purchased the AS3935 modules on Alixepress, not too long ago, but never had an opportunity to implement it. This, however, would allow me to do so.

I will update once I get things going.

ludwich66 commented 4 years ago

Great - please test it! Today we are dealing with the finetuning. its difficult to find a good setting between sensivite an disturber… There is no real Stormy Weather...

if forgot to tell: there is a GPIO Setting „AS3935 (202)“ Now Its German based on tasmota 8.0.2 Plaese use AS395calibrate to find the correct setting for the Resonator

ludwich

Am 06.04.2020 um 20:14 schrieb jeylites notifications@github.com:

@ludwich66 https://github.com/ludwich66 That's great; I will check it out once I get a chance to get back to my home town. I purchased the AS3935 modules on Alixepress, not too long ago, but never had an opportunity to implement it. This, however, would allow me to do so.

I will update once I get things going.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Tasmota/issues/983#issuecomment-609954665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DF3ISMD3B3MFQ2NKKT3DRLILXHANCNFSM4D6DUM5A.