name: Temperature and humidity sensor
products:
  - id: 7akwzwfwhukkdsib
    model: TH16
    model_id: TH06WB3S
entities:
  - entity: sensor
    class: temperature
    dps:
      - id: 1
        name: sensor
        type: integer
        unit: C
        mapping:
          - scale: 10
        class: measurement
  - entity: sensor
    class: humidity
    dps:
      - id: 2
        type: integer
        name: sensor
        unit: "%"
        class: measurement
  - entity: select
    translation_key: temperature_unit
    category: config
    dps:
      - id: 9
        name: option
        type: string
        mapping:
          - dps_val: "f"
            value: fahrenheit
          - dps_val: "c"
            value: celsius
        optional: true
  - entity: light
    translation_key: display
    category: config
    dps:
      - id: 21
        type: boolean
        name: switch
        optional: true
