Odkurzacz xiaomi

Zmień wersję integracji na starszą:

Wszystko działa również jak by ktoś szukał jak by mapa się zmiejszała to Pan Piotrek udzielił mi informacji i przekazuję dalej aby nie truć mu głowy hehe.
Dodajemy wpis w configuration.yaml lub pliku camera.yaml zalezy gdzie mamy konfigurację.
Ten Wpis
1221

  • platform: xiaomi_cloud_map_extractor
    host: xxxxxxxxxxxx
    token: xxxxxxxxxx
    username: xxxxxxxxxxx
    password: xxxxxxxxxx
    name: Benio
    draw: [‘all’]
    map_transformation:
    scale: 2 tutaj nie zmieniamy zmieniłem na 12 i bramka padła
    trim:
    top: 10
    bottom: 10
    left: 10
    right: 10

tam gdzie są 10 mapę dostosowujemy pod siebię wartości zwiekszamy co 10 i patrzymy czy nam mapa pasuję.Nie restartujemy AIS tylko w kontroli serwera klikamy na Ponowne wczytanie konfiguracji YAML ->>>>Klikamy na "Domenę Xiaomi_cloud_map_extractor.

Witam czy ktoś wie jak zrobić aby wyswietlał się poziom wody z integracjii Pana Piotra
Widzę atrybut “Water grade: 12”.Mile widziany był by jakiś podgląd w żródło abym miał podglad jak ro robić na przyszlość

Odkurzacz nie wie ile ma wody - natomiast ta liczba 12 oznacza ilość podawanej wody podczas mopowania - z doświadczenia ustawiam raz i zapominam.
O ile dobrze pamiętam to ilość podawanej wody miała takie wartości:
11 - mało
12- standardowo
13 - dużo

Ok już będę wiedział

czw., 30 gru 2021, 14:58 użytkownik Dawid Przybylski z AI-Speaker <ai_speaker@discoursemail.com> napisał:

Czy ktoś wie gdzie zrobiłem bład?

type: custom:xiaomi-vacuum-map-card
preset_name: Live map
entity: vacuum.benio
map_source:
  camera: camera.benio
calibration_source:
  camera: true
vacuum_platform: KrzysztofHajdamowicz/miio2
map_modes:
  - template: vacuum_clean_segment
    predefined_selections:
      - id: 12
        label:
          text: Komputer
          x: 7.95
          'y': -2.65
        icon:
          name: mdi:desktop-tower
          x: 7.95
          'y': -1.95
      - id: 13
        label:
          text: Sypialnia
          x: 5.4
          'y': -3.4
        icon:
          name: mdi:bed
          x: 5.4
          'y': -2.6
      - id: 15
        label:
          text: Wejscie
          x: 1.2
          'y': -3.9
        icon:
          name: mdi:exit-run
          x: 1.2
          'y': -3.1
      - id: 14
        label:
          text: Salon
          x: 5.5
          'y': 2.55
        icon:
          name: mdi:television
          x: 5.45
          'y': 3.25
      - id: 11
        label:
          text: Oliwier
          x: 1.5
          'y': 5.9
        icon:
          name: mdi:emoticon-cool-outline
          x: 1.5
          'y': 6.5
      - id: 10
        label:
          text: Lazienka
          x: 1.15
          'y': 1.95
        icon:
          name: mdi:shower
          x: 1.15
          'y': 2.55
additional_presets:
  - preset_name: Static image
    entity: vacuum.benio
    map_source:
      image: /local/img/oknoZ.png
    map_locked: true
    calibration_source:
      calibration_points:
        - vacuum:
            x: 22633
            'y': 31641
          map:
            x: 322
            'y': 172
        - vacuum:
            x: 22633
            'y': 26514
          map:
            x: 322
            'y': 1342
        - vacuum:
            x: 34283
            'y': 26514
          map:
            x: 2993
            'y': 1342
    map_modes:
      - template: vacuum_clean_segment
        predefined_selections:
          - id: 12
            label:
              text: Komputer
              x: 7.95
              'y': -2.65
            icon:
              name: mdi:desktop-tower
              x: 22932
              'y': 31915

Zrobiłem działa

    map_modes:
      - name: Rooms
        icon: mdi:floor-plan
        selection_type: ROOM
        max_selections: 5
        repeats_type: NONE
        max_repeats: 5
        service_call_schema:
          service: script.1640985949766
          service_data:
            rooms: '[[selection]]'
            predefined: 'true'
          target:
            entity_id: '[[entity_id]]'
        predefined_selections:
          - id: 1
            label:
              text: Bedroom
              x: 7.95
              'y': -2.65
            icon:
              name: mdi:bed
              x: 22932
              'y': 31915

nalezy utworzyć przy static image script

sequence:
  - data:
      command: set_mode_withroom
      params:
        - 0
        - 1
        - 1
        - 12
    entity_id: vacuum.benio
    service: vacuum.send_command
mode: single
alias: benio komputer

Wszystko działa poprostu użylem starej konfiguracji
Static image może komuś się to przyda

type: custom:xiaomi-vacuum-map-card
entity: vacuum.benio
map_source:
  image: /local/img/mapabenio.jpg
vacuum_platform: KrzysztofHajdamowicz/miio2
calibration_source:
  calibration_points:
    - vacuum:
        x: 0
        'y': 0
      map:
        x: 0
        'y': 0
    - vacuum:
        x: 1
        'y': 1
      map:
        x: 1
        'y': 1
    - vacuum:
        x: 1
        'y': 0
      map:
        x: 1
        'y': 0
map_modes:
  - template: vacuum_clean_segment
    predefined_selections:
      - id: 12
        icon:
          name: mdi:desktop-tower
          x: 757.95
          'y': 966
      - id: 13
        icon:
          name: mdi:bed
          x: 457.95
          'y': 966
      - id: 15
        icon:
          name: mdi:exit-run
          x: 157.95
          'y': 1066
      - id: 14
        icon:
          name: mdi:television
          x: 557.95
          'y': 386
      - id: 11
        icon:
          name: mdi:emoticon-cool-outline
          x: 157.95
          'y': 120.5
      - id: 10
        icon:
          name: mdi:shower
          x: 157.95
          'y': 486
language: pl
style: |
  ha-card {
   background: #32323200;
  }
map_locked: true