lamperez / xiaomi-lightbar-nrf24

Control a Xiaomi Computer Light Bar (MJGD01YL, no BLE) with a nRF24L01 transceiver module.
GNU General Public License v3.0
46 stars 5 forks source link

Improve remote packet capture #7

Open emouty opened 4 months ago

emouty commented 4 months ago

Hello, first thanks for the work done !

I liked the mqtt subscriber for home assistant but I wanted to still be able to use the physical remote without having a desynchronization between the real state of the lamp and the one on home assistant (mostly due to the fact that its the same command to turn on and off the lamp).

To do so I tried with the adapter board to play with power level or channel (like on https://github.com/lamperez/xiaomi-lightbar-nrf24/issues/3#issuecomment-1956521612 ) but I couldn't get a reliable reception.

Any ideas on how to improve packet capture from the remote ?

szymucha94 commented 3 months ago

Any smart plug will tell you the power consumption of led bar. With that you can automate setting the state on/off. If you get super accurate readings you could even guess the brightness level and adjust it if sudden drop/spike is unexpected.