Advertisement
calas

Untitled

Sep 18th, 2021
1,707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ################################################################################################
  2. #                                                                                              
  3. # CPU
  4. #                                                                                              
  5. ################################################################################################
  6.  
  7. ### CPU ###
  8.  
  9.   - platform: cpuspeed
  10.     name: CPU Speed
  11.  
  12.   - platform: command_line
  13.     name: CPU Vendor
  14.     command: cat /proc/cpuinfo | grep -m1 'model name' | awk '{ print $4}'
  15.  
  16.   - platform: command_line
  17.     name: CPU Type
  18.     command: cat /proc/cpuinfo | grep -m1 'model name' | awk '{ print $5, $6}'
  19.  
  20.   - platform: command_line
  21.     name: CPU Frequence
  22.     command: cat /proc/cpuinfo | grep -m1 'model name' | awk '{ print $9}'
  23.  
  24.   - platform: rest
  25.     name: CPU Temperature
  26.     device_class: temperature
  27.     unit_of_measurement: "°C"
  28.     value_template: '{{ value_json[0].value }}'
  29.     resource: http://192.168.1.104:61208/api/3/sensors
  30.  
  31.   - platform: rest
  32.     resource: http://192.168.1.104:61208/api/3/cpu
  33.     name: CPU State
  34.     value_template: "ok"
  35.     json_attributes:
  36.      - total
  37.       - cpucore
  38.       - time_since_update
  39.  
  40. ################################################################################################
  41. #                                                                                              
  42. # DDR Server - proxmox
  43. #                                                                                              
  44. ################################################################################################
  45.  
  46.   - platform: rest
  47.     resource: http://192.168.1.104:61208/api/3/mem
  48.     name: Proxmox RAM State
  49.     value_template: "ok"
  50.     json_attributes:
  51.      - used
  52.       - free
  53.       - total
  54.       - percent
  55.  
  56. ################################################################################################
  57. #                                                                                              
  58. # HDD Proxmox
  59. #                                                                                              
  60. ################################################################################################
  61.  
  62.   - platform: rest
  63.     resource: http://192.168.1.104:61208/api/3/fs
  64.     name: Proxmox Disk State
  65.     value_template: "ok"
  66.     json_attributes:
  67.      - free
  68.       - size
  69.       - used
  70.       - percent
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement