Moved more to packages

This commit is contained in:
2022-10-12 11:20:47 +13:00
parent 728b9eee62
commit fd69d971f5
17 changed files with 127 additions and 125 deletions

View File

@@ -0,0 +1,19 @@
sensor:
- platform: template
sensors:
sensor_internet_downtraffic:
friendly_name: "Internet Download Traffic"
unit_of_measurement: "kB/s"
value_template: "{{ state_attr('binary_sensor.edgeos_interface_pppoe0', 'KBytes/ps (Received)') }}"
- platform: template
sensors:
sensor_internet_uptraffic:
friendly_name: "Internet Upload Traffic"
unit_of_measurement: "kB/s"
value_template: "{{ state_attr('binary_sensor.edgeos_interface_pppoe0', 'KBytes/ps (Sent)') }}"
- platform: template
sensors:
sensor_internet_totaltraffic:
friendly_name: "Internet Total Traffic"
unit_of_measurement: "kB/s"
value_template: "{{ state_attr('binary_sensor.edgeos_interface_pppoe0', 'KBytes/ps (Received)') |float + state_attr('binary_sensor.edgeos_interface_pppoe0', 'KBytes/ps (Sent)') | float }}"