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

deerma.humidifier.jsq2w water shortage fault #1021

Open
agav85 opened this issue Feb 9, 2023 · 17 comments
Open

deerma.humidifier.jsq2w water shortage fault #1021

agav85 opened this issue Feb 9, 2023 · 17 comments

Comments

@agav85
Copy link

agav85 commented Feb 9, 2023

Device model / 设备型号

deerma.humidifier.jsq2w

Component version / 插件版本

No response

HA core version / HA版本

No response

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

I have integrated deerma.humidifier.jsq2w using the device type jsq5 spec (#930) to provide proper handling of modes:

xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      exclude_miot_services: null
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq5:1

But custom sensors are not available (Xiaomi Miot custom water-shortage-fault, Xiaomi Miot custom the-tank-filed):
Settings – Home Assistant 2023-02-09 09-37-30

Entity attributes / 实体属性

config

Home Assistant Logs / 系统日志

No response

@al-one
Copy link
Owner

al-one commented Feb 18, 2023

Try this configuration:

# configuration.yaml
xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      exclude_miot_services: null
      binary_sensor_properties: water_shortage_fault,the_tank_filed
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq5:1

@al-one
Copy link
Owner

al-one commented Mar 1, 2023

Does it work ?

@theodorx7
Copy link

theodorx7 commented Mar 7, 2023

Does it work ?

Yes! The configuration works perfectly with the humidifier model derma.humidifier.jsqm in local mode
Surely this configuration will also work for the jsq2w model

device_customizes:
  deerma.humidifier.jsqm:
    exclude_miot_services: null
    binary_sensor_properties: water_shortage_fault
    miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsqm:1

Screenshot_1
Screenshot_2

@agav85
Copy link
Author

agav85 commented Mar 7, 2023

Sorry for the delay with the response.
I see them now available and set to Off value.
But I didn't catch them being changed to On.

Am I right that the meaning of them as follows:

  • water-shortage is up when we are out of water and humidifier stops.
  • the-tank-filed - ? Don't know the meaning.

@theodorx7
Copy link

theodorx7 commented Mar 7, 2023

Am I right that the meaning of them as follows:

  • water-shortage is up when we are out of water and humidifier stops.
  • the-tank-filed - ? Don't know the meaning.

water-shortage:
tank full - off
tank empty - on (the humidifier turns off automatically)

the-tank-filed:
the tank is installed on the device - off
the tank is removed from the device - on

@agav85
Copy link
Author

agav85 commented Mar 7, 2023

Thank you. I will report back. Not sure if the status changes when the event takes place.

@v1k70rk4
Copy link
Contributor

v1k70rk4 commented Mar 30, 2023

Hello, the solution above is almost good, but it doesn't work for the "Fan Level" and it swaps the water shortage and tank removal errors, as these are reversed for the two devices.

The following solution will work:

xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      exclude_miot_services: null
      binary_sensor_properties: the_tank_filed,water_shortage_fault
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq2w:1

@kajarit
Copy link

kajarit commented Dec 4, 2023

Does it work ?

It works for me with this:
Notes:

  • fan level 1, 2, 3 and Humidity modes are ok
  • but these two are swapped: water_shortage_fault <-> the_tank_filed
    if I remove the tank, water_shortage_fault turns on
xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq5:1
      miot_local: true
      chunk_properties: 10
      exclude_miot_services: null
      sensor_properties: target_humidity,fault
      switch_properties: alarm
      binary_sensor_properties: water_shortage_fault,the_tank_filed

@kajarit
Copy link

kajarit commented Dec 4, 2023

Hello, the solution above is almost good, but it doesn't work for the "Fan Level" and it swaps the water shortage and tank removal errors, as these are reversed for the two devices.

The following solution will work:

xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      exclude_miot_services: null
      binary_sensor_properties: the_tank_filed,water_shortage_fault
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq2w:1

With this jsq2w miot type: miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq2w:1

  • modes are not correct

EDIT: these are available but the integration recreates these two with a postfix eg:_2

  • water_shortage_fault is unavailable
  • the_tank_filed is unavailable

@kajarit
Copy link

kajarit commented Dec 4, 2023

Does it work ?

It works for me with this:
Notes:

  • but these two are swapped: water_shortage_fault <-> the_tank_filed
    if I remove the tank, water_shortage_fault turns on

Apart from swapped, actually the the_tank_filed sensor won't change to true when the device runs out of water (remember that this sensor should reflect water tank detached, but as it's swapped water_shortage_fault turns on when I remove the tank)

@v1k70rk4
Copy link
Contributor

v1k70rk4 commented Dec 4, 2023

Ezzel a jsq2w miot típussal: miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq2w:1

  • A módok nem megfelelőek
  • water_shortage_fault nem érhető el
  • the_tank_filed nem érhető el

Hi,

I have this humidifier running in both of my apartments and it works perfectly with this setting. I recommend you remove the dehumidifier from Home Assistant and copy the following code into the configuration.yaml file:

xiaomi_miot:
  device_customizes:
    deerma.humidifier.jsq2w:
      exclude_miot_services: none
      binary_sensor_properties: the_tank_filed,water_shortage_fault
      miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq2w:1

Then restart Home Assistant and add it to HA with the IP address and token. Wait for 30-40 seconds and then it should appear correctly.

image

@kajarit
Copy link

kajarit commented Dec 5, 2023

My firmware shows: 2.2.2
I've also waited for about 40 secs, then all supported attributes were loaded, but not those two for me.

EDIT: those two sensors (created by the previous settings before HA restart/reload) were Unavailable, but the integration created two new entities with a postifx (_2) which were available, I just didn't notice first (all other entities were reused normally)

Also note that mode is not a switch when you use jsq5 it is a list with 5 items (off, level1, level2, level3, humidity) which is correct, but in your screenshot it's a switch, which is not so good.
You could use the reload the devices/entities YAML configuration without restating HA by clicking on Xiaomi miot auto item under the Development Tools menu.

@v1k70rk4
Copy link
Contributor

v1k70rk4 commented Dec 5, 2023

but in your screenshot it's a switch, which is not so good. You could use the reload the devices/entities YAML configuration without restating HA by clicking on Xiaomi miot auto item under the Development Tools menu.

It's indeed a switch; it turns the machine on and off, but if you click on it, there are the Presets.
image

deerma.humidifier.jsq2w

@v1k70rk4
Copy link
Contributor

v1k70rk4 commented Dec 5, 2023

You could use the reload the devices/entities YAML configuration without restating HA by clicking on Xiaomi miot auto item under the Development Tools menu.

Well, with this configuration.yaml, it doesn't reload :) Restarting doesn't take long at all. Especially when something doesn't go as it should.

@kajarit
Copy link

kajarit commented Dec 11, 2023

but in your screenshot it's a switch, which is not so good. You could use the reload the devices/entities YAML configuration without restating HA by clicking on Xiaomi miot auto item under the Development Tools menu.

It's indeed a switch; it turns the machine on and off, but if you click on it, there are the Presets.

It seems a bit complicated compared to the jsq5 as it offers all these functionalities but within one mode selector, no another entity is needed like the fan here 🤔
Additionally Level4 is not an actual fan level but an Automatic mode which selects from 1-3 based on actual humidity.

@Proche72
Copy link

I have added the water shortage sensor to my jsq2w but it is still off. Is it working for anyone?

@al-one
Copy link
Owner

al-one commented Dec 2, 2024

Is it all right now?

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

No branches or pull requests

6 participants