Map data parser that can be used to parse maps generated by Ijai vacuums (based on map data parser for Viomi by Piotr Machowski).
pip install vacuum-map-parser-ijaifrom vacuum_map_parser_base.config.color import ColorsPalette
from vacuum_map_parser_base.config.drawable import Drawable
from vacuum_map_parser_base.config.image_config import ImageConfig
from vacuum_map_parser_base.config.size import Sizes
from vacuum_map_parser_base.config.text import Text
from vacuum_map_parser_ijai.map_data_parser import IjaiMapDataParser
palette: ColorsPalette = ColorsPalette()
sizes: Sizes = Sizes()
drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
image_config: ImageConfig = ImageConfig()
texts: list[Text] = []
raw_map: bytes = b''
parser = IjaiMapDataParser(palette, sizes, drawables, image_config, texts)
unpacked_map = parser.unpack_map(raw_map,
wifi_sn='******SD**********',
owner_id='**********',
device_id='**********',
model='ijai.vacuum.***',
device_mac='**:**:**:**:**:**')
parsed_map = parser.parse(unpacked_map)- ijai.vacuum.* (at least v1, v2, v3, v10, v13, v18, v19)
- xiaomi.vacuum.c103
- xiaomi.vacuum.c104
- xiaomi.vacuum.b106eu If you got another vacuum to work, please tell us
The code of this library was initially created by @halfbakery as a part of Xiaomi Cloud Map Extractor.