diff --git a/content/automations/_index.md b/content/automations/_index.md index d7d5c55f02..d708d6a057 100644 --- a/content/automations/_index.md +++ b/content/automations/_index.md @@ -7,6 +7,8 @@ params: image: auto-fix.svg --- +{{< anchor "automation" >}} + Automations are a very powerful aspect of ESPHome; they allow you to easily perform actions given some condition(s). When you want your ESPHome device to respond to its environment, you use an automation. Here are some examples: diff --git a/content/components/display/max7219digit.md b/content/components/display/max7219digit.md index 53710a9ecb..e2aae42d3b 100644 --- a/content/components/display/max7219digit.md +++ b/content/components/display/max7219digit.md @@ -75,34 +75,24 @@ display: - **chip_lines_style** (*Optional*): How are the lines in Multiline Mode connected? Possible values are `zigzag` and `snake`. Defaults to `snake` - **flip_x** (*Optional*, boolean): Flip the horizontal axis on the screen. Defaults to `false`. -{{< anchor "display-max7219digit_actions" >}} - ## Actions The following actions are replicas of the LAMBDA functions shown in the next section. -{{< anchor "display-max7219digit_actions_invert_on_off>" >}} - ### `MAX7219.invert_on` & `MAX7219.invert_off` Action This action `MAX7219.invert_on` will invert the display. So background pixels are on and texts pixels are off. `MAX7219.invert_off` sets the display back to normal. The background pixels are only set at the next update, the pixels drawn in the various function like print, line, etc. are directly influenced by the invert command. -{{< anchor "display-max7219digit_actions_turn_on_off" >}} - ### `MAX7219.turn_on` & `MAX7219.turn_off` Action The display can be switched on and off "dynamically" with the actions `MAX7219.turn_on` & `MAX7219.turn_off`. -{{< anchor "display-max7219digit_actions_reverse_off" >}} - ## `MAX7219.reverse_on` & `MAX7219.reverse_off` Action With this actions you can reverse the display direction from left to right to right to left. -{{< anchor "display-max7219digit_actions_intensity" >}} - ## `MAX7219.intensity` Action The intensity of the screen can be set "dynamically" within the lambda code with the following command: it.intensity(`0` .. `15` ). diff --git a/script/md_anchors.py b/script/md_anchors.py index 390f69b561..19056baf72 100755 --- a/script/md_anchors.py +++ b/script/md_anchors.py @@ -32,7 +32,7 @@ def process_markdown_file(file_path): continue # Shortcodes - shortcode_match = re.search(r'{{<\s*anchor\s*"([^"]+)"\s*>}}', line) + shortcode_match = re.search(r'\{\{<\s*anchor\s+"([^\s>]+)"\s*>}}', line) if shortcode_match: anchor_id = shortcode_match.group(1) # Look ahead for heading