Skip to content

Conversation

andrewjswan
Copy link
Contributor

@andrewjswan andrewjswan commented Oct 9, 2025

Description:

Add Light Conditions and Light Triggers section headers

Related issue (if applicable): fixes

Pull request in esphome with YAML changes (if applicable):

  • esphome/esphome#

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/index.rst when creating new documents for new components or cookbook.

New Component Images

If you are adding a new component to ESPHome, you can automatically generate a standardized black and white component name image for the documentation.

To generate a component image:

  1. Comment on this pull request with the following command, replacing COMPONENT_NAME with your component name in UPPER_CASE format with underscores (e.g., BME280, SHT3X, DALLAS_TEMP):

    @esphomebot generate image COMPONENT_NAME
    
  2. The ESPHome bot will respond with a downloadable ZIP file containing the SVG image.

  3. Extract the SVG file and place it in the images/ folder of this repository.

  4. Use the image in your component's index table entry in /components/index.rst.

Example: For a component called "DHT22 Temperature Sensor", use:

@esphomebot generate image DHT22

@esphome esphome bot added the current label Oct 9, 2025
Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit dd954f2
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/68e7e237fcc89a00087e8615
😎 Deploy Preview https://deploy-preview-5462--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

coderabbitai bot commented Oct 9, 2025

Walkthrough

Documentation update to content/components/light/_index.md adding two new sections, “Light Conditions” and “Light Triggers,” with anchors. These sections are inserted around existing light state and turn_on/off context. No code or behavior changes; structure and headings only.

Changes

Cohort / File(s) Summary
Docs: Light component
content/components/light/_index.md
Added “Light Conditions” and “Light Triggers” sections with anchors; reorganized surrounding headings. No logic changes; documentation-only edits.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • kbx81

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly describes the primary change by noting the addition of the Light Conditions and Light Triggers section headers in the documentation, making the intent clear and aligned with the changeset.
Description Check ✅ Passed The description clearly refers to the addition of the Light Conditions and Light Triggers section headers and relates directly to the documentation updates in the pull request, ensuring it is on-topic.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4ce2674 and dd954f2.

📒 Files selected for processing (1)
  • content/components/light/_index.md (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

  • Do not generate or add any sequence diagrams

Files:

  • content/components/light/_index.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@swoboda1337 swoboda1337 merged commit 48923e6 into esphome:current Oct 9, 2025
6 of 7 checks passed
@andrewjswan andrewjswan deleted the Light_Conditions_and_Light_Triggers_section_headers branch October 10, 2025 11:03
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants