zhbjsh / homeassistant-ssh

Control and monitor devices in Home Assistant by executing commands via SSH
MIT License
43 stars 4 forks source link

How can I add new commands/sensors to devices? #17

Closed pickonedev closed 2 weeks ago

pickonedev commented 3 months ago

Hi!

The addon it is working very well. Congrats for your work. I have a question about temperature sensors, can I add more commands to a device? I saw that you can configure the device and all the commands/sensors are there, still... how can I add something like this?

If I add this:

- command: sensors | grep -A 0 'Sensor 1:' | cut -c16-19
  scan_inerval: 30
  sensors:
    - type: number
      name: CPU Temperature
      key: cpu_temperature
      unit_of_measurement: °C

I get this error: extra keys not allowed @ data['sensor_commands']['scan_inerval']

Thank you in advance!

zhbjsh commented 2 months ago

Hi, thanks for using the SSH integration! It looks to me like a small typo in your configuration, please change it to "scan_interval" and try again!