This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/packages/pfsense/pfsense_automations.yaml
darthsandmann 853c1d1716 updates
2022-08-30 18:42:25 +02:00

29 lines
837 B
YAML
Executable File

automation:
- alias: "pfSense WAN Down"
trigger:
- platform: state
entity_id: sensor.pfsense_gateway_wan_gw_status
to: 'False'
action:
- service: notify.notify
data:
message: "WAN Gateway went offline"
- alias: "pfSense Mullvad Down"
trigger:
- platform: state
entity_id: sensor.pfsense_gateway_mullvad1gw_status
to: 'False'
- platform: state
entity_id: sensor.pfsense_gateway_mullvad1gwv6_status
to: 'False'
- platform: state
entity_id: sensor.pfsense_gateway_mullvad2gw_status
to: 'False'
- platform: state
entity_id: sensor.pfsense_gateway_mullvad2gwv6_status
to: 'False'
action:
- service: notify.notify
data:
message: "A Mullvad connection went offline"