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

Add support for led control and buzzer on dmaker.fan.1c #125

Open
LuisDiazUgena opened this issue Jul 3, 2023 · 5 comments
Open

Add support for led control and buzzer on dmaker.fan.1c #125

LuisDiazUgena opened this issue Jul 3, 2023 · 5 comments

Comments

@LuisDiazUgena
Copy link

Hi,

as requested on #117 I'm creating a new issue to add led control on 1C. Atributes list is:

preset_modes: off, Level 1, Level 2, Level 3
oscillating: true
percentage: 33
percentage_step: 33.333333333333336
preset_mode: null
model: dmaker.fan.1c
angle: null
raw_speed: 1
delay_off_countdown: 0
ac_power: null
oscillate: true
direct_speed: null
natural_speed: null
child_lock: false
buzzer: false
led_brightness: null
use_time: null
temperature: null
humidity: null
battery: null
battery_charge: null
button_pressed: null
led: true battery_state:
null mode: normal
friendly_name: Xiaomi Fan
supported_features: 11

So, led control is available and buzzer are available but not populated. As this is a setting that is not supposed to be changed frecuently, it might be better to have it included inside the card?

image

@insajd
Copy link
Collaborator

insajd commented Aug 13, 2023

@LuisDiazUgena inside of the card is not actually cards UI - it is HA interface at that point. So if we're to add led control - it can be only on card itself. What is the service called, that changes led mode ? Try toggling it in here: http://ha/developer-tools/service

@LuisDiazUgena
Copy link
Author

Hi,

Sorry for the late response. The service is:

xiaomi_miio_fan: fan_set_led_brightness

image

@Barbedx
Copy link

Barbedx commented Oct 2, 2023

Hi, @LuisDiazUgena. Have you tried to change the LED brightness from Home Assistant's developer tools? Unfortunately, for my 1c, this didn't work. I'm getting an "Unknown error" when sending the request.

@insajd
Copy link
Collaborator

insajd commented Oct 2, 2023

@LuisDiazUgena please confirm that service works. I've missed your reply, apologies for that.

@Barbedx
Copy link

Barbedx commented Oct 2, 2023

I'm pretty sure this didn't work.
There are some issue about this on integration GitHub page : syssi/xiaomi_fan#189
Also, I have written some quick fix for integration, I'll use it in my fork for the moment.
syssi/xiaomi_fan#236

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

3 participants