Skip to content

Add new components: neewerlight_ble and neewerlight_ct #5078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ Light Components
LightWaveRF, components/lightwaverf, brightness-medium.svg, dark-invert
LVGL widget, components/light/lvgl, lvgl_c_lig.png
Monochromatic Light, components/light/monochromatic, brightness-medium.svg, dark-invert
Neewer Bi-Color LED Light, components/light/neewerlight_ct, neewer_cb60b.png, dark-invert
NeoPixelBus Light, components/light/neopixelbus, color_lens.svg, dark-invert
RGB Light, components/light/rgb, rgb.png
RGBCT Light, components/light/rgbct, rgbw.png
Expand Down
Binary file added components/light/images/neewer_cb60b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions components/light/neewer_ct.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Neewer Light
============

.. seo::
:description: Instructions for setting up Neewer Bi-Color lights.
:image: cm1106.png
:keywords: Neewer, CB60B, Bi-Color, light

The ``neewerlight_ct`` light platform provides support for Neewer Bi-Color lights.

.. figure:: images/neewer_cb60b.png
:align: center
:width: 50.0%

Neewer CB60B Bi-Color LED Light.

The lights use Bluetooth Low Energy (BLE) to communicate with the Neewer app on your phone.

Before you disconnect the light from the Neewer app, note the range of its color temperature, we will need it later.
Alternatively, refer to the product documentation or the user manual.

In order to connect your light to ESPHome, first you need to kill the Neewer app on your phone.

Next step is to find out the mac address of your light. You can do this by using the ``neewerlight_ble`` component.
Switch the light on and then use the following configuration to scan for BLE devices:

.. code-block:: yaml

# Find the mac address of your light
neewerlight_ble:

Now you can use the ``neewerlight_ct`` platform:

.. code-block:: yaml

# Declare a BLE client with the mac address of your light
ble_client:
- mac_address: 00:00:00:00:00:00
id: neewer_light_cb60b_1

# Create a light using the neewerlight_ct platform
light:
- platform: neewerlight_ct
name: "Neewer Light CB60B #1"
ble_client_id: neewer_light_cb60b_1
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2700 K

Configuration variables:
------------------------

For ``ble_client`` configuration, refer to :doc:`/components/ble_client`.

- **ble_client_id** (**Required**, int): ID of the associated BLE client.
- **cold_white_color_temperature** (**Required**, float): The coldest color temperature supported by this light. This
is the lowest value when expressed in `mireds <https://en.wikipedia.org/wiki/Mired>`__, or the highest value when
expressed in Kelvin.
- **warm_white_color_temperature** (**Required**, float): The warmest color temperature supported by this light. This
is the highest value when expressed in `mireds <https://en.wikipedia.org/wiki/Mired>`__, or the lowest value when
expressed in Kelvin.
- All other options from :ref:`Light <config-light>`.

See Also
--------

- :doc:`/components/ble_client`
- :doc:`/components/light/index`
- :doc:`/components/light/color_temperature`
- :apiref:`neewerlight_ct/neewer_ct_light_output.h`
- :ghedit:`Edit`
Binary file added images/neewer_cb60b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.