From f5d785298fc831eabd687f71121d6fc8f9dfdb7e Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 22 Mar 2022 23:13:23 +0100 Subject: [PATCH] added input boolean to button command --- apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py index 4f87a8d1..9badf16c 100644 --- a/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py +++ b/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py @@ -365,7 +365,7 @@ class LovelaceUIPanel: if btype == "button": if entity_id.startswith('scene'): self.api.get_entity(entity_id).call_service("turn_on") - elif entity_id.startswith('light') or entity_id.startswith('switch'): + elif entity_id.startswith('light') or entity_id.startswith('switch') or entity_id.startswith('input_boolean'): self.api.get_entity(entity_id).call_service("toggle") else: self.api.get_entity(entity_id).call_service("press")