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

Timer command not working for roborock.vacuum.a15 #1889

Open
moeffju opened this issue Jan 15, 2024 · 0 comments
Open

Timer command not working for roborock.vacuum.a15 #1889

moeffju opened this issue Jan 15, 2024 · 0 comments
Labels

Comments

@moeffju
Copy link

moeffju commented Jan 15, 2024

Describe the bug
I have a Roborock S7, model roborock.vacuum.a15, which according to the docs should be supporting getting the timers/schedules, but the timer command only returns an empty list.

Version information (please complete the following information):

  • OS: macOS
  • python-miio: miiocli, version 0.6.0.dev0

Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:

  • Model: roborock.vacuum.a15
  • Hardware version:Linux
  • Firmware version: 4.3.5_1612

To Reproduce
Steps to reproduce the behavior:

  • mirobo --ip $VACUUM_IP --token $VACUUM_TOKEN timer

I also tried with genericmiot but couldn't find a timer action or sensor, and calling get_timer didn't work.

Expected behavior
I expect to see the schedules I defined in the Mi Home app.

Console output

# mirobo --ip $VACUUM_IP --token $VACUUM_TOKEN timer
Timezone: Europe/Berlin

#

Debug output:

...
DEBUG:miio.integrations.roborock.vacuum.vacuum_cli:Connecting to 192.168.0.144 with token <redacted>
DEBUG:miio.click_common:Unknown model, trying autodetection
DEBUG:miio.miioprotocol:Got a response: Container:
    data = Container:
        data = b'' (total 0)
        value = b'' (total 0)
        offset1 = 32
        offset2 = 32
        length = 0
    header = Container:
        data = b'!1\x00 \x00\x00\x00\x00\x1e1\x1b4\x00\x00\xb33' (total 16)
        value = Container:
            length = 32
            unknown = 0
            device_id = unhexlify('1e311b34')
            ts = 1970-01-01 12:44:35+00:00
        offset1 = 0
        offset2 = 16
        length = 16
    checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 1e311b34 with ts: 1970-01-01 12:44:35+00:00, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.0.144:54321 >>: {'id': 39, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:192.168.0.144:54321 (ts: 1970-01-01 12:44:35+00:00, id: 39) << {'exe_time': 1,
 'id': 39,
 'result': {'MemFree': 36552,
            'VmPeak': 9260,
            'VmRSS': 1792,
            'VmSize': 9260,
            'ap': {'bssid': '<redacted>',
                   'freq': 0,
                   'rssi': '0',
                   'ssid': '<redacted>'},
            'fw_ver': '4.3.5_1612',
            'hw_ver': 'Linux',
            'ipflag': 1,
            'life': 45875,
            'mac': '<redacted>',
            'miio_client_ver': '4.3.5',
            'miio_times': [45874, 20, 0, 45853],
            'miio_ver': '0.0.9',
            'model': 'roborock.vacuum.a15',
            'netif': {'gw': '<redacted>',
                      'localIp': '192.168.0.144',
                      'mask': '<redacted>'},
            'token': '<redacted>',
            'uid': 1628758708,
            'uptime': 45889}}
DEBUG:miio.device:Detected model roborock.vacuum.a15
DEBUG:miio.miioprotocol:192.168.0.144:54321 >>: {'id': 40, 'method': 'get_timer', 'params': ['']}
DEBUG:miio.miioprotocol:192.168.0.144:54321 (ts: 1970-01-01 12:44:35+00:00, id: 40) << {'exe_time': 10, 'id': 40, 'result': []}
DEBUG:miio.miioprotocol:192.168.0.144:54321 >>: {'id': 41, 'method': 'get_timezone', 'params': []}
DEBUG:miio.miioprotocol:192.168.0.144:54321 (ts: 1970-01-01 12:44:35+00:00, id: 41) << {'exe_time': 10, 'id': 41, 'result': ['Europe/Berlin']}
Timezone: Europe/Berlin

@moeffju moeffju added the bug label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant