From 989845aa4be9e6e2abdcc598e770a139b9c703da Mon Sep 17 00:00:00 2001 From: Bart274 Date: Tue, 12 Jan 2016 14:25:52 +0100 Subject: [PATCH] Update state-badge.html Color the badge of a binary sensor on or off depending on the state --- src/components/entity/state-badge.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/entity/state-badge.html b/src/components/entity/state-badge.html index d99f55640c..a801c1dd1f 100644 --- a/src/components/entity/state-badge.html +++ b/src/components/entity/state-badge.html @@ -31,6 +31,7 @@ /* Color the icon if light or sun is on */ ha-state-icon[data-domain=light][data-state=on], ha-state-icon[data-domain=switch][data-state=on], + ha-state-icon[data-domain=binary_sensor][data-state=on], ha-state-icon[data-domain=sun][data-state=above_horizon] { color: #DCC91F; }