-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define number of scan cycles before device is marked as offline/down #587
Comments
Hi @AdmiralRaccoon , Thanks for the suggestion! From what you are describing these devices are unmovable so once detected their online status is not that important. There is a setting for down devices already, which should enable you to achieve the described scenario for down notifications: You could theoretically ignore the devices via the Another alternative is to mark specific devices as BTW: There is a mass-edit functionality coming in the next release so marking multiple devices will be easier. You can test the Happy to hear your thoughts. I could implement a similar offline detection mechanism for down notifications, but I want to avoid overcomplicating the logic if you can cater to your use case with the existing configuration options. Thanks, |
Thanks for the reply, I should have read the docs more carefully! :-D |
Another thing...would it be possible to make the "Alert down after" a per device setting? For some devices, 10-15min is great, but for others 5 minutes would be better to trigger automations in Home Assisant for example. |
Hey there! I don't plan to extend the functionality to a per-device setting as it would require DB changes, thus changing the CSV export import functionality, the device columns and the columns ordering and picker, and the dependent plugin. So, even if the changes might look small, the downflow effect is pretty significant. You can list your exact use case in the Workflows feedback issue and I might consider it for a custom workflow scenario: https://github.com/jokob-sk/Pi.Alert/issues/562 You could also move that logic into HA, e.g. have a list of devices that you want to trigger automation right away and some that have a wait timer (e.g. based on the device name based on some naming convention). Or you could have a middle layer via n8n/nodeRed to cater to more advanced automation needs: https://github.com/jokob-sk/Pi.Alert/blob/main/docs/WEBHOOK_N8N.md Hope the above gives you some ideas. Thanks, |
Ok thank you for you hints, I´ll give it a try. Apart from that - I guess there´s nothing PiAlert can do but to deactivate the scan for example this device: It´s a small managed Draytek switch, i simply don´t know why the arp-scan doesn´t recognize it all the time as it´s online 24/7 and I would loose my internet connection if it would be malfunctioning. |
Yeah, that is a possible workaround. I regrettably don't have the mentioned switch so I can't reproduce the behavior. If you have time & know how to code you can help me to improve PiAlert and the arp-scan if you have ideas on how to possibly make it more reliable. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
I have some devices (A switch, some shelly devices), which for what reason doesn´t seem to respond during a scan and get marked as offline/down, although they´re online
Describe the solution you'd like
A device setting that allows to define a value after how many scan cycles the device becomes offline/down
Describe alternatives you've considered
edit: Or, maybe something similar to home assistant´s "consider home", a period of time that must pass without reaching the device, to set it as offline/down
Anything else?
The text was updated successfully, but these errors were encountered: