Danielhiversen / flux_led

A utility for controlling Flux WiFi Smart LED Light Bulbs
GNU Lesser General Public License v3.0
156 stars 144 forks source link

Allow controlling 2.4G remotes #259

Closed bdraco closed 2 years ago

bdraco commented 2 years ago

Remote control settings seem possible on these devices (AK001-ZJ2148 and AK001-ZJ2149 verified)

    LEDENETHardware(
        model="AK001-ZJ2148",  # seen on older Addressable v3
        chip=LEDENETChip.BL602,
        rf_remote=True,  # verified
    ),
    LEDENETHardware(
        model="AK001-ZJ2149",  # seen on newer Addressable v3
        chip=LEDENETChip.BL602,
        rf_remote=True,  # verified
    ),

Query b0 b1 b2 b3 00 01 01 45 00 04 2b 2c 2d 84 19 <-- request: 2.4G remote control settings

Query Responses b0 b1 b2 b3 00 01 01 5e 00 0e 2b 01 00 00 00 00 29 00 00 00 00 00 00 55 de <-- response: don't allow remotes b0 b1 b2 b3 00 01 01 45 00 0e 2b 02 00 00 00 00 29 00 00 00 00 00 00 56 c7 <-- response: open to all remotes b0 b1 b2 b3 00 01 01 5c 00 0e 2b 03 00 00 00 00 29 00 00 00 00 00 00 57 e0 <-- response: only allow specific remotes b0 b1 b2 b3 00 01 01 e3 00 0e 2b 03 00 02 00 00 00 00 00 00 00 00 00 30 19 <-- '2 remotes, The controller can only be controlled after pairing with the device`

Commands b0 b1 b2 b3 00 01 01 4e 00 10 2a 01 ff ff ff ff ff 00 00 00 00 00 00 00 0f 35 90 <-- set don't allow remotes b0 b1 b2 b3 00 01 01 57 00 10 2a 02 ff ff ff ff ff 00 00 00 00 00 00 00 0f 36 9b <-- set open to all remotes b0 b1 b2 b3 00 01 01 59 00 10 2a 03 ff ff ff ff ff 00 00 00 00 00 00 00 0f 37 9f <-- only allow specific remotes b0 b1 b2 b3 00 01 01 f3 00 10 2a ff ff 01 ff ff ff 00 00 00 00 00 00 00 f0 16 f7 <-- clear pairings