View Single Post
Old 03-15-2021, 10:15 AM   #385
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,207
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
It works for me if I connect to Folder Device. Does not work when I use my kindle:

Code:
Action Chains: Starting event: Device Disconnected
calling method (init_cache) of obj (selection_count)
calling method (flush_cache) of obj (selection_count)
Action Chains: Starting chain: test device disconnect
Action Chains: test device disconnect: starting action No. 1: Chain Variables
('device_info: ', 'Amazon Kindle')
Action Chains: chain (test device disconnect) finished in: 0:00:00.930646
Action Chains: event (Device Disconnected) finished in: 1.0228612422943115
Code:
{
  "ActionsChainMenus": {
    "Menus": [
      {
        "active": true,
        "chain_settings": {
          "chain_links": [
            {
              "action_name": "Chain Variables",
              "action_settings": {
                "chain_vars": [
                  {
                    "iterate": false,
                    "name": "new_var",
                    "value": "program:\nprint('device_info: ', connected_device_name('main'))"
                  }
                ]
              },
              "comment": ""
            }
          ],
          "refresh_gui": true
        },
        "image": "",
        "menuText": "test device disconnect",
        "subMenu": ""
      }
    ]
  },
  "schemaVersion": 1.3
}
capink is offline   Reply With Quote