maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
803 stars 233 forks source link

Sonoff_Basic_PWM change icon #354

Closed kalindud closed 4 years ago

kalindud commented 4 years ago

Hello, I need to control a FAN using the sonoff PwM.... how Can I change the Icon from a light bulb to a fan????

thank you!

maximkulkin commented 4 years ago

You need to change LIGHTBULB service to FAN2 service, ON characteristic to ACTIVE (note that later takes values 0 and 1 instead of true and false for former characteristic) and BRIGHTNESS characteristic to ROTATION_SPEED (effectively converting accessory into a FAN accessory).