Skip to content

Commit b9de4e5

Browse files
authored
Merge pull request #1027 from ApolloAutomation/dev
Sync dev to main: ESK module YAML fixes
2 parents 96758ee + d5e490c commit b9de4e5

5 files changed

Lines changed: 62 additions & 47 deletions

File tree

766 KB
Loading

docs/products/ESPHome-Starter-Kit/modules/button-module.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
5656
```yaml
5757
binary_sensor:
5858
- platform: gpio
59+
name: Button Module
5960
pin:
60-
number: GPIO6
6161
inverted: true
6262
mode:
6363
input: true
6464
pullup: true
65-
id: my_button
66-
name: "Button"
65+
number: 6
66+
id: button_module
6767
```
6868

6969
Each option does something specific:
7070

7171
| Option | What it does |
7272
| --- | --- |
7373
| `platform: gpio` | Reads a digital input on a GPIO pin. |
74-
| `number: GPIO6` | The pin the button module's FPC connector wires to on the ESP32-C6. |
74+
| `name: Button Module` | The friendly name shown in Home Assistant and the web server. |
7575
| `inverted: true` | The pin reads LOW when the button is pressed, so this flips it to an intuitive on/off state. |
7676
| `mode.input: true` | Configures the pin as an input. |
7777
| `mode.pullup: true` | Enables the ESP32-C6's internal pull-up so the pin doesn't float when the button isn't pressed. |
78-
| `id: my_button` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
79-
| `name: "Button"` | The friendly name shown in Home Assistant and the web server. |
78+
| `number: 6` | The GPIO pin (GPIO6) the button module's FPC connector wires to on the ESP32-C6. |
79+
| `id: button_module` | Internal handle you can reference from automations and lambdas elsewhere in the config. |
8080

8181
## Install the firmware
8282

docs/products/ESPHome-Starter-Kit/modules/motion-module.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
7373

7474
Each option does something specific:
7575

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. |
7783

7884
## Install the firmware
7985

docs/products/ESPHome-Starter-Kit/modules/rgb-buzzer-module.md

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,33 +56,43 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
5656
```yaml
5757
light:
5858
- platform: esp32_rmt_led_strip
59+
name: RGB LEDs
60+
pin: 14
5961
id: rgb_leds
60-
name: "RGB LEDs"
61-
pin: GPIO14
6262
chipset: WS2812
6363
num_leds: 10
64+
rgb_order: GRB
6465
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"
7266

7367
output:
7468
- platform: ledc
75-
pin: GPIO18
76-
id: buzzer
69+
pin: 18
70+
id: buzzer_output
7771

7872
rtttl:
79-
id: rtttl_player
80-
output: buzzer
73+
- output: buzzer_output
74+
id: rtttl_player
8175
```
8276

8377
Each option does something specific:
8478

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. |
8696

8797
## Install the firmware
8898

@@ -99,22 +109,22 @@ Flash the device so the new RGB & Buzzer entities go live.
99109

100110
With the device back online, the RGB LED light entity is live on the web server. <a href="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.
101111

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.
104-
105-
![](../../../assets/esphome-device-builder-test-rgb-leds.gif)
112+
<div class="annotate" markdown>
106113

107-
!!! 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)
108116

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>
110118

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.
112120

113-
> Web server page showing the RGB Light controls on the LED & Buzzer Module.
121+
![](../../../assets/esphome-device-builder-test-rgb-leds.gif)
114122

115123
!!! success "Your LED & Buzzer notification module is wired up!"
116124

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.
118128

119129
## Try it in an automation
120130

docs/products/ESPHome-Starter-Kit/modules/temperature-humidity-module.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
4545
1. Open your starter kit device in Device Builder and click **Edit**.
4646
2. In the ESPHome Device Builder, navigate to the **Components** section.
4747
3. Click **Add Component** in the editor toolbar.
48-
4. Search for **Temperature and Humidity** and select the Apollo Starter Kit temperature and humidity component.
49-
5. Click **Add**. Device Builder inserts I2C bus into your YAML.
48+
4. Select the **I2C** component.
49+
5. Click **Add**. Device Builder inserts the I2C bus into your YAML.
5050
6. Search for **Temperature and Humidity** and select the Apollo Starter Kit temperature and humidity component.
51-
7. Click **Add**. Device Builder inserts the AHT20F sensor block into your YAML.
51+
7. Toggle the **Humidity** and **Temperature** selections on.
52+
8. Click **Add**. Device Builder inserts the AHT20F sensor block into your YAML.
5253

5354
![](../../../assets/esphome-device-builder-add-i2c-temp-hum-component.gif)
5455

@@ -58,34 +59,32 @@ ESPHome Device Builder ships an **Add Component** flow that knows the pin layout
5859

5960
```yaml
6061
i2c:
61-
sda: GPIO1
62-
scl: GPIO0
63-
scan: true
62+
- scl: 0
63+
sda: 1
64+
id: i2c_bus
6465

6566
sensor:
6667
- platform: aht10
6768
variant: AHT20
68-
id: aht_20
69-
temperature:
70-
name: "Temperature"
71-
id: aht_temperature
7269
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
7676
```
7777

7878
Each option does something specific:
7979

8080
| Option | What it does |
8181
| --- | --- |
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. |
8484
| `platform: aht10` | The ESPHome platform that drives AHT10, AHT20, and AHT30 sensors. |
8585
| `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. |
8786
| `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. |
8988

9089
## Install the firmware
9190

0 commit comments

Comments
 (0)