diff --git a/command_line.yaml b/command_line.yaml new file mode 100644 index 0000000..6793af9 --- /dev/null +++ b/command_line.yaml @@ -0,0 +1,10 @@ +- sensor: + name: Speedtest Data + command: "/config/shell_commands/speedtest --format=json --accept-license --accept-gdpr" + command_timeout: 60 + value_template: "OK" + scan_interval: 3600 + json_attributes: + - download + - upload + - ping diff --git a/configuration.yaml b/configuration.yaml index 968e281..c70d52d 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -136,6 +136,8 @@ sensor: !include_dir_merge_list sensors/ +command_line: !include command_line.yaml + template: !include_dir_merge_list template/ input_number: diff --git a/sensors/speedtest.yaml b/sensors/speedtest.yaml deleted file mode 100644 index 7caedb8..0000000 --- a/sensors/speedtest.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- platform: command_line - name: Speedtest Data - command: "/config/shell_commands/speedtest --format=json --accept-license --accept-gdpr" - command_timeout: 60 - value_template: "OK" - scan_interval: 3600 - json_attributes: - - download - - upload - - ping