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
}