I spent a while figuring out some SNMP sensors for my NAS, so to save anyone else the trouble here they are:
- platform: snmp
name: 'NAS System Temperature'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.7.0
community: 'public'
version: '2c'
unit_of_measurement: '°C'
value_template: "{{ value.split(' ')[0].split(':')[1] }}"
scan_interval: 60
- platform: snmp
name: 'NAS Disk 1 Temperature'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.1
community: 'public'
version: '2c'
unit_of_measurement: '°C'
value_template: "{{ value.split(':')[1] }}"
scan_interval: 60
- platform: snmp
name: 'NAS Disk 2 Temperature'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.2
community: 'public'
version: '2c'
unit_of_measurement: '°C'
value_template: "{{ value.split(':')[1] }}"
scan_interval: 60
- platform: snmp
name: 'NAS Disk 3 Temperature'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.3
community: 'public'
version: '2c'
unit_of_measurement: '°C'
value_template: "{{ value.split(':')[1] }}"
scan_interval: 60
- platform: snmp
name: 'NAS Disk 4 Temperature'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.10.1.5.4
community: 'public'
version: '2c'
unit_of_measurement: '°C'
value_template: "{{ value.split(':')[1] }}"
scan_interval: 60
- platform: snmp
name: 'NAS Fan Status'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.8.0
community: 'public'
version: '2c'
value_template: "{{ value }}"
scan_interval: 60
- platform: snmp
name: 'NAS Size'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.9.1.5.1
community: 'public'
version: '2c'
value_template: "{{ value.replace('T','') }}"
unit_of_measurement: 'TB'
scan_interval: 300
- platform: snmp
name: 'NAS Free Space'
host: 10.1.1.10
baseoid: 1.3.6.1.4.1.5127.1.1.1.6.1.9.1.6.1
community: 'public'
version: '2c'
value_template: "{{ value.replace('T','') }}"
unit_of_measurement: 'TB'
scan_interval: 300
- platform: template
sensors:
nas_free_pct:
friendly_name: 'Free Space'
value_template: "{{ ( 100 * states('sensor.nas_free_space')|float / states('sensor.nas_size')|float )|round(1) }}"
unit_of_measurement: '%'
Lovelace:
type: entities
entities:
- entity: sensor.nas_free_pct
- entity: binary_sensor.nas_fan
name: Fan
- entity: sensor.nas_system_temperature
name: System Temperature
- entity: sensor.nas_disk_1_temperature
name: Disk 1 Temperature
- entity: sensor.nas_disk_2_temperature
name: Disk 2 Temperature
- entity: sensor.nas_disk_3_temperature
name: Disk 3 Temperature
- entity: sensor.nas_disk_4_temperature
name: Disk 4 Temperature
title: WD EX4100 NAS
show_header_toggle: false
state_color: true
In the web interface there is a system report that shows the raid and volume health. I have yet to find an OID for these but will post it if I do.