You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/products/ESPHome-Starter-Kit/modules/motion-module.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,13 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
73
73
74
74
Each option does something specific:
75
75
76
-
\| Option \| What it does \| \| --- \| --- \| \| `platform: gpio` \| Reads a digital input on a GPIO pin. \| \| `number: GPIO3` \| The pin the Motion module's FPC connector wires to on the ESP32-C6. \| \| `mode.input: true` \| Configures the pin as an input. \| \| `mode.pulldown: false` \| The MH-SR602 drives its output both high and low on its own, so no internal pulldown is needed. \| \| `id: motion_module` \| Internal handle you can reference from automations and lambdas elsewhere in the config. \| \| `name: "Motion Module"` \| The friendly name shown in Home Assistant and the web server. \| \| `device_class: motion` \| Tells Home Assistant this is a motion sensor, so it shows the right icon and works in motion-related templates and blueprints. \|
76
+
| Option | What it does |
77
+
| --- | --- |
78
+
| `platform: gpio` | Reads a digital input on a GPIO pin. |
79
+
| `name: Motion Module` | The friendly name shown in Home Assistant and the web server. |
80
+
| `pin: 3` | The GPIO pin (GPIO3) the Motion module's FPC connector wires to on the ESP32-C6. |
81
+
| `device_class: motion` | Tells Home Assistant this is a motion sensor, so it shows the right icon and works in motion-related templates and blueprints. |
82
+
| `id: motion_module` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
Copy file name to clipboardExpand all lines: docs/products/ESPHome-Starter-Kit/modules/rgb-buzzer-module.md
+33-23Lines changed: 33 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,33 +56,43 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
56
56
```yaml
57
57
light:
58
58
- platform: esp32_rmt_led_strip
59
+
name: RGB LEDs
60
+
pin: 14
59
61
id: rgb_leds
60
-
name: "RGB LEDs"
61
-
pin: GPIO14
62
62
chipset: WS2812
63
63
num_leds: 10
64
+
rgb_order: GRB
64
65
rmt_symbols: 48
65
-
rgb_order: grb
66
-
default_transition_length: 0s
67
-
effects:
68
-
- addressable_rainbow:
69
-
name: "Rainbow"
70
-
- addressable_twinkle:
71
-
name: "Twinkle"
72
66
73
67
output:
74
68
- platform: ledc
75
-
pin: GPIO18
76
-
id: buzzer
69
+
pin: 18
70
+
id: buzzer_output
77
71
78
72
rtttl:
79
-
id: rtttl_player
80
-
output: buzzer
73
+
- output: buzzer_output
74
+
id: rtttl_player
81
75
```
82
76
83
77
Each option does something specific:
84
78
85
-
\| Option \| What it does \| \| --- \| --- \| \| **LED strip** \| \| \| `light.platform: esp32_rmt_led_strip` \| Uses the ESP32's RMT peripheral to drive addressable LEDs with precise timing. \| \| `light.pin: GPIO14` \| The data line going to the first LED on the PCB. \| \| `light.chipset: WS2812` \| Which addressable LED protocol to use. WS2812 is the most common, sometimes also called NeoPixel. \| \| `light.num_leds: 10` \| The number of LEDs on the RGB & Buzzer module. \| \| `light.rgb_order: grb` \| Color channel order. WS2812 LEDs receive color data in green-red-blue order, so this makes sure red looks red and not green. \| \| `light.rmt_symbols: 48` \| Low-level RMT setting needed on the ESP32-C6. Leave it at 48. \| \| `light.effects` \| Pre-loaded animations you can select from the web server or trigger from Home Assistant. \| \| **Piezo buzzer** \| \| \| `output.platform: ledc` \| PWM output for driving the buzzer. PWM is how digital pins create audio tones on a piezo. \| \| `output.pin: GPIO18` \| The pin the buzzer is wired to. \| \| `output.id: buzzer` \| Internal handle the rtttl component uses to send tones to this output. \| \| `rtttl.id: rtttl_player` \| Internal handle for triggering tunes from automations and lambdas. \| \| `rtttl.output: buzzer` \| Tells rtttl to use the buzzer output for playback. \|
79
+
| Option | What it does |
80
+
| --- | --- |
81
+
| **LED strip** | |
82
+
| `light.platform: esp32_rmt_led_strip` | Uses the ESP32's RMT peripheral to drive addressable LEDs with precise timing. |
83
+
| `light.name: RGB LEDs` | The friendly name shown in Home Assistant and the web server. |
84
+
| `light.pin: 14` | The data line (GPIO14) going to the first LED on the PCB. |
85
+
| `light.id: rgb_leds` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
86
+
| `light.chipset: WS2812` | Which addressable LED protocol to use. WS2812 is the most common, sometimes also called NeoPixel. |
87
+
| `light.num_leds: 10` | The number of LEDs on the RGB & Buzzer module. |
88
+
| `light.rgb_order: GRB` | Color channel order. WS2812 LEDs receive color data in green-red-blue order, so this makes sure red looks red and not green. |
89
+
| `light.rmt_symbols: 48` | Low-level RMT setting needed on the ESP32-C6. Leave it at 48. |
90
+
| **Piezo buzzer** | |
91
+
| `output.platform: ledc` | PWM output for driving the buzzer. PWM is how digital pins create audio tones on a piezo. |
92
+
| `output.pin: 18` | The pin the buzzer is wired to (GPIO18). |
93
+
| `output.id: buzzer_output` | Internal handle the rtttl component uses to send tones to this output. |
94
+
| `rtttl.output: buzzer_output` | Tells rtttl to use the buzzer output for playback. |
95
+
| `rtttl.id: rtttl_player` | Internal handle for triggering tunes from automations and lambdas. |
86
96
87
97
## Install the firmware
88
98
@@ -99,22 +109,22 @@ Flash the device so the new RGB & Buzzer entities go live.
99
109
100
110
With the device back online, the RGB LED light entity is live on the web server. <ahref="http://esphome-starter-kit.local/"target="_blank"rel="noreferrer nofollow noopener">Open it in a browser</a> on the same network and play with it.
101
111
102
-
1. In a browser, open `http://<your-device-name>.local/`. If you used `esphome-starter-kit` as the device name in Getting Started, that's `http://esphome-starter-kit.local/`.
103
-
2. Toggle the **RGB LEDs** entity and play around with the colors and brightness.
!!! tip "For more effects check out this wiki on how to do advanced configurations with your RGB & Buzzer module!"
114
+
1. In a browser, open `http://<your-device-name>.local/`. If you used `esphome-starter-kit` as the device name in Getting Started, that's `http://esphome-starter-kit.local/`.
115
+
2. Toggle the **RGB LEDs** entity and play around with the colors and brightness. (1)
108
116
109
-
There are a lot of advanced things you can do with a light entity. Check out the [ESPHome light strip effects documentation](https://esphome.io/components/light/#strip-animations) to learn more!
117
+
</div>
110
118
111
-
The buzzer doesn't have its own web server control, since it's an output rather than a switch. Once you've added the device to Home Assistant, you can trigger tunes with the `rtttl.play` action or by exposing your own service.
119
+
1. There's a lot you can do with a light entity. See the [Light Effects tutorial](/products/ESPHome-Starter-Kit/tutorials/light-effects.md) for advanced configurations, or the [ESPHome light strip effects documentation](https://esphome.io/components/light/#strip-animations) to go deeper.
112
120
113
-
> Web server page showing the RGB Light controls on the LED & Buzzer Module.
!!! success "Your LED & Buzzer notification module is wired up!"
116
124
117
-
Your LED & Buzzer Module is now ready for some fun tasks.. like toggling lights on and off, playing with the colors, or using the buzzer to play fun tunes!
125
+
Your LED & Buzzer Module is now ready for some fun tasks, like toggling lights on and off, playing with the colors, or using the buzzer to play fun tunes!
126
+
127
+
The buzzer doesn't have its own web server control, since it's an output rather than a switch. Once you've added the device to Home Assistant, you can trigger tunes with the `rtttl.play` action or by exposing your own service. See [Play a Tune from Home Assistant](/products/ESPHome-Starter-Kit/everyday-use/play-a-tune-from-home-assistant.md) to learn how to set it up.
@@ -58,34 +59,32 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
58
59
59
60
```yaml
60
61
i2c:
61
-
sda: GPIO1
62
-
scl: GPIO0
63
-
scan: true
62
+
- scl: 0
63
+
sda: 1
64
+
id: i2c_bus
64
65
65
66
sensor:
66
67
- platform: aht10
67
68
variant: AHT20
68
-
id: aht_20
69
-
temperature:
70
-
name: "Temperature"
71
-
id: aht_temperature
72
69
humidity:
73
-
name: "Humidity"
74
-
id: aht_humidity
75
-
update_interval: 60s
70
+
id: aht20_humidity
71
+
name: Humidity
72
+
temperature:
73
+
id: aht20_temperature
74
+
name: Temperature
75
+
id: aht20
76
76
```
77
77
78
78
Each option does something specific:
79
79
80
80
| Option | What it does |
81
81
| --- | --- |
82
-
| `i2c.sda` / `i2c.scl` | The data and clock pins for the I2C bus the AHT20F speaks on. The starter kit wires them to GPIO1 and GPIO0. |
83
-
| `i2c.scan: true` | Lists every I2C device the ESP32-C6 finds at boot, useful for confirming the sensor is connected. |
82
+
| `i2c.scl: 0` / `i2c.sda: 1` | The clock (SCL) and data (SDA) pins for the I2C bus the AHT20F speaks on. The starter kit wires them to GPIO0 and GPIO1. |
83
+
| `i2c.id: i2c_bus` | Internal handle for the I2C bus so other components can share it. |
84
84
| `platform: aht10` | The ESPHome platform that drives AHT10, AHT20, and AHT30 sensors. |
85
85
| `variant: AHT20` | Tells the platform which variant of the chip is connected. |
86
-
| `id: aht_20` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
87
86
| `temperature` / `humidity` | Two sub-sensors. Each has a `name` shown in Home Assistant and the web server, and an `id` you can reference from automations and lambdas. |
88
-
| `update_interval: 60s` | How often the sensor reports. 60 seconds is a reasonable default. Lower it for more responsive readings, raise it to cut down on network traffic. |
87
+
| `id: aht20` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
0 commit comments