Questions about the supported_features and preset_mode fields for FA devices and how to use midea_ac_lan.send_command to query device information #744
Unanswered
jardelhnascimento
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a Midea Bladeless Tower Fan which has smart features via the SmartHome app. I have successfully connected the device to Home Assistant via this integration but there seems to be some capabilities unsupported by the integration and also some presets ignored by the device.
I have read Fan and Debug pages and also searched through issues and discussions pages in order to get answers to these questions, but was unable to find them, so I'm posting them here hoping someone with more knowledge about this project could help me.
preset_modes:But only 4 are supported by the device: Normal, Sleep, Smart (shown as SMARTAIR on the SmartHome app), and Ion Wind Mode. The other presets are ignored by the device when set through HA. The Ion Wind Mode is not on the list and seemingly cannot be set via HA. Is there a way to alter this list to remove the presets unused by the device and add a preset (or use the customize preset) to set the mode to Ion Wind Mode?
This device has 2 sensors not available on HA via this integration: a temperature sensor and a filter usage/wear percentage. There's also a switch for turning the device screen on and off. All available through SmartHome. On HA Dev tools>Actions I can send a command to the device via the
midea_ac_lan.send_command, with the parametercmd_typeset to 3 for queries (from the example). But when trying this command and looking at the logs I get an error saying that thecmd_bodymust be a hex string, which I was unable to find how to construct in order to try to query the sensor information from the device.Also from the fan entity on HA developer tools I get the JSON attribute
supported_features: 59. From what I could see, this attribute is used in /custom_components/midea_ac_lan/fan.py to filter different fan models. But I was unable to match this field with a list of device features (e.g.select.{DEVICEID}_oscillation_modefor fans or even something likeselect.{DEVICEID}_screen_displayfrom FC.md)I tried testing if it was possible to control the device screen via dev tools>action
{value} being substituted for true, false, and other values such as "Bright","Dim" and "Off" from FC.md) but I only got the error
Appliance [{DEVICEID}] has no attribute screen_display or value is invalid.How could I try to get the attributes supported by the device and try to set them in order to properly support this device?
Beta Was this translation helpful? Give feedback.
All reactions