Git Product home page Git Product logo

homekit-ws2812b-controller's Introduction

ESP8266 based  Homekit controller for WS2812B lightstrips🌈


Instagram URL FaceBook URL YouTube URL

GitHub All Releases GitHub tag (latest by date) Donate

For usage and more information please read the Wiki page!

Also available for Normal RGB(W) LED strip which you can find here! 🤓

Features:

  • Change Color / Brightness / Color Temperature
  • HomeKit Adaptive Lighting
  • WS2812FX Light Effects (beta!!!)
  • Setting up WS2812B LED count (on first boot from 1 to 500)
  • Power Behaviour characteristic (Default Color / Last Used on startup via Eve app)
  • Transition characteristic (Quick / Default / Moderate / Calm via Eve app)
  • Child Lock (Enable/Disable button press via Eve app)
  • Downloadable User Manual (via Eve app)
  • Power / Reset button
  • OTA firmware update (not implemented yet)

Demo:




This project uses the Apple HomeKit accessory server library ESP-HomeKit from @MaximKulkin for ESP-OPEN-RTOS.

Although already forbidden by the sources and subsequent licensing, it is not allowed to use or distribute this software for a commercial purpose.

HomeKit Accessory Protocol (HAP) is Apple’s proprietary protocol that enables third-party accessories in the home (e.g., lights, thermostats and door locks) and Apple products to communicate with each other. HAP supports two transports, IP and Bluetooth LE. The information provided in the HomeKit Accessory Protocol Specification (Non-Commercial Version) describes how to implement HAP in an accessory that you create for non-commercial use and that will not be distributed or sold.
The HomeKit Accessory Protocol Specification (Non-Commercial Version) can be downloaded from the HomeKit Apple Developer page.
Copyright © 2020 Apple Inc. All rights reserved.

homekit-ws2812b-controller's People

Contributors

homekidd avatar

Stargazers

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

Watchers

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

homekit-ws2812b-controller's Issues

Question: Add Reboot function

Hi,
although you already released a new version to Git but I have a question:
Is it possible to add a reboot functionality to the button, like:
pressing 3 seconds and then reboot

Would that be possible?
The reason is just for, let's say investigation purpose and sometimes the issue with no response.

Thanks.

WS2813 pinout?

The wiki only has info on WS2812 which only has 3 pins and I dont see anywhere for the ws2813 pins

PCB Designs

Hey, This is more than of a question than an issue, I want to ask what software did you use to design your PCB, I have downloaded the design for pcb v.2 but I have no idea what program to install to use it.

No Library .zip in the Download folder.

Hi, if i try add you Prog. to the Arduino IDE i receive an error message that there is no valid library.
Could you please update this, cause i really want to try out your awesome scretch.

Thanks in advance. - Max

WS2812B Effects

effects 0 - Static - (No flashing. Simply old static light) not working, the strip continues to make effects

mdns_recv: pbuf too small

Hey
I just tried to setup the code and add it to HomeKit.
In homekit it says the device couldn't be found... so i looked up in the serial monitor and it keeps saying mdns_recv: pbuf too small
even the wifi is connected and the service is running.
Can someone please help me with that?
thanks in advance!

image

cant upload

hey,

i want the bin files uploading to my wemos (esp8266). i used nodeflasherMCU. but it won's work. can someone explain me how to get the bin files on my board?

Turn on by default

Hi,

thanks for sharing the amazing stuff!!!

I have only 1 minor issue with the accessory. I'm using one of the led strips in the bower which is not always connected to the electricity and sometimes I switch it on in night. Is is possible to add the additional power state to turn leds on by default when power on the controller? It would be great to have that option.

Ap problems

When I acces the Ap first time, it loads a blank site, I can’t see the networks

I have reset and re flashes the chip. Any ideas?

static effects

Hey,
I would like to set static effects.
For example, a color gradient from one color to the other across all LEDs. (white to red, in all brightness levels)
or rainbow colors that don't move ...
is that possible somehow?

best regards
MajorTom1301

ESP8266EX Module not work

Hello,

I recently succeeded in flashing the official ESP8266 12-F "Espressif" modules without problem with the official software of Espressif.

Today I tried to flash non-official ESP8266EX modules several times (I failed to identify the logo) but after flashing, no "HomeKid-xxx" network appears.

I tried the "QIO" and "DIO" mode, and also 4Mb or 32Mb but nothing helps, it doesn't work.

To make sure that the modules were not bricked, I tried with the Arduino software to upload a test sketch and all the modules work perfectly, it's very strange.

Here are the results of the modules (in Arduino):

  • Chip: ESP8266EX
  • Crystal = 26MHz
  • Flash size detected = 4Mb

Could you help me or tell me if these modules are compatible please?

Device after some time not reachable anymore

Hi,
after some time the devices are not reachable anymore in Homekit. I have now 4 of these in my Homekit and after a while they are gone. Not every but here and there one of these is not responding so you cannot use them. A restart by powering off and on helps and they are back.
It's also strange that sometime they are not reachable via Wifi anymore although the wifi repeater is really next to them (10cm). But sometimes they are still reachable via Wifi but not in Homekit.
What can I do to not do the restart by powering off these devices?
What is you experience with this behavior, do you have it as well?

[REQUEST] BOM-File for V3 PCB

Hello HomeKid

First i want to thank you for your awesome work on the WS2812B Homekit solution. 🥇
It's working very well and i'm so happy with it.

Now i want to go the next mile. i liked to order your PCB-board from BCP-Way.
I just want to ask you if you can provide me the needed BOM-File for this Project. Unfortunaly I'm not familiar with the different manufactures and models of the parts and i dont want to make a misstake.

I'm looking forward to read from you and wish yoou a lovely evening. 😊

ESP01 board RGB LED CONTROLLER

I have a WS2812 ESP8266 ESP01 ESP-01 WS2812 RGB as in the photo and use the gpio2, it is possible to have the bin file for this gpio2
esp01_rgb

Not connecting to Home App

I cannot connect my controller to my Home App. Configuring the Wifi worked. After that it sometimes say after a few seconds that it couldn't connect, or it takes up to 2 minutes with the same ending. Tried it on a NodeMcu as well on one of your PCBs. On both happened the same. Hope someone can help me. :)

Source code?

Hi - would it be possible to include the actual source code as opposed to just a .bin file in this repository?

I ordered a few PCBs yesterday, and want to understand how this all fits together.

Thanks

Can't find the Wifi AP network!

Hello,

Sorry to open a new issue for this problem (again) but I can't find a good solution to fix it!

I used this (Dev Board for flash the "ledstrip.bin" file to my ESP12-F and I try several times with 3 different ESP-12F modules and I can't see the Wifi AP network !

I've also tried different flash mode "DIO" and "QIO" but same issue and I can't choose the flash size with the NodeMCUFlash tool!

What's doing wrong? I missing steps?

This is the result of my flash's :

esptool.py v2.6
Serial port COM5
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: c4:5b:be:6e:24:f5
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 3.4s
Compressed 507328 bytes to 358349...
Wrote 507328 bytes (358349 compressed) at 0x00000000 in 32.4 seconds (effective 125.5 kbit/s)...
Hash of data verified.

Leaving...
Staying in bootloader.

Firmware successfully flashed. Unplug/replug or reset device 
to switch back to normal boot mode.

Question: Light Effect Characteristic?

Hi - I'm trying to find more info on the (Eve?) Light Effect Characteristic you implemented as UUID:

F8600004-079E-48FF-8F27-9C2605A29F52

Do you have any pointers for more information?

Thanks

Suggestion: LED Group

Should be nice if we can group the LEDs when using FX to animate group of pixels instead one single "pixel".

Question: How to update without resetting everything

Hi,
I've a question how your process of updating the software is?
Do you always flash the software and all the settings, wifi etc. needs to be done again or is there another way of doing the update?
Thanks.

NodeMCU connections

Hey, it's me again..
Noob question: I'm planning to use the NodeMCU... I've saw the basic schematic and why I can't connect the RX pin to Din? I've saw many projects with I2S+WS2812B that connects directly.
If I can't connect directly, can I use a logic converter 3.3v-5v to replace the 74AHCT125?

Thank you!

Wifi not working

I flashed my esp8266, but i cant find the Wifi AP that it is supposed to generate.

Could anyone help me?

Firmware Update: Version 1.1.2

Hey there, since the source isn't public and I can't send a PR:
Could you please release a new image with the firmware version number bumped to 1.1.2 (500) so the Eve Apps stops showing me an available firmware update?

Thanks a ton ☺️

Flashing to NodeMCU

I think this is a really cool project and would love to give it a shot. I have some nodemcu boards that i would like to use instead of the wemos D1 mini. I tried flashing the software using this flasher. the flasher gives me a green check mark and after a restart blue led blinks but it never shows up on the wifi.

Are the nodeMCU supported?

Source code missing?

Hi,
I'm not sure this is the right place to ask, but I'm looking for the source code into the directory src but I find only two .bin files.
I suppose, that these files are just for flashing the ESP.
This happens also if I download the Source code.zip.
I expected to find some C or similar source code, I'm missing something?
Thanks.

no mDNS advertisement seen - pairing fails

Hi (fellow hungarian),
tried to flash the binaries into an esp01 with 1M RAM, it works just fine.
the device boots successfully and registers to the WiFi i configured in the 'initial' phase.
it is able to acquire an IPv4 address from the DHCP server, and responds to ping requests, but that's all. no pairing is possible. i dumped the wireless traffic to see what could go wrong but i literally don't see much going on. i have some other ESP-Homekit based items in my network, and they show up in the mDNS discovery tool, but not this one.
i am wondering whether i could get the sources and recompile the code with the latest homekit libs from MaximKulkin.
moreover i also like to change the DOUT pin in the code to GPIO2 - i suppose this should not be a big issue with low led counts where software I2S is actually an option - albeit i can live with this.

WS2812 pin

Hey there,
i found no information on which pin is used as data pin to drive the WS2812 LEDs.
Could you give further information?
Thanks

NodeMCU dead after flash

Hello, I flashed the ledstrip.bin file to a NodeMCU, it took about 1,5 minutes and after that the board is completly dead. The blue led flashes once when Connected to usb but the board is no longer recognised by the pc. Maybe you can point me to a direction to solve this issue?

not work(

I passed 8266, added the device to the homkit, but it does not work from it! when you click on or off, the ribbon continues to glow! what should I do?

Homekit WS2812B effects

hello I have installed the Homekit WS2812B I have the latest version of ios and last of eve the device works well the only thing wrong I do not find the effects on the app eve made with wemos d1 mini

Support for GRB strips

There's a few WS2812b strips and strings out there (and on my balcony) that have their LEDs wired up in GRB order rather than RGB. Without tweaks that means Red is green and vice versa, screwing up color mixing in a number of ways. Any chance to get a GRB version (nevermind a configurable characteristic) or the sources to compile one?

Adaptive Lighting

Hello,

Is it possible to add the new iOS 14's adaptive lighting feature ?

Thanks in advance,

STL for Case Design & Files for Reflow Stencil

I really like your PCB designs.

Unfortunately I can't find the data for the PCB and for the stencil to download at PCB Way. Could you make them available for direct download (possibly in Git)?

In order to design a nice case for the board, a 3D model of the board would be really helpful. Could you also make this available in Git?

Which characteristics are used to implement the effects in the Eve app?

Hello,
not completely related to your project but I'm a homebridge developer and would like to know how you've implemented the effects so that they can be triggered by the Eve app so that I can implement it also in some homebridge related projects.

Since you aren't providing any code (is there a specific reason for this?) but binarys I couldn't look it up.

Anyways thanks for your great projects / work!

Kind Regards

Effects as a switch

Hello,
Would it be possible to have effects as a switch in the Home app?
Obviously not all, but a few favourites.

Right now I'm using homebridge-wled and hb-http-switch to achive similar to it.

Thanks,

Number of LEDs

Hello.

Is it possible to increase the number os LEDs? The limit is 500 and I need 600 ( I have 2 LED strips with 300 LEDs each).

Thanks

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.