Trouble Adding Action Group

Posted on
Fri May 26, 2023 12:25 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Trouble Adding Action Group

I'd like to be able to use Siri to unlock my car, which is an Action Group in Indigo. I have added the Action Group to the HKLS Bridge a few different ways. They all result in error logs flooding the even t log. Is there a secret to using Action Groups with HomeKitLink Siri? I've tried a switch, a lock

bmwag.png
bmwag.png (378.68 KiB) Viewed 897 times

Posted on
Fri May 26, 2023 5:19 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Trouble Adding Action Group

Hi

Have just tested - 0n 0.6.5 - no issues here with adding action groups, or adding to home and functioning on/off within home app….

Action groups will ideally have to be switches. As they have no states and can only be activated.

What particularly error message are you seeing?

(Having just noticed you name of device ‘BMW’ - it may relate to particularly short name you are using, just tested and works fine with that as well…)

Glenn


Sent from my iPad using Tapatalk
Last edited by GlennNZ on Sat May 27, 2023 3:39 pm, edited 1 time in total.

Posted on
Sat May 27, 2023 8:36 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Trouble Adding Action Group

I tried again with the name "BMW Door" , chose Lock type and didn't put anything in the device type. Here's the error I get when I save. The device is created in Home

Code: Select all
May 27, 2023 at 10:22:59 AM
   HomeKitLink Siri                Stopping accessory HomeKitLink Bridge 682113 on address 192.168.1.6, port 51826.
   HomeKitLink Siri                Closed the flux capacitor loop.
   HomeKitLink Siri                HomeKitLink-Siri has completed full Bridge, Driver and Bridge Thread Shutdown.
   HomeKitLink Siri                Starting accessory HomeKitLink Bridge 682113 on address 192.168.1.6, port 51826.
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x11222ffc0>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x11222ec00>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x11230ed80>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x11230f480>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x1122272c0>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x1122d9cc0>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x1122272c0>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_getter_callback  line: 2672):    Exception :  Message : Plugin Setter Exception
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'

   HomeKitLink Siri Error         
Exc_info: (<class 'KeyError'>, KeyError('key id 1804331331 not found in database'), <traceback object at 0x1122272c0>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2435, in Plugin_getter_callback
    indigodevice = indigo.devices[accessoryself.indigodeviceid]
KeyError: 'key id 1804331331 not found in database'
Stack_info: None


Here's what happens when I click on the device in Home:

Code: Select all
May 27, 2023 at 10:27:54 AM
   HomeKitLink Siri Error          (plugin.py: Function: Plugin_setter_callback  line: 2426):    Exception :  Message : Error in setter callback
   HomeKitLink Siri Error          Traceback:
  File "plugin.py", line 2042, in Plugin_setter_callback
    if "On" in valuetoSet:

   HomeKitLink Siri Error          Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 2042, in Plugin_setter_callback
    if "On" in valuetoSet:
TypeError: argument of type 'int' is not iterable

   HomeKitLink Siri Error         
Exc_info: (<class 'TypeError'>, TypeError("argument of type 'int' is not iterable"), <traceback object at 0x11222cb80>)
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 2042, in Plugin_setter_callback
    if "On" in valuetoSet:
TypeError: argument of type 'int' is not iterable
Stack_info: None


Here's the configuration of the device in the plugin::

bmwUnlock.png
bmwUnlock.png (380.15 KiB) Viewed 826 times


For additional info, the Action Group executes an Unlock command using the Connected Drive plugin

Posted on
Sat May 27, 2023 3:47 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Trouble Adding Action Group

Hi

That will because you are using LockType, having enabled show All Options (which allows any choice)

An Action group - has has no on/off states, or any states at all, it can simply be run or not. It also doesn’t report back any states to Indigo it simply runs, and then we turn back off again.

Instructions:
all action Groups are supported as Switchs/Fans/Outlets only


Follow the instructions to unpublish the device. Unclick the publish button, save device, restart bridge -check gone in the Home app.

Republish it as a Switch type and would guess will work, although you mentioned you have tried as switch? And you first image is as a Switch - perhaps hadn’t been unpublished from Home app before changed?

It is possible to bypass this error for Locks (relates to the complete lack of state). But regardless they still wouldn’t work as Locks needs multiple confirmation of their state. Would sit as Opening…. or Closing… forever…. and not be ideal.

Glenn


Sent from my iPad using Tapatalk

Posted on
Sat May 27, 2023 4:06 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Trouble Adding Action Group

I recreated this using a new virtual device and a switch. It's working now. Thanks

Posted on
Sat May 27, 2023 4:08 pm
GlennNZ offline
User avatar
Posts: 1562
Joined: Dec 07, 2014
Location: Central Coast, Australia

Trouble Adding Action Group



An action group alone still should work - and does on my testing.

Having reacquainted myself with codebase, Just needs to be switch type - as that has the extra logic to deal with the lack of states of action groups.

As a AG Switch - it also acts as a toggle on/off switch. Toggle to on, activating the AG and then immediately returns to Off state.


Glenn


Sent from my iPad using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest