# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
allOf:
- type: object
  properties:
    calibration:
      type: object
      properties:
        scale:
          type: number
          default: 1.0
          description: A scaling factor for calibrating the sensor.

        offset:
          type: number
          default: 0.0
          description: An offset for calibrating the sensor.

    bus:
      type: integer
      description: A filter applied to the USB bus number for selecting a specific sensor if multiple are available.

    port:
      type: integer
      description: A filter applied to the USB port number for selecting a specific sensor if multiple are available.

- $ref: ../node_signals.yaml
- $ref: ../node.yaml