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 device found! chuangmi.ir.v2 #242

Closed
nkolev2 opened this issue Feb 26, 2018 · 3 comments
Closed

Unsupported device found! chuangmi.ir.v2 #242

nkolev2 opened this issue Feb 26, 2018 · 3 comments

Comments

@nkolev2
Copy link

nkolev2 commented Feb 26, 2018

Any advice on the error i`ve got after upgrade to v 0.64 ... could be even from lower version?

2018-02-26 15:09:50 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Unsupported device found! Please create an issue at https://github.com/rytilahti/python-miio/issues and provide the following data: chuangmi.ir.v2

configuration.yaml:

# xiaomi ir remote
  - platform: xiaomi_miio
    name: "Kitchen remote"
    host: 192.168.1.230
    token: !secret chuangmi_key
(homeassistant) homeassistant@DietPiEv3r:~/.homeassistant$ mirobo --ip=192.168.1.230 --token=<chuangmi_key> -d info
INFO:miio.vacuum_cli:Debug mode active
DEBUG:miio.vacuum_cli:Connecting to 192.168.1.230 with token <chuangmi_key>
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.device:Got a response: Container:
    data = Container:
        data =  (total 0)
        value =  (total 0)
        offset1 = 32
        offset2 = 32
        length = 0
    header = Container:
        data = !1\x00 \x00\x00\x00\x00\x03K\xfa#\x00t\xeb\xd5 (total 16)
        value = Container:
            length = 32
            unknown = 0
            device_id = \x03K\xfa# (total 4)
            ts = 1970-03-30 16:29:09
        offset1 = 0
        offset2 = 16
        length = 16
    checksum = \xd0\xeb\xf2\x02\xbb\x1e\x91\xac\x1a\xc7\xcd\xff\xf6\x8b\x92\x86 (total 16)
DEBUG:miio.device:Discovered 034bfa23 with ts: 1970-03-30 16:29:09, token: b'<chuangmi_key>'
DEBUG:miio.device:192.168.1.230:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []}
DEBUG:miio.device:192.168.1.230:54321 (ts: 1970-03-30 16:29:10, id: 1) << {'result': {'life': 7662550, 'cfg_time': 0, 'token': '<chuangmi_key>', 'mac': '<mac>', 'fw_ver': '1.2.4_38', 'hw_ver': 'MC200', 'model': 'chuangmi.ir.v2', 'wifi_fw_ver': 'SD878x-14.76.36.p79-702.1.0-WM', 'ap': {'rssi': -14, 'ssid': 'mikalp', 'bssid': '<mac>'}, 'netif': {'localIp': '192.168.1.230', 'mask': '255.255.255.0', 'gw': '192.168.1.1'}, 'mmfree': 45992, 'ot': 'ott', 'otu_stat': [442, 392, 2293, 13, 2226, 41], 'ott_stat': [117, 422, 528, 4761]}, 'id': 1}
chuangmi.ir.v2 v1.2.4_38 (<mac>) @ 192.168.1.230 - token: <chuangmi_key>
DEBUG:miio.vacuum_cli:Full response: {'ap': {'bssid': '<mac>', 'rssi': -14, 'ssid': 'mikalp'},
 'cfg_time': 0,
 'fw_ver': '1.2.4_38',
 'hw_ver': 'MC200',
 'life': 7662550,
 'mac': '<mac>',
 'mmfree': 45992,
 'model': 'chuangmi.ir.v2',
 'netif': {'gw': '192.168.1.1',
           'localIp': '192.168.1.230',
           'mask': '255.255.255.0'},
 'ot': 'ott',
 'ott_stat': [117, 422, 528, 4761],
 'otu_stat': [442, 392, 2293, 13, 2226, 41],
 'token': '<chuangmi_key>',
 'wifi_fw_ver': 'SD878x-14.76.36.p79-702.1.0-WM'}
DEBUG:miio.vacuum_cli:Writing {'seq': 1, 'manual_seq': 0} to /home/homeassistant/.cache/python-miio/python-mirobo.seq
(homeassistant) homeassistant@DietPiEv3r:~/.homeassistant$ python --version
Python 3.6.4rc1

appreciate your help ...
Thanks

@syssi
Copy link
Collaborator

syssi commented Feb 26, 2018

Your configuration is wrong. You tried to configure the remote controller as "switch" instead of a "remote" control:

# switch: <-- replace this by remote / move the configuration block
remote:
  - platform: xiaomi_miio
    name: "Kitchen remote"
    host: 192.168.1.230
    token: !secret chuangmi_key

@nkolev2
Copy link
Author

nkolev2 commented Feb 26, 2018

ah, why i didn't see that :), thanks a lot syssi , its fine now.

@nkolev2 nkolev2 closed this as completed Feb 26, 2018
@syssi
Copy link
Collaborator

syssi commented Feb 26, 2018

@nkolev2 Do you own a rooted android device and could you do me a favor?

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