Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing vacuum real-time map and path data? #551

Open
jaidenlabelle opened this issue Oct 29, 2024 · 0 comments
Open

Accessing vacuum real-time map and path data? #551

jaidenlabelle opened this issue Oct 29, 2024 · 0 comments
Labels
tuya_device Support for specific Tuya Devices

Comments

@jaidenlabelle
Copy link

jaidenlabelle commented Oct 29, 2024

I'm trying to get real-time map and path data

I'm using a Lefant M1 Robot Vacuum.

It's possible to get the real-time map and path from a vacuum using the LASER Robot Vacuum API.

After checking the available instruction set I saw request and path_data, however request does not seem to change anything and path_data is always empty.

Running the code:

commands = {
    "commands": [
        {
            "code": "request",
            "value": "get_both",
        }
    ]
}

print("Sending command...")
result = cloud.sendcommand(DEVICE_ID,commands)
print("Results\n:", result)

# Display Status of Device
result = cloud.getstatus(DEVICE_ID)
print("Status of device:\n", result

Outputs:

Sending command...
Results
: {'result': True, 'success': True, 't': 1730228892732, 'tid': '24cc7ea8962911efa58f363ce1647492'}
Status of device:
 {'result': [{'code': 'power_go', 'value': False}, {'code': 'pause', 'value': False}, {'code': 'switch_charge', 'value': False}, {'code': 'mode', 'value': 'smart'}, {'code': 'status', 'value': 'sleep'}, {'code': 'clean_time', 'value': 0}, {'code': 'clean_area', 'value': 0}, {'code': 'electricity_left', 'value': 100}, {'code': 'suction', 'value': 'normal'}, {'code': 'cistern', 'value': 'middle'}, {'code': 'seek', 'value': False}, {'code': 'direction_control', 'value': 'forward'}, {'code': 'reset_map', 'value': False}, {'code': 'path_data', 'value': ''}, {'code': 'command_trans', 'value': 'qgBIOQIBEY8Npm1hcDEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmQ=='}, {'code': 'request', 'value': 'get_map'}, {'code': 'break_clean', 'value': False}, {'code': 'fault', 'value': 0}, {'code': 'device_timer', 'value': 'qgANMfwBAQAFHgEFAQMAAl4='}], 'success': True, 't': 1730228893035, 'tid': '24fae105962911ef9b0cdebf439cdce9'}
@jasonacox jasonacox added the tuya_device Support for specific Tuya Devices label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tuya_device Support for specific Tuya Devices
Projects
None yet
Development

No branches or pull requests

2 participants