Closed jlg89 closed 10 months ago
Great idea. I'll include this in my next minor version update.
As reference, I did something similar in my homebridge-awair2 plug-in adding limit switches for VOC and PM2.5 using occupancy sensors.
@jlg89 I have noted this feature request. I am going to close this issue. We'll try and work this idea into an upcoming feature release. Thanks for the feedback!
Is your feature request related to a problem? Please describe: It's frustrating to not be able to use lightning detection to trigger automations in HomeKit
Describe the solution you'd like: The ability to configure a contact sensor that triggers when lightning has been detected. Configuration parameters might include the maximum lightning distance that triggers the sensor, and how long to keep the contact sensor closed after an in-range strike is detected. So the contact sensor could be configured to, for example, trigger when lightning has been detected within 10 miles in the past 15 minutes.