Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105836

SSH sensor configuration

$
0
0

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.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105836

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>