tuya-homebridge
tuya-homebridge copied to clipboard
Update fanv2_accessory.js
My ceiling fan has the var named 'switch_led', but I left also the 'light' value for other people. It works, I forked this in my repo and with this change and adding case 'fsd' in the index.js, it worked.
@onichan88 added your fix to the fork of this project that I'm thinking of starting maintaining: https://github.com/dipakparmar/tuya-homebridge/commit/039b0af3a17251f547f6ab735e15bcf4e2cbf210
I will publish the new version to npm in a day or two after merging other PRS!
Thanks for your contribution! 😄
Consider using an array for easier reading