From 79caae92d49ccea49dde4c29bf908694c31b2ccb Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 28 Jun 2023 20:29:15 +0200 Subject: [PATCH] Add blog post about service description filters (#1824) Co-authored-by: Franck Nijhof --- blog/2023-06-28-service-description-filters.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blog/2023-06-28-service-description-filters.md diff --git a/blog/2023-06-28-service-description-filters.md b/blog/2023-06-28-service-description-filters.md new file mode 100644 index 00000000..b3b1dfc2 --- /dev/null +++ b/blog/2023-06-28-service-description-filters.md @@ -0,0 +1,11 @@ +--- +author: Erik Montnémery +authorURL: https://github.com/emontnemery +title: "Service call description filters" +--- + +Service call fields now support filtering, to avoid showing service call parameters that are not supported by an entity to the user. For example, the `brightness` service call parameter for `light.turn_on` will only be shown if the light supports brightness. + +This is an extension of the previously supported possibility to filter out entities that don't support a certain service call. + +This features was introduced in core [PR #86162](https://github.com/home-assistant/core/pull/86162) and is documented [here](/docs/dev_101_services#filtering-service-fields).