Skip to content

Commit

Permalink
Merge pull request #296 from cgiesche/streamdeck-homeassistant-295
Browse files Browse the repository at this point in the history
Fixed #295: lights without brightness info not working
  • Loading branch information
cgiesche authored Sep 10, 2024
2 parents 18746b2 + 9e59c14 commit ca0acc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/config/default-display-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca0acc8

Please sign in to comment.