From e2d567b41f81ab345bdd22dc7000f6faeb53b4bd Mon Sep 17 00:00:00 2001 From: Johannes <29555657+joBr99@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:49:04 +0100 Subject: [PATCH] Update entities.md --- docs/entities.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/entities.md b/docs/entities.md index bb3becb2..b758f227 100644 --- a/docs/entities.md +++ b/docs/entities.md @@ -75,7 +75,7 @@ There probably not much cases where this is needed, but here is an exmaple to sh You can use the acual chars for the icon in the above ha: template, however if you want to use the icon names you can use `ha-i` instead. This will be evaluated as HA Template first and then looked up as an icon. -``` +```yaml icon: 'ha-i:{{ iif(is_state('light.kitchen', 'on'), 'mdi:flashlight', 'mdi:flashlight-off') }}' ```