mib: SNR-ERD-4
modules:
    pre-cache:
        data:
            -
                oid:
                 - diName
                 - diAlarmName
                 - doName
                 - doDeviceName
                 - rsshtpName
    sensors:
        temperature:
            data:
                -
                    oid: rsshtpTemp
                    num_oid: '.1.3.6.1.4.1.40418.2.6.1.30.1.1.3.{{ $index }}'
                    descr: '{{ $rsshtpName }} {{ $index }}'
        state:
            data:
                -
                    oid: diTable
                    value: diState
                    num_oid: '.1.3.6.1.4.1.40418.2.6.2.1.1.3.{{ $index }}'
                    descr: "{{ $diName }} {{ $diAlarmName }}"
                    index: "diState.{{ $index }}"
                    group: "Ports DI"
                    states:
                        - { descr: Connected, graph: 1, value: 0, generic: 0 }
                        - { descr: Empty, graph: 1, value: 1, generic: 1 }
                        - { descr: Off, graph: 1, value: 2, generic: 2 }
                -
                    oid: doTable
                    value: doState
                    num_oid: '.1.3.6.1.4.1.40418.2.6.2.2.1.3.{{ $index }}'
                    descr: "{{ $doName }} {{ $doDeviceName }}"
                    index: "doState.{{ $index }}"
                    group: "Ports DO"
                    states:
                        - { descr: Off, graph: 1, value: 0, generic: 1 }
                        - { descr: On, graph: 1, value: 1, generic: 0 }
                        - { descr: Reload, graph: 1, value: 2, generic: 2 }
        humidity:
            data:        
                -
                    oid: rsshtpHum
                    num_oid: '.1.3.6.1.4.1.40418.2.6.1.30.1.1.4.{{ $index }}'
                    descr: '{{ $rsshtpName }} {{ $index }}'
        pressure:
            data:        
                -
                    oid: rsshtpPssr
                    num_oid: '.1.3.6.1.4.1.40418.2.6.1.30.1.1.6.{{ $index }}'
                    descr: '{{ $rsshtpName }} {{ $index }}'
