diff --git a/source/_posts/2024-10-02-release-202410.markdown b/source/_posts/2024-10-02-release-202410.markdown index 391291bee38..dbf24e34bcf 100644 --- a/source/_posts/2024-10-02-release-202410.markdown +++ b/source/_posts/2024-10-02-release-202410.markdown @@ -122,68 +122,41 @@ In the past, if a statistic encountered an issue, it might be quietly broken unt ## Improved YAML syntax for automations -Recently, we renamed `service` to `action` in the [Home Assistant UI and YAML](/blog/2024/08/07/release-20248/#goodbye-service-calls-hello-actions-). This was done with the goal of making the syntax more natural allowing it to be easier to grasp and read. We want to continue this work to improve the YAML syntax, this time focusing on automations, and we've made the following changes, +Recently, we renamed `service` to `action` in the [Home Assistant UI and YAML]. +This was done with the goal of making the syntax more natural allowing it +to be easier to grasp and read. We want to continue this work to improve the +YAML syntax, this time focusing on {% term automations %}, and we've made the +following changes, - - The top level `trigger` key is now `triggers` (plural) - - The top level `condition` key is now `conditions` (plural) - - The top level `action` key is now `actions` (plural) - - The `platform` key of a trigger definition is now `trigger` +- The top-level `trigger` key is now `triggers` (plural) +- The top-level `condition` key is now `conditions` (plural) +- The top-level `action` key is now `actions` (plural) +- The `platform` key of a trigger definition is now `trigger` -The result of all this is YAML automation syntax now has `triggers` with multiple `trigger` definitions, `conditions` with multiple `condition` definitions, and `actions` with multiple `action` definitions. +The result of all this is YAML automation syntax now has `triggers` with +multiple `trigger` definitions, `conditions` with multiple `condition` +definitions, and `actions` with multiple `action` definitions. -Before: +Here is a small example of an automation that highlighting these changes. -```yaml -# Automation example: -alias: "My automation" -description: "This is my automation" -trigger: - - platform: state - entity_id: light.kitchen - to: "on" -condition: - - condition: state - entity_id: binary_sensor.motion - state: "on" -action: - - action: light.turn_on - target: - entity_id: light.living_room -``` +
+
+The 2024.9 release on the left and this 2024.10 release on the right.
+