diff --git a/public/config/default-display-config.yml b/public/config/default-display-config.yml index 4511dd9..54d7c82 100644 --- a/public/config/default-display-config.yml +++ b/public/config/default-display-config.yml @@ -60,9 +60,10 @@ light: color: "#888888" feedbackLayout: "$B1" feedback: | + {% set brightness = attributes.brightness | default(255, true) %} { - "indicator": {{ attributes.brightness / 255 * 100 }}, - "value": "{{ (attributes.brightness / 255 * 100) | int }}%" + "indicator": {{ brightness / 255 * 100 }}, + "value": "{{ (brightness / 255 * 100) | int }}%" } states: unavailable: