Hello,
I’m trying to create a sensor with the writing speed of a RAIDZ pool via SSH command (homeassistant-ssh plugin).
The sensor doesn’t show up in entities.
I added this to configuration.yaml :
command: zpool iostat -v RAIDZ1 1 1 | grep -A 1 'RAIDZ1' | tail -n 1 | awk '{print $7}'
sensors:
- type: number
name: raidz1writespeed
value_template: >-
{%- set write_speed = value.strip() -%}
{%- set numeric_value = write_speed[:-1] | float -%}
{{ numeric_value }}
unit_of_measurement: "Mo/s"
Thanks for your help.