Skip to content

Fotofangst af forhindringer ​

Kortforhindringsbilleder kan vises via Current Map enheds-kameraproxy.

Valgt ForhindringValgt ForhindringValgt Forhindring
Panel Valgt ForhindringPanel Valgt Forhindring

Forhåndsvisninger leveres af Dreame Vacuum Card

/api/camera_map_obstacle_proxy/{entity_id}?token={access_token}&index={obstacle_index}&crop={is_cropped}&file={download_file}

  • entity_id: Id for den aktuelle kortenhed (camera.{vacuum_name}_map)
  • access_token: Adgangstoken til kameraenhed (Kan erhverves fra camera.{vacuum_name}_map enhedsattributter)
  • forhindrings_index (valgfri, standard = 1): Indeks for forhindringen (Kan hentes fra camera.{vacuum_name}_map enheds-attributter)
  • er_beskåret (valgfri, standard = 1): Appen gengiver forhindringsbillederne som beskåret for at forhindre visning af kanterne på nogle enheder. Denne parameter kan sættes til 0 for at gengive det originale forhindringsbillede.
  • download_fil (valgfri, standard = 0): Kan sættes til 1 for at downloade forhindringsbilledet

Tip

Returnerer 404, hvis den ønskede forhindring ikke findes.

Eksempel:

text
http://local.homeassistant/api/camera_map_obstacle_proxy/camera.vacuum_map?token=5df93cfcf8ecc23fa17b233ca938cc52f41e2b17a46ca291865be3f9ba64d89b&index=2&crop=1

Eksempel på dashboard

For at se et eksempel på, hvordan dette endepunkt kan bruges, henvises til Forhindringskort på siden for Custom Card Templates.

Forhindringsbilleder fra Historikkort ​

Kortforhindringsbilleder for historikkort kan vises via Current Map enheds-kameraproxy.

/api/camera_map_obstacle_history_proxy/{entity_id}?token={access_token}&history_index={history_index}&cruising={is_cruising_history}&index={obstacle_index}&crop={is_cropped}&file={download_file}

  • entity_id: Id for den aktuelle kortenhed (camera.{vacuum_name}_map)
  • access_token: Adgangstoken til kameraenhed (Kan erhverves fra camera.{vacuum_name}_map enhedsattributter)
  • history_index (valgfri, standard = 1): Indeks for historikposten fra 1 til 25 (Kan erhverves fra sensor.{vacuum_name}_cleaning_history enhedsattributter)
  • is_cruising_history (valgfri, standard = 0): Kan sættes til 1 for at få cruising-historikken i stedet for rengøringshistorikken (Kun på enheder med cruising-funktion)
  • forhindrings_index (valgfri, standard = 1): Indeks for forhindringen (Kan hentes fra camera.{vacuum_name}_map enheds-attributter)
  • er_beskåret (valgfri, standard = 1): Appen gengiver forhindringsbillederne som beskåret for at forhindre visning af kanterne på nogle enheder. Denne parameter kan sættes til 0 for at gengive det originale forhindringsbillede.
  • download_fil (valgfri, standard = 0): Kan sættes til 1 for at downloade forhindringsbilledet

Tip

Returnerer 404, hvis det ønskede historikkort eller forhindring ikke findes.

Eksempel:

text
http://local.homeassistant/api/camera_map_obstacle_history_proxy/camera.vacuum_map?token=5df93cfcf8ecc23fa17b233ca938cc52f41e2b17a46ca291865be3f9ba64d89b&history_index=2&index=3