Add position info #145

This commit is contained in:
Johannes
2022-05-07 22:11:28 +02:00
committed by GitHub
parent 1f6e2a08f6
commit c2ee0d30f1

View File

@@ -411,7 +411,7 @@ class LuiPagesGen(object):
entity = self._ha_api.get_entity(entity) entity = self._ha_api.get_entity(entity)
pos = int(entity.attributes.get("current_position", 50)) pos = int(entity.attributes.get("current_position", 50))
pos_translation = get_translation(self._locale, "position") pos_translation = get_translation(self._locale, "position")
self._send_mqtt_msg(f"entityUpdateDetail~{pos}~~{pos_translation}") self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}: {pos}~{pos_translation}")
def send_message_page(self, id, heading, msg, b1, b2): def send_message_page(self, id, heading, msg, b1, b2):
self._send_mqtt_msg(f"pageType~popupNotify") self._send_mqtt_msg(f"pageType~popupNotify")