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: deerma.humidifier.mjjsq #58

Closed
TheLastProject opened this issue May 9, 2020 · 6 comments
Closed

Unsupported device found: deerma.humidifier.mjjsq #58

TheLastProject opened this issue May 9, 2020 · 6 comments

Comments

@TheLastProject
Copy link

TheLastProject commented May 9, 2020

Home Assistant commit 4d314ba4df, at time of writing the most recent commit of the master branch (home-assistant/core@4d314ba). I decided to run Home Assistant locally in a dev env on my Linux box to be able to debug the device not showing up in Home Assistant on my NAS to be sure it's not a token-related issue.

Feels weird to create this issue though because issue #40 and #43 exist which implies it should be supported?

Anyway, this is the error I got.

Logs:

2020-05-09 17:10:39 INFO (MainThread) [homeassistant.components.xiaomi_miio.fan] deerma.humidifier.mjjsq 2.0.4 esp8266 detected
2020-05-09 17:10:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio.fan] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpuri
fier/issues and provide the following data: deerma.humidifier.mjjsq
2020-05-09 17:10:39 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.2 seconds.

Config:

fan:                                                                                                                              
    - platform: xiaomi_miio                                                                                                         
      host: 192.168.4.1                                                                                                             
      token: 3e249c038b4b8049bf3f810ff5560b0e                                                                                       

miiocli output:

$ miiocli device --ip 192.168.4.1 --token 3e249c038b4b8049bf3f810ff5560b0e info
Model: deerma.humidifier.mjjsq
Hardware version: esp8266
Firmware version: 2.0.4
Network: {'localIp': '192.168.4.1', 'mask': '255.255.255.0', 'gw': '192.168.4.1'}
AP: {'ssid': '', 'bssid': '00:00:00:00:00:00', 'rssi': 0, 'primary': 0}

Any way I can help debug this? I would love to get this working and thank you for all your work on this integration :)

@syssi
Copy link
Owner

syssi commented May 9, 2020

This custom component does support the device. The device isn't supported officially / be the core right now. You could compare these two files to get a better understanding what's supported:

https://github.com/syssi/xiaomi_airpurifier/blob/develop/custom_components/xiaomi_miio_airpurifier/fan.py
https://github.com/home-assistant/core/blob/dev/homeassistant/components/xiaomi_miio/fan.py

@TheLastProject
Copy link
Author

I see, thank you so much for the explanation! Sadly I'm having trouble getting the token. The old app version Home Assistant seems to recommend doesn't seem to be able to find the device.

@Frix-x @forhuan @xia0linz1 @tehnoinstyle Could any of you tell me what app version on what device you used to get the token for deerma.humidifier.mjjsq? Home Assistant's documentation recommends 5.4.49 but that version doesn't recognize the humidifier.

Once I do have the token I'll communicate back if it works properly and if it does so I'll close the issue. I do wonder though, why are the fan codes so different? Home Assistant seems to support a few devices that aren't supported here and the other way around?

@forhuan
Copy link

forhuan commented May 10, 2020

I capture the https traffic to get the token.

@Frix-x
Copy link

Frix-x commented May 10, 2020

I've used the "log" method:

  1. Use the last MiHome app to configure and link the device to your account
  2. Downgrade to MiHome v5.4.54 (very important, it's the only version containing the debug log enabled)
  3. Start the app, connect to your account and wait for the app to download and initialize your plugins (and so you humidifier). Then you can close the app.
  4. Open a file explorer, go to '/sdcard/SmartHome/logs/Plug_Devicemanager/' and open the file 'current-date.txt'
  5. Find the token in the log. It should be in the Json format with other info from every devices linked to your account

This is by far the easiest method from my point of view !

@tehnoinstyle
Copy link

Hi.

I use the modified Mi Home application from here: https://www.kapiba.ru/2017/11/mi-home.html

Last Version 5.6.82

In it you can see the token, and other information. (in the app menu)

@TheLastProject
Copy link
Author

I went for @Frix-x's solution. I wasn't aware you could do the setup on a newer Mi Home version and then downgrade to get the token. That's a huge headache save. Thanks all of you for your help!

Got it working now, closing this issue <3

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

5 participants