name: Ventilation system
products:
  - id: qcgxajmb0sdg608j
    manufacturer: Royal Clima
    model: RCB 150
entities:
  - entity: fan
    translation_only_key: ventilation
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 2
        name: preset_mode
        type: string
        mapping:
          - dps_val: Air_Supply
            value: fresh
          - dps_val: Recirculation
            value: circulate
          - dps_val: Sleep
            value: sleep
          - dps_val: Auto
            value: auto
          - dps_val: Eco
            value: eco
          - dps_val: Anti_Condensation
            value: anti-condensation
      - id: 12
        name: speed
        type: string
        mapping:
          - dps_val: "1"
            value: 17
          - dps_val: "2"
            value: 33
          - dps_val: "3"
            value: 50
          - dps_val: "4"
            value: 67
          - dps_val: "5"
            value: 83
          - dps_val: "6"
            value: 100
  - entity: sensor
    class: pm25
    dps:
      - id: 3
        type: integer
        name: sensor
        unit: ugm3
        class: measurement
  - entity: switch
    translation_key: ionizer
    category: config
    dps:
      - id: 5
        type: boolean
        name: switch
  - entity: sensor
    name: Filter life
    icon: "mdi:air-filter"
    category: diagnostic
    dps:
      - id: 11
        type: integer
        name: sensor
        unit: "%"
  - entity: button
    translation_key: filter_reset
    category: config
    dps:
      - id: 13
        type: boolean
        name: button
  - entity: select
    name: "On timer"
    translation_key: timer
    category: config
    dps:
      - id: 16
        type: string
        name: option
        mapping:
          - dps_val: cancel
            value: cancel
          - dps_val: "1h"
            value: "1h"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "3h"
            value: "3h"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "5h"
            value: "5h"
          - dps_val: "6h"
            value: "6h"
          - dps_val: "7h"
            value: "7h"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "9h"
            value: "9h"
          - dps_val: "10h"
            value: "10h"
          - dps_val: "11h"
            value: "11h"
          - dps_val: "12h"
            value: "12h"
  - entity: sensor
    name: Outdoor temperature
    class: temperature
    dps:
      - id: 22
        type: integer
        name: sensor
        unit: C
        class: measurement
  - entity: climate
    translation_key: heater
    icon: "mdi:heat-wave"
    dps:
      - id: 42
        name: hvac_mode
        type: boolean
        mapping:
          - dps_val: false
            value: "off"
          - dps_val: true
            constraint: fan_switch
            conditions:
              - dps_val: true
                value: heat
              - dps_val: false
                value: "off"
      - id: 102
        name: temperature
        type: integer
        unit: C
        range:
          min: 10
          max: 30
      - id: 1
        name: fan_switch
        type: boolean
        hidden: true
  - entity: select
    name: "Off timer"
    translation_key: timer
    category: config
    dps:
      - id: 101
        type: string
        name: option
        mapping:
          - dps_val: cancel
            value: cancel
          - dps_val: "1h"
            value: "1h"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "3h"
            value: "3h"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "5h"
            value: "5h"
          - dps_val: "6h"
            value: "6h"
          - dps_val: "7h"
            value: "7h"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "9h"
            value: "9h"
          - dps_val: "10h"
            value: "10h"
          - dps_val: "11h"
            value: "11h"
          - dps_val: "12h"
            value: "12h"
