lamperez / xiaomi-lightbar-nrf24 Goto Github PK
View Code? Open in Web Editor NEWControl a Xiaomi Computer Light Bar (MJGD01YL, no BLE) with a nRF24L01 transceiver module.
License: GNU General Public License v3.0
Control a Xiaomi Computer Light Bar (MJGD01YL, no BLE) with a nRF24L01 transceiver module.
License: GNU General Public License v3.0
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 #3 (comment) ) but I couldn't get a reliable reception.
Any ideas on how to improve packet capture from the remote ?
Hi,
first of all, wonderful project, thanks for taking the time and effort to look into this device.
I will try to set it up to test it out on my spare RPi device.
However, because the project is written specifically with the pyRF24 library, I probably won't be able to use it on my installation of Home Assistant, which is virtualized on a x86 device.
I was looking into using a serial converter like a CH341 to be able to interface with an NRF24 on a non-RPi device, however, I realised that probably the most convinient solution would be to use a device such as ESP32 with the ESPHome project.
Alternatively, maybe you could add MQTT to the current project, so one could have a spare RPi as "gateway"?
What are your thoughts on this?
Thanks!
Hi, first of all, amazing work with the project. I am running into some issues and I hope you will be able to help me with it. I am running this project on a
After about 3-4 hours of trying I was able to catch 2 packets with the correct crc with the provided script
================ SPI Configuration ================
CSN Pin = /dev/spidev0.0
CE Pin = Custom GPIO25
SPI Speedz = 10 Mhz
================ NRF Configuration ================
STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
RX_ADDR_P0-1 = 0x5555555555 0x533914dd1c
RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
TX_ADDR = 0x5555555555
RX_PW_P0-6 = 0x0c 0x0c 0x0c 0x0c 0x0c 0x0c
EN_AA = 0x3f
EN_RXADDR = 0x02
RF_CH = 0x44
RF_SETUP = 0x0b
CONFIG = 0x03
DYNPD/FEATURE = 0x00 0x00
Data Rate = 2 MBPS
Model = nRF24L01+
CRC Length = 8 bits
PA Power = PA_LOW
ARC = 0
Decoded packet, CRC ok
• id: 0xa2c231
• separator: 0xff
• counter: 0x95
• command: 0x5fe
• crc: 0xbe5
Decoded packet, CRC ok
• id: 0xa2c231
• separator: 0xff
• counter: 0x43
• command: 0x401
• crc: 0xf110
but I am unable to control the Lighbar by using the ID in the example given in the readme
When trying to add the Lightbar custom component as an integration it gets stuck on
Please wait, starting configuration wizard for Xiaomi Mi Computer Monitor Light Bar
for a while and then I get the error
Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
I think I need to add the Device ID to configuration.yaml
. If the custom component is not yet complete, I can try and help if you can point me in the right direction.
In developer tools I get this warning
Configuration warnings
Integration error: xiaomi_lightbar - Requirements for xiaomi_lightbar not found: ['xiaomi_lightbar_nrf24 @git+https://github.com/lamperez/xiaomi-lightbar-nrf24.git'].
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.