mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
parent
7be6c6536a
commit
74d3275d29
81
components/output/ac_dimmer.rst
Normal file
81
components/output/ac_dimmer.rst
Normal file
@ -0,0 +1,81 @@
|
||||
AC Dimmer Component
|
||||
===================
|
||||
|
||||
.. seo::
|
||||
:description: Instructions for setting up AC Dimmer integration in ESPHome.
|
||||
:image: ac_dimmer.svg
|
||||
|
||||
.. warning::
|
||||
|
||||
This component has not been fully tested yet, if you are testing this component
|
||||
please share your experience with the dimmer hardware and light model and
|
||||
configuration here https://github.com/esphome/feature-requests/issues/278
|
||||
|
||||
Thanks!
|
||||
|
||||
The ``ac_dimmer`` component allows you to connect a dimmable light or other load
|
||||
which supports phase control dimming to your ESPHome project.
|
||||
|
||||
There are several already made boards which are compatible with this integration,
|
||||
for example the `RobotDyn dimmer
|
||||
<https://robotdyn.com/ac-light-dimmer-module-1-channel-3-3v-5v-logic-ac-50-60hz-220v-110v.html>`__.
|
||||
|
||||
.. figure:: images/robotdyn_dimmer.jpg
|
||||
:align: center
|
||||
:width: 50.0%
|
||||
|
||||
RobotDyn Module. Image by `RobotDyn`_
|
||||
|
||||
.. _RobotDyn: https://robotdyn.com/ac-light-dimmer-module-1-channel-3-3v-5v-logic-ac-50-60hz-220v-110v.html
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# Example configuration entry
|
||||
output:
|
||||
- platform: ac_dimmer
|
||||
id: dimmer1
|
||||
gate_pin: D7
|
||||
zero_cross_pin:
|
||||
number: D6
|
||||
mode: INPUT
|
||||
inverted: yes
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
output: dimmer1
|
||||
name: Dimmerized Light
|
||||
|
||||
Configuration variables:
|
||||
------------------------
|
||||
|
||||
- **gate_pin** (**Required**, :ref:`config-pin`): The pin used to control the Triac or
|
||||
Mosfet.
|
||||
- **zero_cross_pin** (**Required**, :ref:`config-pin`): The pin used to sense the AC
|
||||
Zero cross event, you can have several dimmers controlled with the same zero cross
|
||||
detector, in such case duplicate the ``zero_cross_pin`` config on each output.
|
||||
- **method** (*Optional*): Set the method for dimming, can be:
|
||||
|
||||
- ``leading pulse`` (default): a short pulse to trigger a triac.
|
||||
- ``leading``: gate pin driven high until the zero cross is detected
|
||||
- ``trailing``: gate pin driven high from zero cross until dim period, this method
|
||||
is suitable for mosfet dimmers only.
|
||||
|
||||
- **init_with_half_cycle** (*Optional*, boolean): Will send the first full half AC cycle
|
||||
Try to use this for dimmable LED lights, it might help turning on at low brightness
|
||||
levels. On Halogen lamps it might show at initial flicker. Defaults to ``False``.
|
||||
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
||||
- All other options from :ref:`Output <config-output>`.
|
||||
|
||||
Dimming lights with phase control can be tricky, the minimum level your light turns on
|
||||
might be different from other lights, also the perceived light level might not correlate
|
||||
to the percentage output set to the light, to try to minimize these behaviors you can
|
||||
tweak the values ``min_power`` from this output component and also ``gamma_correct`` from
|
||||
the monochromatic light.
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
- :doc:`/components/output/index`
|
||||
- :doc:`/components/light/monochromatic`
|
||||
- :apiref:`ac_dimmer/ac_dimmer.h`
|
||||
- :ghedit:`Edit`
|
BIN
components/output/images/robotdyn_dimmer.jpg
Normal file
BIN
components/output/images/robotdyn_dimmer.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
1
images/ac_dimmer.svg
Normal file
1
images/ac_dimmer.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="779" height="541" viewBox="0 0 370 257" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd"><defs><style>.str0{stroke:#373435;stroke-width:.990976}.fil0{fill:none}</style></defs><g id="Layer_x0020_1"><path class="fil0 str0" d="M0 129h370M22 0v257M22 129C77-10 132 1 187 129m166 0c-55 139-110 127-166 0"/><path class="str0" d="M353 129h-63v95c21-11 42-42 63-95z" fill="#0098da"/><path class="fil0 str0" d="M187 129c-21-49-42-81-63-94"/><path class="str0" d="M187 129h-63V35c21 13 42 45 63 94z" fill="#0098da"/></g></svg>
|
After Width: | Height: | Size: 661 B |
@ -200,6 +200,7 @@ Output Components
|
||||
Slow PWM, components/output/slow_pwm, pwm.png
|
||||
GPIO Output, components/output/gpio, pin.svg
|
||||
ESP32 LEDC, components/output/ledc, pwm.png
|
||||
AC Dimmer, components/output/ac_dimmer, ac_dimmer.svg
|
||||
PCA9685, components/output/pca9685, pca9685.jpg
|
||||
TLC59208F, components/output/tlc59208f, tlc59208f.jpg
|
||||
MY9231/MY9291, components/output/my9231, my9231.svg
|
||||
|
Loading…
Reference in New Issue
Block a user