Giter VIP home page Giter VIP logo

xiaomi-lightbar-nrf24's People

Contributors

ersonp avatar lamperez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

xiaomi-lightbar-nrf24's Issues

ESPHome/ESP32 version

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!

Unable to control Lightbar with the correct ID

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

  • Raspberry Pi Zero 2 w
  • running Python 3.9.2
  • with a nRF24L01(+) module
  • and I have a Xiaomi My Computer Monitor Light Bar, model MJGJD01YL (without BLE or app).

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

Custom component not working

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'].

Improve remote packet capture

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.