PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.12k stars 121 forks source link

Add two cameras on configuration.yaml #508

Closed maorgeter closed 5 months ago

maorgeter commented 5 months ago

Checklist

The problem

Hi, I have two Xiaomi robots, when im trying to add camera: twice on configuration .yaml im getting warning: image

How can I define two different "cameras"?

What version of an integration has described problem?

v2.2.1

What was the last working version of an integration?

v2.2.1

What vacuum model do you have problems with?

roborock s5

What version of Home Assistant do you use?

2024.1.5

What type of installation are you running?

Home Assistant OS

Camera's configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    host: cc
    token: cc
    username: cc@gmail.com
    password: ccc
    name: ccc
    draw: ['all']
    attributes:
      - calibration_points

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

PiotrMachowski commented 5 months ago

You have to merge them and provide names to both of them:

camera:
  - platform: xiaomi_cloud_map_extractor
    name: camera 1
    host: cc
    token: cc
    username: cc@gmail.com
    password: ccc
    name: ccc
    draw: ['all']
    attributes:
      - calibration_points
  - platform: xiaomi_cloud_map_extractor
    name: camera 2
    host: cc
    token: cc
    username: cc@gmail.com
    password: ccc
    name: ccc
    draw: ['all']
    attributes:
      - calibration_points