From d68b6f7d985d6f0113fcbcada0cbcfff7b7a1db3 Mon Sep 17 00:00:00 2001 From: Johannes Braun Date: Mon, 7 Mar 2022 17:40:41 +0100 Subject: [PATCH] fix pos/vol slider service --- apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py index 492bb4ed..a59e7c0e 100644 --- a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py +++ b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py @@ -192,11 +192,11 @@ class NsPanelLovelanceUI: if(btype == "positionSlider"): pos = int(optVal) - self.api.get_entity(entity_id).call_service("volume_set", position=pos) + self.api.get_entity(entity_id).call_service("set_cover_position", position=pos) if(btype == "volumeSlider"): pos = int(optVal) - self.api.get_entity(entity_id).call_service("", volume_level=pos) + self.api.get_entity(entity_id).call_service("volume_set", volume_level=pos) def register_callbacks(self): items = []