I am working on a custom card that displays a zigbee network using vis-network.
vis-network allows for dragging of the node elements to change the layout and will provide x,y coordinates of each node.
In order to allow the saving of this layout, I need to be able to do this from a button on the bottom of the card.
However, I am trying to then save this layout info (json string) in the card config and for the life of me can’t work out how I might do this.
The card has an editor card (which is fine and does save correctly) by firing the config-changed event but this does not work on the actual card itself (as preume no listener if not in edit mode).
Does anyone know a way to then update the card config through code within the actual custom card itself?