kiwi-cam / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
304 stars 95 forks source link

[FAN] Fan Speed Control Slider within Device Detail Panel Power Cycle #690

Open JasonGoldenDDT opened 7 months ago

JasonGoldenDDT commented 7 months ago

Describe the bug Floor fan has a 3 (low, medium, high) step fan speed cycle button. When using the speed slider within the detailed panel for the device, the fan will power off instead of cycling to the correct step/speed.

IMG_1689

Screenshot 2024-04-09 at 8 16 32 AM

To Reproduce Steps to reproduce the behavior:

  1. Go to 'fan's detail panel'
  2. Change the 'fan speed' using the slider.
  3. Fan powers off.

Expected behavior Fan cycles through steps until selected speed is acquired.

Screenshots

Screenshot 2024-04-09 at 8 16 32 AM

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context The slider on this screen does not cause the fan to power off.

Screenshot 2024-04-09 at 8 14 36 AM

Config

    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "hideScanFrequencyButton": true,
    "hideLearnButton": false,
    "hideWelcomeMessage": true,
    "trace": false,
    "debug": false,
    "accessories": [
{
            "name": "Tower Fan",
            "type": "fan",
            "host": "*MAC*",
            "alwaysResetToDefaults": true,
            "defaultSpeedStep": 1,
            "speedCycle": true,
            "stepSize": 1,
            "persistState": true,
            "resendHexAfterReload": true,
            "speedSteps": 3,
            "allowResend": true,
            "hideRotationDirection": true,
            "data": {
                "on": "2600500000012f97131311141213121312381138121312141138123712381138111412131237123712131214123712371213121312141138123712371213121312381237123712131200051400012a4a12000d05000000000000",
                "off": "260050000001259413121213121411141237123712131214113812371237123712141114123712371213121411381237121312131214123712371237121411141138123712371213120005160001284a12000d05000000000000",
                "swingToggle": "2600500000012594121312141213121312371238121313121238113812371336121412131237123811141213123712381237121312141138133612371313111412131238113812131300051400012a4a13000d05000000000000",
                "fanSpeed": "260058000001249413121213121312141138123712131213123712371237123712131214113811381213121312131237121411141213123712381237123712141138123712371213120005140001294a12000c3f0001294a12000d050000000000000000000000000000"
            }
        },