extends:
  - avtech.yaml

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

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.20916.1.13.*

metrics:
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.1.1.1.0
      name: roomalert.3s.internal_tempf
      chart_meta:
        description: Internal temperature
        family: 'Hardware/Sensor/Internal/Temperature/Value'
        unit: "degF"
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.1.1.2.0
      name: roomalert.3s.internal_tempc
      chart_meta:
        description: Internal temperature
        family: 'Hardware/Sensor/Internal/Temperature/Value'
        unit: "Cel"
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.2.1.1.0
      name: roomalert.3s.digital_sen1_1
      chart_meta:
        description: Current temperature
        family: 'Hardware/Sensor/Digital/Temperature/Value'
        unit: "Cel"
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.2.1.2.0
      name: roomalert.3s.digital_sen1_2
      chart_meta:
        description: Current temperature
        family: 'Hardware/Sensor/Digital/Temperature/Value'
        unit: "degF"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.1.2.1.3.0
  #     name: roomalert.3s.digital_sen1_3
  #   description: If this sensor is a Temp/Humidity sensor, this value represents the current relative humidity in % Relative Humidity. If this sensor is a Temp/Analog sensor, this value represents the current Voltage reading. If this is a Temp/Active Power sensor, this value represents the current power state (1=Power Detected, 0=No Power Detected). If this is a Digital Extreme Temperature sensor, this value represents the current temperature from the thermocouple in Celsius.
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.1.2.1.4.0
  #     name: roomalert.3s.digital_sen1_4
  #   description: If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Fahrenheit. If this sensor is a Temp/Analog sensor, this value represents the current custom reading. If this is a Digital Extreme Temperature sensor, this value represents the current temperature from the thermocouple in Fahrenheit.
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.1.2.1.5.0
  #     name: roomalert.3s.digital_sen1_5
  #   description: If this sensor is a Temp/Humidity sensor, this value represents the current heat index in Celsius. If this is a Digital Extreme Temperature Sensor, this value is a fault code. 0 = no fault.
  #   unit: "TBD"
  # TODO, here we don't have an OID giving us sensor type
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.2.1.6.0
      name: roomalert.3s.digital_sen1_6
      chart_meta:
        description: Current dew point
        family: 'Hardware/Sensor/Digital/DewPoint/Value'
        unit: "Cel"
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.2.1.7.0
      name: roomalert.3s.digital_sen1_7
      chart_meta:
        description: Current dew point
        family: 'Hardware/Sensor/Digital/DewPoint/Value'
        unit: "degF"
  - MIB: ROOMALERT3S-MIB
    symbol:
      OID: 1.3.6.1.4.1.20916.1.13.1.3.1.0
      name: roomalert.3s.switch_sen1
      chart_meta:
        description: The reading for switch sensor 1
        family: 'Hardware/Sensor/Switch/Status'
        unit: "{status}"
      mapping:
        0: open
        1: closed
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.1.0
  #     name: roomalert.3s.externalrelay1_element_one
  #   description: External relay 1 element one state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.2.0
  #     name: roomalert.3s.externalrelay1_element_two
  #   description: External relay 1 element two state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.3.0
  #     name: roomalert.3s.externalrelay1_element_three
  #   description: External relay 1 element three state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.4.0
  #     name: roomalert.3s.externalrelay1_element_four
  #   description: External relay 1 element four state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.5.0
  #     name: roomalert.3s.externalrelay1_element_five
  #   description: External relay 1 element five state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.6.0
  #     name: roomalert.3s.externalrelay1_element_six
  #   description: External relay 1 element six state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.7.0
  #     name: roomalert.3s.externalrelay1_element_seven
  #   description: External relay 1 element seven state
  #   unit: "TBD"
  # - MIB: ROOMALERT3S-MIB
  #   symbol:
  #     OID: 1.3.6.1.4.1.20916.1.13.3.1.8.0
  #     name: roomalert.3s.externalrelay1_element_eight
  #   description: External relay 1 element eight state
  #   unit: "TBD"
  # TODO no status found
