Comments (5)
@LouPaloma I'm not quite sure what you are asking for. The card is already an MQTT listener.
Have you seen this? https://github.com/ironsheep/lightning-detector-MQTT2HA-Daemon/blob/master/THEOPS.md
If your sensor is reporting to MQTT you can adjust the content of what you are reporting per the document linked above and the existing card will then respond to your sensor.
This help?
from lightning-detector-mqtt2ha-daemon.
Thanks. I did look at THEOPS. My point is that the daemon:
- runs on a host that is physically connected to the sensor
- all aggregations are done in daemon
- The Lovelace card is "dumb" in that it gets ALL of it's display data for the presentation as part of the mqtt message for current or prior storms.
My sensor is remote, powered by a battery and solar panel such that it sends out minimal data packets, i.e., new strikes, via MQTT (or LoRa).
What I envision is your daemon would listen to an MQTT topic for a new strike (detect message format) and do all the aggregation that it currently does and publish the it's same data out onto topics.
In short, I'm just looking to move the sensor input to come from an MQTT topic, but still be able to use your daemon and card.
from lightning-detector-mqtt2ha-daemon.
@LouPaloma Ok, now I understand. However, if you take my daemon, make it listen to your sensor data coming in via MQTT it can then aggregate your incoming data and send the newly aggregated data to the lightning card as it does today. Just rewrite the front end of my daemon to listen to your sensor instead of the lightning detector chip.
It really shouldn't take much time to do...
Does this make sense?
from lightning-detector-mqtt2ha-daemon.
Yes, it makes sense, but 1) I hate Python and 2) I have too many projects queued to take on another. My assumption was that you could do what you mention in under 30 minutes as opposed to many hours of my "hacking".
The underlying thought is that you could increase usage of your front-end component (which is very nice [the daemon is very nice, too!]) by providing a more generic input method. Per my initial issue comments, it'd be easy for anyone getting lightning data from any arbitrary source to re-format and re-post to your generic listener and then display it in HA.
I can understand if this isn't anything of interest, but thought you'd appreciate the kudos and input.
from lightning-detector-mqtt2ha-daemon.
@LouPaloma ok, thanks for the request and thank you for your kind words about this project I enjoyed creating it a I learned a lot in the process which is always our goal, right!
As you have already guessed I too have too numerous to count projects in the works... This is precisely why I wrote the THEOPS so I could enable others to extend as they wish while I keep working on more projects. ;-)
Should you decide to take this on, feel free to make a pull request to get your work added to this project, should you wish. Just be sure to document the mechanism so others can make minor tweaks if their interface is not the same as what you constructed for yourself.
Again, Thank you!
from lightning-detector-mqtt2ha-daemon.
Related Issues (20)
- Not sure if --calc_tuning_cap is working right HOT 19
- i2c broken? HOT 2
- I2C Write Error HOT 10
- [Improvement] Hardlink to system tools HOT 2
- Spi bus tuning_cap Error HOT 2
- Sensor settings doesn't reflect what is configured in the config.ini HOT 3
- Question on noise level HOT 5
- Stupid Question from A New HA User HOT 8
- Problems with reading config.ini file HOT 1
- Home Assistant YAML configuration for sensors
- Tuning Frequency is Far Off HOT 2
- Docker-Image available?
- Not running on a RPi!
- Add logic to post our storm as ended status HOT 2
- Bin needs to close after time ends for period (is currently closing at first detection after period end) HOT 2
- Ensure sensor reports distances in correct units HOT 2
- Adjust script so it can run as systemd daemon HOT 2
- Could you add an SPI interface? HOT 24
- MQTT lightningdetector/detect not updating count and distance HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning-detector-mqtt2ha-daemon.