GitHub: The Sensor Script lightning-detector-MQTT2HA-Daemon interfaces with the AS3935 sensor on your RPi and sends the accumulated data via MQTT to your HA installation.
Links to videos showing detections: (pls, pardon the lack of sound on the videos)
As of this moment, one would have to adapt my lightning-detector-MQTT2HA-Daemon script to pull data from one of those services, accumulate it as needed for this card, and then send the data to the card. It can be done. I’m writing a document which I’ll add to that same repo detailing how the data accumulated and what is sent to the card and why. With this document in hand (again, coming soon) it wouldn’t be a difficult task to make an adapter to feed this card.
I’ll post here to let you know when the new document has arrived and how to get to it.
Hello,
I just got my sparkfun as3935 lightning detector, but I am struggling to get it to work.
It seems to be a newer hardware version with i2c unsupported by default, but still being able to activate by “switching” two jumpers. https://learn.sparkfun.com/tutorials/sparkfun-as3935-lightning-detector-hookup-guide-v20
I cut SE and connected CS and connected the right one of i2c PU, ADR unchanged.
correct?
it does show up now:
sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
but the script gives me an error:
python3 /opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py
Traceback (most recent call last):
File "/opt/ISP-lightning-mqtt-daemon/ISP-lightning-mqtt-daemon.py", line 174, in <module>
i2c_address = int(config['Sensor'].get('i2c_address', default_i2c_address))
ValueError: invalid literal for int() with base 10: '0x03'
I got my system up and running, that means I see the entities in my homeassistant,
But I am not sure if the sensor itself is working correct?
Manually starting the script I do get a lot these outputs: [2020-08-30 23:10:30] << INTR(17) >> Noise level too high - adjusting
Is that normal?
@Fugazzy there are a number of things to look at here… make sure your sensor is away from your RPi as far as it can be. Move your RPi and sensor away from other electrical equipment, etc.
Also, new in the latest version of the script there’s an Antenna fine tuning feature so you can better dial-in your detector board.