adjust volume range

This commit is contained in:
Johannes Braun
2022-03-07 17:52:56 +01:00
parent d68b6f7d98
commit 8f5f9c00f4

View File

@@ -196,6 +196,8 @@ class NsPanelLovelanceUI:
if(btype == "volumeSlider"):
pos = int(optVal)
# HA wants this value between 0 and 1 as float
pos = pos/100
self.api.get_entity(entity_id).call_service("volume_set", volume_level=pos)
def register_callbacks(self):