diff --git a/src/util/hass-attributes-util.html b/src/util/hass-attributes-util.html index e17d821d3b84..f2b0817aa7c8 100644 --- a/src/util/hass-attributes-util.html +++ b/src/util/hass-attributes-util.html @@ -5,7 +5,7 @@ binary_sensor: [ 'connectivity', 'light', 'moisture', 'motion', 'occupancy', 'opening', 'sound', 'vibration', 'gas', 'power', 'safety', 'smoke', 'cold', 'heat', - 'moving'], + 'moving', 'plug'], cover: ['garage'], }; diff --git a/src/util/hass-util.html b/src/util/hass-util.html index be5c8bf2257c..a98e61018643 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -385,6 +385,8 @@ case 'safety': case 'smoke': return activated ? 'mdi:verified' : 'mdi:alert'; + case 'plug': + return activated ? 'mdi:power-plug-off' : 'mdi:power-plug'; default: return activated ? 'mdi:radiobox-blank' : 'mdi:checkbox-marked-circle'; } @@ -497,6 +499,7 @@ case 'light': case 'moving': case 'power': + case 'plug': default: } } else if (domain === 'input_datetime') {