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

Missing feature on deerma.humidifier.jsq3 #242

Closed
chiksum opened this issue Nov 13, 2021 · 6 comments
Closed

Missing feature on deerma.humidifier.jsq3 #242

chiksum opened this issue Nov 13, 2021 · 6 comments

Comments

@chiksum
Copy link

chiksum commented Nov 13, 2021

Hello,

I own a Xiaomi humidifier and connected it to home assistant via xiaomi miot auto successfully.
However, the alarm setting (beep sound) is missing. I see there is an alarm attribute on home.miot-spec.com said it can be read/write, but how can I?

Thanks.

@al-one
Copy link
Owner

al-one commented Nov 13, 2021

Show me the entity state attributes.

@chiksum
Copy link
Author

chiksum commented Nov 13, 2021

min_humidity: 40
max_humidity: 80
available_modes:
  - 'Off'
  - Level1
  - Level2
  - Level3
  - Humidity
humidity: 50
mode: Level1
model: deerma.humidifier.jsq3
lan_ip: 192.168.1.180
mac_address: 58:B6:23:1C:E2:FE
firmware_version: 2.0.3
hardware_version: RTL8720C
entity_class: MiotHumidifierEntity
miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq3:1
humidifier.on: true
humidifier.fault: 0
humidifier.fan_level: 1
humidifier.target_humidity: 50
humidifier.target_temperature.error: '7'
custom.water_shortage_fault.error: '-4004 Other internal errors'
custom.the_tank_filed: false
indicator_light.on: true
alarm: false
environment.relative_humidity: 61
environment.temperature: 26
state_updater: lan
sub_entities:
  - environment-3.relative_humidity-1
  - environment-3.temperature-7
  - indicator_light-6
friendly_name: Xiaomi Air Humidifier Humidifier
supported_features: 1
device_class: humidifier

@al-one
Copy link
Owner

al-one commented Nov 13, 2021

You can add custom attribute:

# customize.yaml
humidifier.deerma_jsq3_entity_id:
  switch_properties: alarm

@chiksum
Copy link
Author

chiksum commented Nov 13, 2021

It's is working now
Thanks!

@chiksum chiksum closed this as completed Nov 13, 2021
@dmatora
Copy link

dmatora commented Dec 8, 2021

Mine is deerma.humidifier.jsq
The state is

min_humidity: null
max_humidity: null
model: deerma.humidifier.jsq
lan_ip: 192.168.1.206
mac_address: 44:23:7C:BD:A5:89
firmware_version: 2.0.7
hardware_version: ''
entity_class: MiotHumidifierEntity
miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:deerma-jsq:1
humidifier.on: true
alarm: false
indicator_light.on: true
environment.relative_humidity: 86
environment.temperature: 23
state_updater: cloud
sub_entities:
  - environment-3.relative_humidity-1
  - environment-3.temperature-2
  - indicator_light-4
friendly_name: Humidifier Мила Humidifier
supported_features: 0
device_class: humidifier

is there a way to add water presence indicator?

@al-one
Copy link
Owner

al-one commented Dec 9, 2021

@dmatora There are no related properties in the miot-spec of the device.

Maybe you can refer to this way:

  1. Get miio props via MiHome mod by @vevsvevs:

    1. Down apk from СКАЧАТЬ ВЕРСИЮ 6.x.x and install
    2. Start Mihome APP > Profile > Experimental features
    3. Check on Write custom log files and Enable app's debug mode
    4. Find the miio props from vevs/logs/miio/device-id.txt after restart app and operate the device
  2. Generate entity attributes via custom attributes miio_properties or sensor_commands:

# customize.yaml
humidifier.deerma_jsq_entity_id:
  miio_properties: prop1,prop2 # use get_prop
  sensor_commands:
    get_prop:
      params:
        - prop1
        - prop2
      values: # to entity attributes
        - miio_prop1
        - miio_prop2
  1. And you can control the device via the service xiaomi_miot.send_command:
service: xiaomi_miot.send_command
data:
  entity_id: humidifier.deerma_jsq_entity_id
  method: set_prop1
  params:
    - value

This issue was closed.
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

3 participants