sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
947 stars 219 forks source link

Nodemcuv3 #434

Closed AlexKusnezov closed 5 years ago

AlexKusnezov commented 5 years ago

hey guys, I have the nodemcuv3 and NRF24L01+ . I flashed it with https://github.com/sidoh/esp8266_milight_hub/releases/download/1.9.0-rc2/esp8266_milight_hub_nodemcuv2-1.9.0-rc2.bin on windows with estool. Everything went well and I can access the webinterface, but I just can't get a bulb to pair with it. The bulb I'm trying to pair is fut013. What am I doing wrong? Is there something I have to adjust in the precompiled bin or within the estool to get it flashed properly?

JMacIV commented 5 years ago

One thing that tripped me up with these bulbs is that they will only pair if you physically power cycle the bulb on, then quickly hit the pair button on web interface. The bulbs stop looking for a pairing request after about 5 seconds of being on. It’s simple, but give that a try first.

Also double check that you have a valid device_id (typically hex, like 0x1B0B) inputted and a group selected before pressing pair.

If that does not work, then you could be looking at an issue with the NRF board - connection or hardware. Do you have existing bulbs? If so, you can turn on the sniffing feature and send commands via the Mi-Light app to the existing iBox controller. Your esp should be able to detect the traffic, which will tell you if the NRF board is working.

AlexKusnezov commented 5 years ago

@JMacIV thanks I'll try that. Which parameters should I look for, when sniffing, in order to tell if NRF is working or not? Btw there's an LED on the NRF, which glows red constantly.

JMacIV commented 5 years ago

When sniffing is enabled on the ESP, you should see commands sent to the bulbs show up there. Granted, this requires you to have existing bulbs configured via a Mi-Light controller like the iBox 1/2 and then send the commands that way.

That is good news that the NRF is getting power. The one I used does not have an LED, but there is a lot of variation in these chips.

Edit - Pic added. These are commands that the ESP hub picked up that were sent from my existing ibox to the bulbs. You will see that the id is "1BOB", so to emulate my existing hub, I would enter device_id of 1x1BOB. The fact that the ESP can detect these commands means the NRF is picking up signals. If you have a milight remote, it should also be able to detect those commands I believe. If you have existing bulbs, they do not need to be paired specifically to the ESP, rather you can just emulate the existing hub based off the id like I mentioned above.

image

AlexKusnezov commented 5 years ago

@JMacIV thank you for explaining. Currently I have only the fut013 bulb. I was hoping that I can just pair it with the esp in order to avoid buying original hubs and remotes at all.

JMacIV commented 5 years ago

@JMacIV thank you for explaining. Currently I have only the fut013 bulb. I was hoping that I can just pair it with the esp in order to avoid buying original hubs and remotes at all.

Ahh gotcha. Were you able to try and set a device_id, pick a group and then try to pair by powering off bulb, back on, and pressing pair within 5 seconds?

Once you have done that, we can try other stuff. Here is the full pairing guide. https://github.com/sidoh/esp8266_milight_hub/wiki/Pairing-new-bulbs

sidoh commented 5 years ago

Thanks for your help, @JMacIV!

@AlexKusnezov, if the pairing procedure JMacIV linked isn't working, check out the troubleshooting article:

https://github.com/sidoh/esp8266_milight_hub/wiki/Troubleshooting

AlexKusnezov commented 5 years ago

@sidoh @JMacIV I've figured it out. I bought the NRF24L01 without the wireless module, this was the problem: https://www.amazon.de/NRF24L01-drahtloses-Breakout-Adapter-Intellective/dp/B06Y62C4H7/ref=sr_1_16?keywords=NRF24L01%2B&qid=1555412924&s=gateway&sr=8-16

Sorry for being dumb.

JMacIV commented 5 years ago

No worries! Glad you got it figured out.

That almost happened to me too. US Amazon has a very similar listing, I almost bought what you did too! Had the wrong one in my cart and everything!

@sidoh - Good to close.

sidoh commented 5 years ago

👍 thanks for your help, @JMacIV! Much appreciated.

Glad you got it working, @AlexKusnezov.