{"repo":"lamperez/xiaomi-lightbar-nrf24","free":true,"listed":false,"github":"https://github.com/lamperez/xiaomi-lightbar-nrf24","clone":"git clone https://github.com/lamperez/xiaomi-lightbar-nrf24.git","description":"Control a Xiaomi Computer Light Bar (MJGD01YL, no BLE) with a nRF24L01 transceiver module.","language":"Python","stars":155,"topics":["lightbar","nrf24l01","python","python3","raspberry-pi","xiaomi","home-assistant","home-assistant-custom","hackrf-one","radio"],"license":"GPL-3.0","category":"analytics","readme_excerpt":"Control a Xiaomi My Computer Monitor Light Bar MJGJD01YL, using a cheap 2.4 GHz radio transceiver module (nRF24L01 or nRF24L01+). [!IMPORTANT] There are two variants of the light bar, both of them controlled by 2.4 GHz radio signals (see the label on the bar for the device number). - Device number MJGJD01YL. It uses a TLSR8368 radio receiver and a proprietary radio format. This is the one that can be used with this library. - Device number MJGJD02YL. It uses a ESP32 and BLE (and even wifi, during the pairing process). See here or here for many details on how to use it with Home Assistant. This library is inspired and based on this thread from the Home Assistant community forum. My objective is to control the light bar from a Raspberry Pi where Home Assistant is already running in a Docker container. Requirements - Xiaomi My Computer Monitor Light Bar, model MJGJD01YL (without BLE or app) - Raspberry Pi, or any other device running Linux with GPIOs and a SPI controller, and Python 3. - nRF24L01(+) module. Installation Hardware setup Connect the RPi to the nRF24L01 as shown here. In this document it will be assumed that the SPI0 bus is used, and therefore csn pin=0 . The chip enable will be connected to GPIO25 ( ce pin=25 ). See here for the gory details. Dependencies - pyrf24 pyRF24 python library - crc CRC python library Notice that pyrf24 may need to build from source on some systems. In such case, you will need cmake and python headers (python3-dev) installed. - Debian base","default_branch":null,"files":null,"tree":[],"storefront":"/r/lamperez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lamperez/xiaomi-lightbar-nrf24/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}