Moved more to packages
This commit is contained in:
19
packages/internet_traffic.yaml
Normal file
19
packages/internet_traffic.yaml
Normal 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 }}"
|
Reference in New Issue
Block a user