Traceback on invalid index for actionMap

Posted on
Sun Feb 18, 2018 3:40 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Traceback on invalid index for actionMap

Hello,

It looks like the button press may be sending action 0 which is not in the actionMap. I just briefly looked at the code. Maybe someone has a quick fix so I don't have to spend hours debugging. :D

This is the message I'm getting in the Indigo Log:
Code: Select all
   Z-Wave                          received "Stair Controller" scene 104
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 00 4C 04 2B 01 68 00 FB
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 104
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  0
   Z-Wave Scene Controller Debug   Action:    -
   Z-Wave Scene Controller Error   Error in plugin execution ReceivedBroadcast:

Traceback (most recent call last):
  File "plugin.py", line 141, in zwaveCommandReceived
KeyError: (0,)

   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Actuator Config Get received:
   Z-Wave Scene Controller Debug   Raw command: 01 09 00 04 00 4C 03 2C 02 00 93
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   Scene:      0
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 0


Thanks!

Posted on
Sun Feb 18, 2018 3:55 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: Traceback on invalid index for actionMap

I think I figured it out. haha, just have to follow all the steps.

Posted on
Sun Feb 18, 2018 3:57 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: Traceback on invalid index for actionMap

Maybe some direction on how to make a button press toggle a light would be cool. Seems that a button press doing a toggle doesn't work quite right... probably because it's a scene controller. hmm

Posted on
Sun Feb 18, 2018 4:06 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Traceback on invalid index for actionMap

Hi Franky.

There shouldn't be any problem toggling lights.

All the Scene Controller plugin does is provides triggers, so if you've created a trigger (Events > ZWave Scene Controller Event> Scene Command Received) it should fire every time you press the button.

Peter

Posted on
Sun Feb 18, 2018 4:08 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: Traceback on invalid index for actionMap

This Leviton VRCS4 is quite the pain to work with. Even Indigo doesn't like it; lots of incomplete packets.

Posted on
Sun Feb 18, 2018 4:11 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: Traceback on invalid index for actionMap

It seems like button 4 is special, and I cannot figure out why. I only ever get the command for pressing button 4 when the LED is off. If it is on, pressing the button doesn't seem to indicate anything happened in the Indigo Log. The other buttons, 1,2,3 all have corresponding button presses of 5,6,7 when the LED is on. I'm just not sure what to make of it. Still investigating. I was hoping to use this as a simple toggle switch for lights, no real scene control needed.

Posted on
Sun Feb 18, 2018 4:16 pm
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: Traceback on invalid index for actionMap

When I map actions to clicks on buttons 1 and 5, the actions are executed up to 4 times. very odd behavior.

Code: Select all
Feb 18, 2018, 2:15:02 PM
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Actuator Config Get received:
   Z-Wave Scene Controller Debug   Raw command: 01 09 00 04 00 4C 03 2C 02 00 93
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   Scene:      0
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 0
   Z-Wave                          received "Stair Controller" scene 5
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 05 00 9E
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 5
   Z-Wave Scene Controller Debug   Button:    5
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 5
   Z-Wave                          received "Stair Controller" scene 5
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 05 00 9E
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 5
   Z-Wave Scene Controller Debug   Button:    5
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Z-Wave                          received "Stair Controller" scene 5
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 5
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 05 00 9E
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 5
   Z-Wave Scene Controller Debug   Button:    5
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 5
   Z-Wave                          received "Stair Controller" scene 5
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 00 4C 04 2B 01 05 00 96
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 5
   Z-Wave Scene Controller Debug   Button:    5
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 5


no actions. This was one button press ^
and the following is pressing the same button one more time.

Code: Select all
Feb 18, 2018, 2:15:41 PM
   Z-Wave                          received "Stair Controller" scene 1
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 01 00 9A
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 1
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Trigger                         Stair Scenes: Press Button 5
   Trigger                         Stair Scenes: Press Button 1
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 1
   Z-Wave                          sent "Kitchen Light" off
   Z-Wave                          received "Stair Controller" scene 1
   Z-Wave                          received "Stair Controller" scene 1
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave                          received "Stair Controller" scene 1
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 01 00 9A
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 1
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Trigger                         Stair Scenes: Press Button 5
   Trigger                         Stair Scenes: Press Button 1
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 1
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 08 4C 04 2B 01 01 00 9A
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 1
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Trigger                         Stair Scenes: Press Button 5
   Trigger                         Stair Scenes: Press Button 1
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 1
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 00 4C 04 2B 01 01 00 92
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 1
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Trigger                         Stair Scenes: Press Button 5
   Trigger                         Stair Scenes: Press Button 1
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 1
   Z-Wave                          sent "Kitchen Light" on
   Z-Wave                          received "Stair Controller" scene 1
   Z-Wave Scene Controller Debug   -----
   Z-Wave Scene Controller Debug   Basic Scene Command received:
   Z-Wave Scene Controller Debug   Raw command: 01 0A 00 04 00 4C 04 2B 01 01 00 92
   Z-Wave Scene Controller Debug   Node:      76
   Z-Wave Scene Controller Debug   NodeID:      76
   Z-Wave Scene Controller Debug   ActionRaw: 1
   Z-Wave Scene Controller Debug   Button:    1
   Z-Wave Scene Controller Debug   ActionID:  1
   Z-Wave Scene Controller Debug   Action:    Click
   Z-Wave Scene Controller Debug   -----
   Trigger                         Stair Scenes: Press Button 5
   Trigger                         Stair Scenes: Press Button 1
   Z-Wave Scene Controller Debug   Updating device Stair Scenes with button 1
   Z-Wave                          sent "Kitchen Light" off
   Z-Wave                          sent "Kitchen Light" on
   Z-Wave                          sent "Kitchen Light" off
   Z-Wave                          sent "Kitchen Light" on
   Z-Wave                          sent "Kitchen Light" off
   Z-Wave                          sent "Kitchen Light" on
   Z-Wave                          sent "Kitchen Light" off
   Z-Wave                          sent "Kitchen Light" on

Posted on
Sun Feb 18, 2018 5:06 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Traceback on invalid index for actionMap

Ah, I’m working with someone on Levitron on another thread.

I’ve just finished a busy 3 months so should be back to Indigo in a couple of weeks.


Sent from my iPhone using Tapatalk Pro

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest