38 lines
936 B
Plaintext
38 lines
936 B
Plaintext
|
|
# Loads default set of integrations. Do not remove.
|
|
default_config:
|
|
|
|
# Load frontend themes from the themes folder
|
|
frontend:
|
|
themes: !include_dir_merge_named themes
|
|
|
|
automation: !include automations.yaml
|
|
script: !include scripts.yaml
|
|
scene: !include scenes.yaml
|
|
|
|
http:
|
|
use_x_forwarded_for: true
|
|
trusted_proxies:
|
|
- 127.0.0.1
|
|
- ::1
|
|
- 10.8.0.0/24
|
|
|
|
template:
|
|
- sensor:
|
|
- name: "Network RX Mbit (wlp2s0)"
|
|
unit_of_measurement: "Mbit/s"
|
|
state: >
|
|
{{ (states('sensor.localhost_wlp2s0_rx') | float * 8 / 1_000_000 ) | round(2) }}
|
|
|
|
- name: "Network TX Mbit (wlp2s0)"
|
|
unit_of_measurement: "Mbit/s"
|
|
state: >
|
|
{{ (states('sensor.localhost_wlp2s0_tx') | float * 8 / 1_000_000 ) | round(2) }}
|
|
|
|
sensor:
|
|
- platform: command_line
|
|
name: "WireGuard wg0 status"
|
|
command: >-
|
|
ip link show wg0 | grep -q "LOWER_UP" && echo UP || echo DOWN
|
|
scan_interval: 30
|