mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-25 17:04:25 +01:00
Update nspanel-lovelace-ui.py
This commit is contained in:
@@ -657,7 +657,8 @@ class LovelaceUIPanel:
|
||||
self.send_mqtt_msg(f"entityUpdateDetail,{get_icon_id('lightbulb')},{icon_color},{switch_val},{brightness},{color_temp},{color}")
|
||||
|
||||
def generate_shutter_detail_page(self, entity):
|
||||
pos = self.api.get_entity(entity).attributes.current_position
|
||||
pos = int(self.get_safe_ha_attribute(entity.attributes, "current_position", 50))
|
||||
|
||||
# reverse position for slider
|
||||
pos = 100-pos
|
||||
self.send_mqtt_msg(f"entityUpdateDetail,{pos}")
|
||||
|
||||
Reference in New Issue
Block a user