Exporting/Importing custom commands

Be sure to read How to get debug information and open a proper issue to provide necessary logs and information.
Any issue without the logs can be automatically closed without further notice.

Issue description:
I recently bought a new tablet and I found myself with the following problem when exporting/importing the “custom commands” from my previous tablet (the rest of sections were exported/imported fine - via cloud).

  1. when exporting / importing through the cloud no custom command was imported at all; I deleted the default ones from the new tablet just in case but it made no difference. I don’t know if what fails is the export or the import. No crash or error message in any of the tablets.
  2. when exporting / importing via a file, everything SEEMED to be properly imported; however, the “Combined Commands”, though imported, were not properly configured: when edited, all the actions seemed to point to the corresponding “normal” custom command configured on the other tablet, but if the action was edited and the combo was expanded then I noticed that all of them pointed to the very first “normal” custom command of the list. Again, I don’t know if this is an issue when exporting or when importing, no crash or error message when executing the two actions. This is a minor issue as it is as simple as selecting the proper “normal” commands (for every action at every combined command), but it took me a while finding out what was happening.

Logs: (Join files do not paste the content of the files here !)
Unfortunately I am not going to provide logs because there’s a lot of sensitive information (like my domains and credentials) in many of my commands, and I am not comfortable sharing them. I hope this is understandable and not a reason to reject the bug, but I would understand if it is.

Screenshots:

Additional information:
In case it is helpful, the list of commands is ~50 elements big (including the default ones) and it contains commands of different types (http post/get, imported from media center, added from media center - built-in + JSON-RPC - and combined ones). Some of them are hidden, some apply to one host only, and some are both hidden and for one host only. Some are also mapped to a button. All of them have custom icons (even the hidden ones and the ones mapped to a button).
Very few of the actions in the combined commands make use of the “delay after command (ms)”; in fact it’s always the same action (which I use in different combined commands), the one that wakes up my kodi server.

As you can guess no logs no chocolate, I have no way to know what happens where and can’t pass hours trying to replicate and probably not even be able to.

I kindly ask you not to reject this entry yet; I’ll see if I can reproduce the issue at my parents who also use custom commands, but they don’t have sensible information; and if so, I’ll take their logs.
It’ll take me up to a couple of weeks though.

Good news:

  1. The first issue regarding the cloud problem is just a refresh thing. When you import the commands via cloud, the custom commands and the layout is not automatically loaded (the same as my other issue reported here but through cloud import instead of the API workflow). As a workaround, restarting Yatse shows everything as expected
    NOTE 1: Importing from a file automatically refreshes everything
    NOTE 2: I always delete any existing custom command - e.g. the default ones - before importing, maybe it is needed to make the issue happen.

  2. The second issue regarding the combined commands not properly exported and/or imported is still there, and it happens when exp/imp from a file and also when doing so from the cloud (after restarting Yatse).

I am going to send you the logs via a private message.