name: pH meter
products:
  - id: 5ok0wq7drlqyo2hb
    name: Yieryi YY-9909
primary_entity:
  entity: sensor
  name: pH
  icon: "mdi:ph"
  dps:
    - id: 102
      type: integer
      name: sensor
      unit: pH
      class: measurement
      mapping:
        - scale: 100
        - dps_val: 1500
          value: null
secondary_entities:
  - entity: sensor
    class: temperature
    dps:
      - id: 8
        type: integer
        name: sensor
        unit: C
        class: measurement
        mapping:
          - scale: 10
  - entity: sensor
    name: Total disolved solids
    dps:
      - id: 107
        type: integer
        name: sensor
        unit: ppm
        class: measurement
  - entity: sensor
    name: Electrical conductivity
    dps:
      - id: 110
        type: integer
        name: sensor
        unit: µS/cm
        class: measurement
  - entity: sensor
    name: Salinity
    dps:
      - id: 113
        type: integer
        name: sensor
        unit: ppm
        class: measurement
  - entity: sensor
    name: Specific gravity
    dps:
      - id: 116
        type: integer
        name: sensor
        class: measurement
        unit: g/ml
        mapping:
          - scale: 1000
  - entity: sensor
    name: Oxidation reduction potential
    dps:
      - id: 119
        type: integer
        name: sensor
        unit: mV
        class: measurement
