From b66399c1f75c025a6dbff761187f6d34891014d0 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 17 Apr 2017 01:24:51 +0300 Subject: [PATCH] Use dead and sleep zwave icons (#257) * Use dead and sleep zwave icons * Use mdi:nfc as default zwave icon --- src/util/hass-util.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/hass-util.html b/src/util/hass-util.html index 6dfe11b304..becdeab307 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -312,6 +312,13 @@ window.hassUtil.domainIcon = function (domain, state) { case 'weblink': return 'mdi:open-in-new'; + case 'zwave': + if (state) { + if (state.indexOf('Dead') !== -1) return 'mdi:emoticon-dead'; + if (state.indexOf('Sleeping') !== -1) return 'mdi:sleep'; + } + return 'mdi:nfc'; + default: /* eslint-disable no-console */ console.warn(