joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
854 stars 187 forks source link

Card show helper #1187

Closed Odianosen25 closed 3 months ago

Odianosen25 commented 4 months ago

Added a helper function to make it easier to show a card, using the card key from other AD apps.

For example

panel_app = self.adapi.get_app("living_room_nspanel")
panel_app.show_card("light_control")

Or if trying to move the card, from external triggers of the panel

panel_app = self.adapi.get_app("living_room_nspanel")
panel_app.navigate("next")