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

Unsupported model: philips.light.zyceiling #1266

Closed
zvldz opened this issue Dec 17, 2021 · 1 comment
Closed

Unsupported model: philips.light.zyceiling #1266

zvldz opened this issue Dec 17, 2021 · 1 comment

Comments

@zvldz
Copy link

zvldz commented Dec 17, 2021

If you are receiving a warning indicating an unsupported model (Found an unsupported model '<model>' for class '<class>'.),
this means that the implementation does not list your model as supported.

If it is working fine for you nevertheless, feel free to open an issue or create a PR to add the model to the _supported_models (example) for that class.

Before submitting, use the search to see if there is an existing issue for the device model, thanks!

Device information:

Use miiocli device --ip <ip address> --token <token>.

  • Model: model:philips.light.zyceiling
  • Hardware version: MTK7697
  • Firmware version: 2.0.9

The warning message:

2021-12-17 15:06:32 WARNING (SyncWorker_1) [miio.device] Found an unsupported model 'philips.light.zyceiling' for class 'Ceil'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/

miiocli output:

# miiocli --debug philipsbulb --ip 192.168.170.150 --token xxxYYYxxx status
INFO:miio.cli:Debug mode active
DEBUG:miio.click_common:Unknown model, trying autodetection. None None
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\x03\xb9\t\x8d\x00\x06\xec\x81' (total 16)
        value = Container: 
            length = 32
            unknown = 0
            device_id = unhexlify('03b9098d')
            ts = 1970-01-06 06:02:41
        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 03b9098d with ts: 1970-01-06 06:02:41, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.170.150:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:192.168.170.150:54321 (ts: 1970-01-06 06:02:42, id: 1) << {'id': 1, 'result': {'life': 453762, 'uid': 1701801948, 'model': 'philips.light.zyceiling', 'token': 'xxxYYYxxx', 'ipflag': 1, 'fw_ver': '2.0.9', 'mcu_fw_ver': '0030', 'miio_ver': '0.0.9', 'hw_ver': 'MTK7697', 'mmfree': 76768, 'mac': '05:04:04:02:01:00', 'wifi_fw_ver': '20201230141059', 'ap': {'ssid': 'xxxZZZ', 'bssid': '00:01:02:03:04:05', 'rssi': -25, 'primary': 1}, 'netif': {'localIp': '192.168.170.150', 'mask': '255.255.255.0', 'gw': '192.168.170.1'}}, 'exe_time': 262}
DEBUG:miio.device:Detected model philips.light.zyceiling
WARNING:miio.device:Found an unsupported model 'philips.light.zyceiling' for class 'PhilipsBulb'. If this is working for you, please open an issue at https://github.com/rytilahti/python-miio/
DEBUG:miio.miioprotocol:192.168.170.150:54321 >>: {'id': 2, 'method': 'get_prop', 'params': ['power', 'dv', 'bright', 'cct', 'snm']}
DEBUG:miio.miioprotocol:192.168.170.150:54321 (ts: 1970-01-06 06:02:42, id: 2) << {'id': 2, 'result': ['off', 0, 10, 1, 0], 'exe_time': 223}
Power: off
Brightness: 10
Delayed turn off: 0
Color temperature: 1
Scene: 0
@zvldz zvldz changed the title Support for model:philips.light.zyceiling Unsupported model: philips.light.zyceiling Dec 17, 2021
@rytilahti
Copy link
Owner

Thanks for the report, this has been fixed by #1258 so the warning will disappear in the next python-miio release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants