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

Please add support for deerma.humidifier.jsq2w #389

Open
Deewde opened this issue Dec 1, 2024 · 15 comments
Open

Please add support for deerma.humidifier.jsq2w #389

Deewde opened this issue Dec 1, 2024 · 15 comments

Comments

@Deewde
Copy link

Deewde commented Dec 1, 2024

deerma.humidifier.jsq2w please

@Schnabulation
Copy link

+1 for me. Seems that it's a new revision of the Smart Humidifier 2.

Logger: homeassistant.components.xiaomi_miio
Quelle: components/xiaomi_miio/__init__.py:164
Integration: Xiaomi Miio (Dokumentation, Probleme)
Erstmals aufgetreten: 15:23:40 (3 Vorkommnisse)
Zuletzt protokolliert: 15:38:10

Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: deerma.humidifier.jsq2w

@i4mr000t
Copy link

i4mr000t commented Dec 3, 2024

You habe the wrong integration!

Install this one from HACS:
image

than set your Humidifier in configuration.yaml to get the right token.

follow here: #391

@kobatz82
Copy link

kobatz82 commented Dec 5, 2024

Hi, I have this humidifier also, I added all by the guide and from hacs but I only have mode and fan. I don't see temp or humidity so I can program him to turn off or on. Tnx for the hint and info.

@i4mr000t
Copy link

i4mr000t commented Dec 5, 2024

Hi please follow this guide: #381 (comment)

@kobatz82
Copy link

kobatz82 commented Dec 5, 2024

Sure, do I add all this in configuration yaml or other file? Thank you

@i4mr000t
Copy link

i4mr000t commented Dec 5, 2024

It depends on you if you want those template sensors.

If you have all your sensors in configuration.yaml add this:

sensor:
  - platform: template
    sensors:
      airpurifier_aqi:
        friendly_name: Air Purifier Air Quality Index
        value_template: '{{ states.fan.xiaomi_air_purifier.attributes.aqi }}'          <---- You need to change that (read INFO)
        icon_template: mdi:weather-windy

Keep going on with the list I provided as you like.

If you have separated your sensors like i did:

platform: template
sensors:
  airpurifier_temperature:
    friendly_name: Xiaomi Smart Humidifier 2 Temperature
    value_template: "{{ states.fan.xiaomi_smart_humidifier_2.attributes.temperature }}"
    unit_of_measurement: "°C"

Keep going on with the list I provided as you like.

Edit: You dont need those sensors if you dont want them. I, lets say, extracted these ones from the fan.xiamo_humidifier_entity. You allready habe these attributes:
image

@kobatz82
Copy link

kobatz82 commented Dec 7, 2024

It seems, I'm too stupid for this :( I have tried your instructions and no matter what I do I don't have simple sensor added for humidity. I only need one sensor for humidity so I can go forward creating automation. Spent hours and hours trying to add one sensor :( Can you please tell me what to put where to get this sensor for humidity appearing in home assistant? Thank you very much in advance and sorry to bother you this much.

my current config:
fan:

  • platform: xiaomi_miio_airpurifier
    name: Xiaomi Smart Humidifier 2
    host: 192.168.2.84
    token: my token
    model: deerma.humidifier.jsq2w

@i4mr000t
Copy link

i4mr000t commented Dec 7, 2024

How does your configuration.yaml look like? Especially the Sensors Part?

should look like this for example:

… sensor: !include_dir_list sensors/ …

or

sensor:
  - platform: template 
    sensors:
      your_template_sensor:
        name: blabla 

or

sensor: !include sensors.yaml

or similar

please post your entry for „Sensor“

@kobatz82
Copy link

kobatz82 commented Dec 7, 2024

For some reason I only have this in config yaml.
Tried adding your code in there with my entity and nothing happends.

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

configuration.yaml

fan:

  • platform: xiaomi_miio_airpurifier
    name: Xiaomi Smart Humidifier 2
    host: 192.168.2.84
    token: my token
    model: deerma.humidifier.jsq2w

@i4mr000t
Copy link

i4mr000t commented Dec 7, 2024

Okay, no Problem.

please add this to your configuration.yaml

sensor:
  - platform: template
    sensors:
      xiaomi_smart_humidifier_2_humidity:
        friendly_name: Xiaomi Smart Humidifier 2 Humidity
        value_template: '{{ states.fan.xiaomi_smart_humidifier_2.attributes.humidity }}'
        icon_template: mdi:water

Reload your configuration.yaml or restart homeassistant.

After that you should have an entity called „Xiaomi Smart Humidifier 2 Humidity“

If not check your configuration yaml under dev Tools and post it here.

Edit: be aware, if you have that sensor it’s not possible to control the target humidity of the humidifer. You need to do much more to control the target humidity. If you just want to Monitor the actual humidity your done with that.

BTW: Remove your Token in your preview post. No one needs to know that except you!

@kobatz82
Copy link

kobatz82 commented Dec 7, 2024

Ok. done and after reboot I got this error : Invalid config for 'sensor' from integration 'template' at configuration.yaml, line 28: 'icon' is an invalid option for 'template.sensor', check: sensors->xiaomi_smart_humidifier_2_humidity->icon
home-assistant_2024-12-07T21-47-41.897Z.log

ps. I would like only to monitor it's sensor so it can turn off when humidity lets say over 40% and turn on when drop under 35%. I have set it in mii android app but this app is hit and miss so I need to set it here.

Tnx again for helping

@i4mr000t
Copy link

i4mr000t commented Dec 7, 2024

Yes it was my fault. Check the Code again.

I replaced „icon“ with „icon_template“

@kobatz82
Copy link

kobatz82 commented Dec 7, 2024

Works bud, tnx a ton!
Now my wife will not kill me of too much humidity in the room :)
image

@Andrey-Ysk
Copy link

Andrey-Ysk commented Dec 19, 2024

You habe the wrong integration!

Install this one from HACS: image

than set your Humidifier in configuration.yaml to get the right token.

follow here: #391

Thanks this work for me!
More info:

 fan:
  - platform: xiaomi_miio_airpurifier
    name: Xiaomi Humidifier 2
    host: *humidifier_ip*
    token: *humidifier_token*
    model: deerma.humidifier.jsq2w

@maciekelga
Copy link

maciekelga commented Jan 14, 2025

Hi
I have a problem with modes for deerma.humidifier.jsq2w. There is very slow reaction when I like to turn off humidifier, somwtimes first I need to choose off from mkde and then press once again either mode off or off button.

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

6 participants