mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-31 03:44:20 +01:00
Whenever a button is pressed there is no event triggered which lets the user easily implement triggers on this event. This PR adds the functionality that the current button event is written to NSPanel objects structures as states under `0_userdata.0.NSPanel.1.Event.Button`: - Action - whatever button was pressed (button, media-OnOff, volumeSlider, ...) - Value - auxillary value for this action (e.g. action `volumeSlider` - `Value` holds the value the slider was moved to) - Id - Action == `button` - Id of the alias the button is connected to - else - Id of the current page item or the page to navigate to