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
856 stars 187 forks source link

Current Card access #1184

Closed Odianosen25 closed 4 months ago

Odianosen25 commented 4 months ago

This gives the ability for other apps to access what the current card is, in other to process other logic.

For example shutdown shows a hidden card to confirm, and can use the buttons to either accept or reject.

Same buttons used to control lights, when not on the accept/reject page

This is on the bases the other PR #1183 is accepted

joBr99 commented 4 months ago

I think this was requested somewhere before. Can you provide an example on how to use this for the documentation?