mqtt:
  binary_sensor:
    name: 'Doorbell'
    object_id: mq_k1_doorbell
    unique_id: mq_k1_doorbell
    state_topic: 'relay32/9f5b9aecf1ea0c0d22014edd/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0
    icon: mdi:bell
    device:
      identifiers: 'Virtual_kincony_h32b_pro_1'
      name: 'H32B Pro'
      hw_version: '2.3'
      sw_version: '1.19'
      manufacturer: 'Kincony'
      model: 'KC868-H32B Pro'
      suggested_area: Outdoors

  switch:
  - name: 'Cover up'
    state_topic: 'relay32/9f5b9aecf1ea0c0d22014edd/state'
    command_topic: 'relay32/9f5b9aecf1ea0c0d22014edd/set'
    payload_on: '{"relay1":{"on":1}}'
    payload_off: '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0
    device_class: switch
    icon: mdi:chevron-double-up
    object_id: mq_k1_cover_up
    unique_id: mq_k1_cover_up
    device:
      identifiers: 'Virtual_kincony_h32b_pro_1'