From ce05ac8ff0f6edc0176e9b54c6d95eeeac627846 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 3 Apr 2023 11:38:19 +0200 Subject: [PATCH] Tweak --- docs/dev_101_services.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/dev_101_services.md b/docs/dev_101_services.md index 4f2f7053..0d350ec4 100644 --- a/docs/dev_101_services.md +++ b/docs/dev_101_services.md @@ -117,13 +117,16 @@ set_speed: In some cases, entities from a service's domain may not support all service fields. By providing a `filter` for the field description, the field will only be shown if at least -on selected entity supports the field. +one selected entity supports the field. -The filter supports filtering on `supported_features` as well as on state attribute values +A filter supports filtering on `supported_features` as well as on state attribute values in general. +If multiple filters are given, at least one entity must pass all the filters. + This is a partial example of a field which is only shown if at least one selected entity -has the needed `supported_features`: +supports either `climate.ClimateEntityFeature.TARGET_TEMPERATURE` or +`climate.ClimateEntityFeature.TARGET_TEMPERATURE_RANGE`: ```yaml fields: @@ -133,6 +136,7 @@ has the needed `supported_features`: filter: supported_features: - climate.ClimateEntityFeature.TARGET_TEMPERATURE + - climate.ClimateEntityFeature.TARGET_TEMPERATURE_RANGE ``` This is a partial example of a field which is only shown if at least one selected entity's