Startup helper fix

This commit is contained in:
jokob-sk
2024-05-02 07:24:10 +10:00
parent 1dcca191d9
commit 96f90fa5c9
2 changed files with 4 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# Notifications 📧 # Notifications 📧
There are 3 ways how to influence notifications: There are 4 ways how to influence notifications:
1. On the device itself 1. On the device itself
2. On the settings of the plugin 2. On the settings of the plugin
@@ -38,8 +38,8 @@ On almost all plugins there are 2 core settings, `<plugin>_WATCH` and `<plugin>_
In the Notification Processing section, you can specify blanket rules. These allow you to specify exceptions to the Plugin and Device settings and will override those. In the Notification Processing section, you can specify blanket rules. These allow you to specify exceptions to the Plugin and Device settings and will override those.
1. Notify on (`NTFPRCS_INCLUDED_SECTIONS`) allows you to specify which events trigegr notifications. Usual setups will have `new_devices`, `down_devices`, and possibly `events` set. Setting `plugin` might be too noisy for most setups. 1. Notify on (`NTFPRCS_INCLUDED_SECTIONS`) allows you to specify which events trigger notifications. Usual setups will have `new_devices`, `down_devices`, and possibly `events` set. Setting `plugin` might be too noisy for most setups.
2. Alert down after (`NTFPRCS_alert_down_time`) is useful if you want to wait for some time before the system sends out a down notification for a device. This is related to the on-device **Alert down** setting. 2. Alert down after (`NTFPRCS_alert_down_time`) is useful if you want to wait for some time before the system sends out a down notification for a device. This is related to the on-device **Alert down** setting and only devices with this checked will trigger a down notification.
3. A filter to allow you to set device-specific exceptions to New devices being added to the app. 3. A filter to allow you to set device-specific exceptions to New devices being added to the app.
4. A filter to allow you to set device-specific exceptions to generated Events. 4. A filter to allow you to set device-specific exceptions to generated Events.
@@ -47,7 +47,7 @@ In the Notification Processing section, you can specify blanket rules. These all
![Ignoring new devices](/docs/img/NOTIFICATIONS/NEWDEV_ignores.png) ![Ignoring new devices](/docs/img/NOTIFICATIONS/NEWDEV_ignores.png)
You can completely ignore detected devices globally. This could be becasue your instance detects docker containers, you want to ignore devices from a specific manufacturer via MAC rules or you want to ignore devices on a specific IP range. You can completely ignore detected devices globally. This could be because your instance detects docker containers, you want to ignore devices from a specific manufacturer via MAC rules or you want to ignore devices on a specific IP range.
1. Ignored MACs (`NEWDEV_ignored_MACs`) - List of MACs to ignore. 1. Ignored MACs (`NEWDEV_ignored_MACs`) - List of MACs to ignore.
2. Ignored IPs (`NEWDEV_ignored_MACs`) - List of IPs to ignore. 2. Ignored IPs (`NEWDEV_ignored_MACs`) - List of IPs to ignore.

View File

@@ -574,8 +574,6 @@ import dns.resolver
def cleanDeviceName(str, match_IP): def cleanDeviceName(str, match_IP):
mylog('debug', ["[Name cleanup] NEWDEV_LESS_NAME_CLEANUP Setting:" + get_setting_value('NEWDEV_LESS_NAME_CLEANUP')])
if get_setting_value('NEWDEV_LESS_NAME_CLEANUP'): if get_setting_value('NEWDEV_LESS_NAME_CLEANUP'):
mylog('debug', ["[Name cleanup] Using new cleanDeviceName(" + str + ")"]) mylog('debug', ["[Name cleanup] Using new cleanDeviceName(" + str + ")"])