name: Climate remote
products:
  - id: 09gdcqy0dgziveek
    manufacturer: Avatto
    model: WHS20S
entities:
  - entity: sensor
    class: temperature
    dps:
      - id: 1
        type: integer
        name: sensor
        class: measurement
        mapping:
          - scale: 10
      - id: 105
        type: string
        name: unit
        mapping:
          - dps_val: f
            value: F
          - value: C
  - entity: sensor
    class: humidity
    dps:
      - id: 2
        type: integer
        name: sensor
        unit: "%"
        class: measurement
  - entity: sensor
    class: battery
    category: diagnostic
    dps:
      - id: 4
        type: integer
        name: sensor
        unit: "%"
        class: measurement
      - id: 8
        type: boolean
        optional: true
        name: charging
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 10
        type: string
        name: sensor
        mapping:
          - dps_val: device_fault
            value: true
          - value: false
      - id: 10
        type: string
        name: description
      - id: 103
        type: string
        optional: true
        name: device_status
      - id: 104
        type: string
        optional: true
        name: device_version
  - entity: binary_sensor
    class: connectivity
    category: diagnostic
    dps:
      - id: 10
        type: string
        name: sensor
        mapping:
          - dps_val: online
            value: true
          - value: false
      - id: 11
        type: string
        name: power_off_reason
  - entity: binary_sensor
    class: plug
    category: diagnostic
    dps:
      - id: 20
        type: string
        name: sensor
        mapping:
          - dps_val: usb_power
            value: true
          - value: false
      - id: 20
        type: string
        name: details
  - entity: select
    translation_key: temperature_unit
    category: config
    dps:
      - id: 105
        type: string
        name: option
        mapping:
          - dps_val: c
            value: celsius
          - dps_val: f
            value: fahrenheit
  - entity: remote
    dps:
      - id: 201
        name: send
        type: string
        optional: true
      - id: 202
        name: receive
        type: string
        optional: true
        persist: false
