Closed dacarson closed 1 year ago
Merged this branch to my forked main and updated the ReadMe. Will propose new pull request.
Is this going to get merged into a new release? I can get most of the basic info from my Tempest WeatherFlow by going back & forth to Weather Underground, but the main thing I'm after is lightning notifications, which WU doesn't give me. Does your update use a sensor or switch in HomeKit to display lightning status, so that e.g. it could be used to trigger automations?
I have not made lightning a sensor or switch, because the two lightning values I get from the observation data are lightning count, ie the number of strikes and average distance to the lightning. I am open to a feature request to move lightning events to a senor or switch. Though off the top of my head I am not sure when I would reset the state.
If there's a time stamp associated with the strikes, maybe have a sensor that could be configured to stay on for xx minutes when lightning is detected within yy miles. That sensor could be used for e.g. a swimming pool lightning-safety timer (the 30-30 rule), or a custom config.
Or maybe easier...keep track of lightning count, and when it increases, turn on a sensor for, say, ten seconds. That sensor could then be used to trigger other things via Automations, homebridge-dummy, etc.
But maybe this could be done with what you've already added in characteristics.js. How do I go about installing your version of the plugin?
Changes per file. api/smartweather.js:
Index.api:
util/compatibility.js:
util/characteristics.js
accessories/currentConditions.js
config.schema.json
README.md