You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Alert when critical static routes are disabled
776
+
triggers:
777
+
- trigger: unifi_network_rules
778
+
type: unr_changed
779
+
change_type: route
780
+
change_action: disabled
781
+
name_filter: "Critical"
782
+
conditions: []
783
+
actions:
784
+
- action: notify.admin_team
785
+
data:
786
+
title: "⚠️ Critical Network Route Disabled"
787
+
message: >
788
+
ALERT: Critical network route "{{ trigger.entity_name }}" was disabled.
789
+
Destination: {{ trigger.old_state.destination if trigger.old_state else "Unknown" }}
790
+
This may affect network connectivity to critical services.
791
+
data:
792
+
priority: high
793
+
category: network
794
+
- action: persistent_notification.create
795
+
data:
796
+
title: "Network Route Alert"
797
+
message: >
798
+
Critical route {{ trigger.entity_name }} was disabled at {{ trigger.timestamp }}
799
+
mode: single
800
+
```
801
+
767
802
### Advanced Filtering Examples
768
803
769
804
#### Filter by Multiple Rule Types
@@ -778,6 +813,10 @@ triggers:
778
813
type: unr_changed
779
814
change_type: vpn_client
780
815
change_action: [enabled, disabled, modified]
816
+
- trigger: unifi_network_rules
817
+
type: unr_changed
818
+
change_type: route
819
+
change_action: [enabled, disabled, modified]
781
820
```
782
821
783
822
#### Filter by Specific Rule Names
@@ -975,13 +1014,15 @@ The UniFi Network Rules integration supports several types of rules:
975
1014
- The main switch that enables/disables the route
976
1015
- A child "kill switch" that blocks all traffic if the route is down (prevents data leakage if your VPN disconnects)
977
1016
978
-
4. **QoS Rules (qos_rule)**: Quality of Service rules that prioritize certain types of traffic on your network. These rules can ensure critical applications (like video conferencing) get bandwidth priority over less time-sensitive applications.
1017
+
4. **Static Routes (route)**: Configure static network routes that define how traffic is routed between different network segments. These are fundamental routing table entries that determine network paths and can be enabled/disabled for network management and troubleshooting.
1018
+
1019
+
5. **QoS Rules (qos_rule)**: Quality of Service rules that prioritize certain types of traffic on your network. These rules can ensure critical applications (like video conferencing) get bandwidth priority over less time-sensitive applications.
979
1020
980
-
5. **Port Profiles (port_profile)**: Switch port configurations that define how network ports are configured, including VLAN assignments, PoE settings, and operational modes. These control the behavior of individual switch ports.
1021
+
6. **Port Profiles (port_profile)**: Switch port configurations that define how network ports are configured, including VLAN assignments, PoE settings, and operational modes. These control the behavior of individual switch ports.
981
1022
982
-
6. **Networks (network)**: Network configurations that define VLANs and network segments in your UniFi environment. These control the fundamental network infrastructure and IP addressing schemes.
1023
+
7. **Networks (network)**: Network configurations that define VLANs and network segments in your UniFi environment. These control the fundamental network infrastructure and IP addressing schemes.
983
1024
984
-
7. **Legacy Rules**: For older UniFi OS versions, there are also legacy_firewall and legacy_traffic rule types, which are mapped to "policy" when using the service.
1025
+
8. **Legacy Rules**: For older UniFi OS versions, there are also legacy_firewall and legacy_traffic rule types, which are mapped to "policy" when using the service.
0 commit comments