merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
395 stars 63 forks source link

deerma.humidifier.jsq not working #200

Closed yoonpooh closed 2 years ago

yoonpooh commented 2 years ago

Device "deerma.humidifier.jsq" is not working. If you apply it as a "deerma.humidifier.jsq1" model using the "homebridge-mi-humidifier" plugin, it works normally.

In "homebridge-miot", it does not work even with the model "deerma.humidifier.jsq1".

스크린샷 2022-02-04 13 14 05

[2/4/2022, 1:12:49 PM] [miot] [가습기] Initializing device!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Initializing device services
[2/4/2022, 1:12:50 PM] [miot] [가습기] Device services: [
  "humidifier",
  "environment",
  "indicator-light",
  "alarm"
]
[2/4/2022, 1:12:50 PM] [miot] [가습기] Initializing device properties
[2/4/2022, 1:12:50 PM] [miot] [가습기] Device properties: [
  "humidifier:on",
  "environment:relative-humidity",
  "environment:temperature",
  "indicator-light:on",
  "alarm:alarm"
]
[2/4/2022, 1:12:50 PM] [miot] [가습기] Initializing device actions
[2/4/2022, 1:12:50 PM] [miot] [가습기] Successfully created a Humidifier device! It is a Xiaomi Mi Smart Antibacterial Humidifier.
[2/4/2022, 1:12:50 PM] [miot] [가습기] Initializing accessory!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Accessory successfully initialized!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Registering 1 accessories!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Everything looks good! Initiating property polling!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Device found: deerma.humidifier.jsq
[2/4/2022, 1:12:50 PM] [miot] [가습기] Setting up miot device!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Did not specified. Got did: 456047359 from device!
[2/4/2022, 1:12:50 PM] [miot] [가습기] Device setup finished! Miot device ready!
[2/4/2022, 1:12:50 PM] [miot] [가습기] [Miot Device] Connected to device: deerma.humidifier.jsq
[2/4/2022, 1:12:50 PM] [miot] [가습기] Doing initial property fetch.
[2/4/2022, 1:12:50 PM] [miot] [가습기] Starting property polling.
merdok commented 2 years ago

It might be that the device requires a mi cloud connection... Please try to specify MiCloud connection details in the config and set the forceMiCloud property to true and try again.

yoonpooh commented 2 years ago

@merdok Mi cloud is not supported in my country. How do other plugins connect the device?

merdok commented 2 years ago

If your device is in the mi home app then it also is in the cloud in your account. If you have homebridge ui then I would recommend you going on the settings page there and you will find a "Discover button" there. You can use that, and it will show you on what server your device is located (usually default is china).

yoonpooh commented 2 years ago

I am from Korea. As you said, Taiwan came out. thank you.