extends:
  - avtech.yaml

metadata:
  device:
    fields:
      type:
        value: "Room Alert Monitor"

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.20916.1.9.*

metrics:
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.1.1.0
      name: roomalert.3e.digital_sen1_1
      chart_meta:
        description: The current temperature reading of the Internal Temperature Sensor
        family: 'Hardware/Sensor/Internal/Temperature/Value'
        unit: "Cel"
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.1.2.0
      name: roomalert.3e.digital_sen1_2
      chart_meta:
        description: The current temperature reading of the Internal Temperature Sensor
        family: 'Hardware/Sensor/Internal/Temperature/Value'
        unit: "degF"
  #  - MIB: ROOMALERT3E-MIB
  #    symbol:
  #      OID: 1.3.6.1.4.1.20916.1.9.1.1.1.3.0
  #      name: roomalert.3e.digital_sen1_label
  #      format: TODO_handle_conversion_to_one
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.1.0
      name: roomalert.3e.digital_sen2_1
      chart_meta:
        description: Current temperature
        family: 'Hardware/Sensor/External/Temperature/Value'
        unit: "Cel"
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.2.0
      name: roomalert.3e.digital_sen2_2
      chart_meta:
        description: Current temperature
        family: 'Hardware/Sensor/External/Temperature/Value'
        unit: "degF"
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.3.0
      name: roomalert.3e.digital_sen2_3
      chart_meta:
        description: Current relative humidity
        family: 'Hardware/Sensor/External/Humidity/Value'
        unit: "%"
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.5.0
      name: roomalert.3e.digital_sen2_5
      chart_meta:
        description: Current heat index
        family: 'Hardware/Sensor/External/HeatIndex/Value'
        unit: "Cel"
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.4.0
      name: roomalert.3e.digital_sen2_4
      chart_meta:
        description: Current heat index
        family: 'Hardware/Sensor/External/HeatIndex/Value'
        unit: "degF"
  #  - MIB: ROOMALERT3E-MIB
  #    symbol:
  #      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.6.0
  #      name: roomalert.3e.digital_sen2_label
  #      format: TODO_handle_conversion_to_one
  # - MIB: ROOMALERT3E-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.9.1.1.2.7.0
  #     name: roomalert.3e.digital_sen2_7
  #   description: TBD
  #   unit: "TBD"
  # TODO, no such OID
  #  - MIB: ROOMALERT3E-MIB
  #    symbol:
  #      OID: 1.3.6.1.4.1.20916.1.9.1.1.2.8.0
  #      name: roomalert.3e.digital_sen2_label
  #      format: TODO_handle_conversion_to_one
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.1.2.1.0
      name: roomalert.3e.switch_sen1
      chart_meta:
        description: The reading for the switch sensor
        family: 'Hardware/Sensor/Switch/Status'
        unit: "{status}"
      mapping:
        0: open
        1: closed
  #  - MIB: ROOMALERT3E-MIB
  #    symbol:
  #      OID: 1.3.6.1.4.1.20916.1.9.1.2.2.0
  #      name: roomalert.3e.switch_label
  #      format: TODO_handle_conversion_to_one
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.1.0
      name: roomalert.3e.red_led
      chart_meta:
        description: The status of the red Signal Tower LED
        family: 'Hardware/SignalTower/LED/Red/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.2.0
      name: roomalert.3e.amber_led
      chart_meta:
        description: The status of the amber Signal Tower LED
        family: 'Hardware/SignalTower/LED/Amber/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.3.0
      name: roomalert.3e.green_led
      chart_meta:
        description: The status of the green Signal Tower LED
        family: 'Hardware/SignalTower/LED/Green/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.4.0
      name: roomalert.3e.blue_led
      chart_meta:
        description: The status of the blue Signal Tower LED
        family: 'Hardware/SignalTower/LED/Blue/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.5.0
      name: roomalert.3e.white_led
      chart_meta:
        description: The status of the white Signal Tower LED
        family: 'Hardware/SignalTower/LED/White/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.6.0
      name: roomalert.3e.alarm1
      chart_meta:
        description: The status of the Signal Tower alarm1
        family: 'Hardware/SignalTower/Alarm/1/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
  - MIB: ROOMALERT3E-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.9.2.7.0
      name: roomalert.3e.alarm2
      chart_meta:
        description: The status of the Signal Tower alarm2
        family: 'Hardware/SignalTower/Alarm/2/Status'
        unit: "{status}"
      mapping:
        0: off
        1: on
#  - MIB: ROOMALERT3E-MIB
#    symbol:
#      OID: 1.3.6.1.4.1.20916.1.9.3.1.0
#      name: roomalert.3e.alarmmessage
#      format: TODO_handle_conversion_to_one
