mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 23:44:25 +01:00
fix shutter detail page
This commit is contained in:
@@ -366,6 +366,7 @@ class LuiPagesGen(object):
|
|||||||
self._send_mqtt_msg(f"entityUpdateDetail,{get_icon_id('lightbulb')},{icon_color},{switch_val},{brightness},{color_temp},{color}")
|
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):
|
def generate_shutter_detail_page(self, entity):
|
||||||
|
entity = self._ha_api.get_entity(entity)
|
||||||
pos = 100-int(entity.attributes.get("current_position", 50))
|
pos = 100-int(entity.attributes.get("current_position", 50))
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail,{pos}")
|
self._send_mqtt_msg(f"entityUpdateDetail,{pos}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user