kiwi-cam/homebridge-broadlink-rm

Fan Speed Toggle

Opened this issue · 13 comments

Describe the solution you'd like
My fan has 3 speeds, and my remote only has one button that toggles to the next speed. Once it reaches max speed (3), it switches back to the slowest speed (1).

Some kind of speed toggle setting would be great

Describe alternatives you've considered
I tried setting it up with intervals so you can jump from speed 1 to 3, but this won't work as it needs relative intervals instead of absolutes. Not sure If it's possible for this reason?

ggroel commented

Great idea but I think that only works if the fan resets after switching off?
Mine remembers the speed setting so I don't think this will work?

ggroel commented

Let's try it and find out. Hope I'm wrong :-)

Ah no looking at your config it won't work for me. By the looks of it your power button has a different hex for and and off.
Mine toggles on/off with the same hex, so sending the on code multiple times won't work.

ggroel commented

Ah I get it. I tried it with my remote, but sadly mine fan does not turn on with the speed button. It needs to be turned on first, only then does it accept speed commands.

ggroel commented

Correct, they are different.
I only have a hex for power on/off (same) and a hex for speed up.

Without it resetting to 33% each time on startup or storing it's last known state, I'm not really sure if it can be done?

I think I've got it going now with setting it 2 speed steps (speed 1 and 3).

{
            "name": "Fan",
            "type": "fan",
            "host": "...",
            "hideRotationDirection": true,
            "alwaysResetToDefaults": false,
            "defaultFanSpeed": 100,
            "stepSize": 50,
            "data": {
                "on": "...", //power
                "off": "...", //power
                "swingToggle": "...",
                "fanSpeed50": [
                    {
                        "data": "..."  //speed
                    }
                ],
                "fanSpeed100": [
                    {
                        "data": "...", //speed
                                "sendCount": 2,
                                "interval": 1
                    }
                ]
            }
        }
ggroel commented

Haven't had a chance to try your latest config, but I think it won't work going from speed 2 back to speed 1?
This is why I just set it up as a 2 speed (1 and 3) fan which seems to work quite well now.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.