Learn Config Schemas - aliconnect/aliconnect.sdk GitHub Wiki

Config Schema Area

Config Schema Area

Low & High propertie van attribute

De gemeten value wordt vergeleken met de ingevulde waarden voor Low en High. Afhankelijk van de waarde die gemeten is wordt de melding true of false gemaakt. Onderstaand figuur laat dit zien. LowHighVisual Bij 1. is te zien dat wanneer de gelezen value lager wordt dan 5 er een melding aangezet moet worden In deze situatie zal de value van de attributen op 1 worden gezet dus true.

Het zelfde principe werkt ook bij bits. Wanneer er een alarm in een gezonde situatie 1 is moet er Low = 0 aan als propertie geconfigureerd worden. Hieruit volgt de volgende logictabl.

value output
0 |      1
1 |      0

Config

components:
  schemas:
    Attribute:
      allOf:
        - Item
      header:
        - [Tag,Title]
        - [Tagname, Name]
        - [AttributeType]
      properties:
        Low:
          title: Low
          type: number
        High:
          title: High
          type: number

Schema Attribute

Toelichting

Coonfig

components:
  schemas:
    Attribute:
      allOf:
        - Item
      header:
        - [Tag,Title]
        - [Tagname, Name]
        - [AttributeType]
      properties:

        # Name:
        #   legend: Attribute
        #   title: Name
        # Title:
        #   title: title
        Description:
          title: Description

        # State:
        #   title: State
        #   idname: state
        StateMessage:
          title: StateMessage
        # VALUES
        # Value:title: Value idname: value type: meter attr:min: 200 max: 350 optimum: 230 low: 220 high: 280 unit: °C
        Value:
          title: Value
        Quality:
          title: Quality
          type: radio
          options:
            Valid:
              title: Valid
              color: green
            NotValid:
              title: NotValid
              color: orange
            CommunicationError:
              title: CommunicationError
              color: red
            UnInitialized:
              title: UnInitialized
              color: gray
        AttributeType:
          legend: Type
          title: Attribute type
          type: select
          options: &AttributeTypeOption
            CriticalFailure:
              title: Critical Failure
              color: red
            NonCriticalFailure:
              title: Non Critical Failure
              color: orange
            Locking:
              title: Locking
              color: yellow
            Maintenance:
              title: Maintenance
            Running:
              title: Running
              color: green
            RunningMode:
              title: Running mode
            Security:
              title: Security
            PreWarning_1:
              title: Pre warning 1
            PreWarning_2:
              title: Pre warning 2
            PreWarning_3:
              title: Pre warning 3
            PreWarning_4:
              title: Pre warning 4
            PreWarning_5:
              title: Pre warning 5
            PreWarning_6:
              title: Pre warning 6
            PreWarning_7:
              title: Pre warning 7
            Measurement_1:
              title: Measurement 1
            Measurement_2:
              title: Measurement 2
            Measurement_3:
              title: Measurement 3
            Measurement_4:
              title: Measurement 4
            Measurement_5:
              title: Measurement 5
            Measurement_6:
              title: Measurement 6
            MeasurementErrorFlag:
              title: MeasurementErrorFlag
            NotApplicable:
              title: Not Applicable
        ValueType:
          title: Value type
          type: select
          options:
            text:
              title: String
            integer:
              title: Integer
            double:
              title: Double
            bool:
              title: Boolean
            date:
              title: Date
            time:
              title: Time
            datetime:
              title: Date and time
        # Enum:title: Options type: text options:0:title: 0=Not Active|!1=Active  1:title: 0=Active|1=Not Active
        Enum:
          title: Enummeration
          type: text
        Unit:
          title: Unit
          type: text
        Calc:
          title: Calculation function
          type: select
          options:
            OnlineHours:
              title: OnlineHours()
        # //DisplayMin:legend: Display title: Min type: number
        # //DisplayLow:title: Low type: number
        # //DisplayOptimum:title: Optimum type: number
        # //DisplayHigh:title: High type: number
        # //DisplayMax:title: Max type: number
        Min:
          legend: Display
          title: Min
          type: number
        Max:
          title: Max
          type: number
        Step:
          title: Step
          type: number
        Optimum:
          title: Optimum
          type: number
        Low:
          title: Low
          type: number
        High:
          title: High
          type: number
        Hysteresis:
          title: Hysteresis
          type: number
          step: 0.1
        # Master:
        #   title: Onderdeel van
        #   legend: Configuratie
        #   type: array
        # Src:
        #   title: Kopie van
        #   legend: Configuratie
        #   schema: '*'
        # //AlarmMax:legend: Alarm title: Low Alarm Margin type: number step: 0.1
        # //AlarmMin:title: Low Alarm Margin type: number step: 0.1
        # //AlarmLow:legend: Alarm title: Low Alarm Margin type: number step: 0.1
        # //AlarmLowAttributeType:title: Attribute type type: select options: AttributeTypeOption
        # //AlarmLowCount:title: Low Alarm Count type: number
        # //AlarmLowWarning:title: Low Warning Margin type: number step: 0.1
        # //AlarmLowWarningAttributeType:title: Attribute type type: select options: AttributeTypeOption
        # //AlarmLowWarningCount:title: Low Warning Count type: number
        # //AlarmHighWarning:title: High Warning Margin type: number step: 0.1
        # //AlarmHighWarningAttributeType:title: Attribute type type: select options: AttributeTypeOption
        # //AlarmHighWarningCount:title: High Warning Count type: number
        # //AlarmHigh:title: High Alarm Margin type: number step: 0.1
        # //AlarmHighAttributeType:title: Attribute type type: select options: AttributeTypeOption
        # //AlarmHighCount:title: High Alarm Count type: number
        # //AlarmHysteresis:title: Hysteresis type: number step: 0.1

Schema Contact

Introductie

Derived from Item

components:
  schemas:
    Contact:
      allOf:
      - Item

Basic properties

components:
  schemas:
    Contact:
      properties:
        Initials:
          legend: Contactperson
          title: Initials
        GivenName:
          title: GivenName
        FirstName:
          title: FirstName
        MiddleName:
          title: MiddleName
        Surname:
          title: Surname

Header

components:
  schemas:
    Contact:
      header:
      - - GivenName
        - FirstName
        - MiddleName
        - Surname
      - - Department
      - - OfficeLocation

State

components:
  schemas:
    Contact:
      properties:
        State:
          type: radio
          filter: 1
          send: 1
          title: Functie Status
          hostID: 1
          options:
            offline:
              title: Offline
              color: rgb(130,130,130)
            online:
              title: Online
              color: rgb(50,50,200)
            focus:
              title: Focus
              color: rgb(50,50,200)

Company properties

components:
  schemas:
    Contact:
      properties:
        Company:
          legend: Company
          title: Company
          schema: Company
          idname: masterID
        CompanyName:
          title: CompanyName
        OfficeLocation:
          title: OfficeLocation
        Department:
          title: Afdeling
          filter: 1
          schema: Department
        Manager:
          title: Manager
          schema: Contact
        Assistant:
          title: Assistant
          hostID: 1
          schema: Contact
        JobTitle:
          legend: Job
          title: JobTitle
          filter: 1
        StartDateTime:
          title: StartDateTime
          type: date
        FinishDateTime:
          title: FinishDateTime
          type: date
        Arbeidsrelatie:
          title: Contract
          type: radio
          filter: 1
          options:
            werknemer:
              title: Werknemer
              color: rgb(112,48,160)
            interim:
              title: Interim
              color: rgb(112,48,160)
            detachering:
              title: Detachering
              color: rgb(0,176,240)
        BusinessPhones0:
          legend: Contactgegevens
          title: Company Phone
          type: tel
          hostID: 1
        BusinessHomePage:
          title: Company Website
          type: url
          hostID: 1
        EmailAddresses1Address:
          title: Company Email
          type: email
          hostID: 1
        MobilePhone1:
          title: Contact Mobile
          type: tel
        BusinessPhones1:
          title: Contact Phone
          type: tel
        EmailAddresses0Address:
          title: Contact Email
          type: email
          rights: 3
        BusinessAddress:
          title: BusinessAddress
          type: address
          location: true
        OtherAddress:
          title: Post adres
          type: address
        EmailAddresses2Address:
          legend: "Priv\xE9 contactgegevens"
          title: EmailAddresses2Address
          type: email
          state: personal
        HomePhones0:
          title: HomePhones0
          type: tel
        HomePhones1:
          title: HomePhones1
          type: tel
        SpouseName:
          title: SpouseName
        Birthday:
          title: Birthday
          type: date
        HomeAddress:
          title: HomeAddress
          type: address
        AfspraakDatum:
          legend: Planning
          title: Volgend overleg
          user: host
          type: date
        AfspraakTijd:
          title: Starttijd
          user: host
          type: time
        AfspraakOnderwerp:
          title: Onderwerp
          user: host
          type: textarea
        ResourceName:
          legend: Resource settings
          title: Resource name
          idname: keyname
        ResourceType:
          title: Resource type
        ResourceAvail:
          title: Beschikbaarheid
          unit: FTE
        ResourcePlan:
          title: Planbaar
          unit: FTE
        verlof:
          title: Verlof
          type: textarea
        Gebruiker:
          legend: Account
          title: User
          class: account
          idname: toID
        groupID:
          title: Usergroup
          type: text
          class: groups
        Product:
          title: Products
          type: array
          schema: System
        Children:
          type: array

ArrayArrayArrayArrayArrayArray