Page 1 of 1
Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 3:40 pm
by TwitchCaptain
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.
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!
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 3:55 pm
by TwitchCaptain
I think I figured it out. haha, just have to follow all the steps.
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 3:57 pm
by TwitchCaptain
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
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 4:06 pm
by howartp
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
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 4:08 pm
by TwitchCaptain
This Leviton VRCS4 is quite the pain to work with. Even Indigo doesn't like it; lots of incomplete packets.
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 4:11 pm
by TwitchCaptain
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.
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 4:16 pm
by TwitchCaptain
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
Re: Traceback on invalid index for actionMap
Posted:
Sun Feb 18, 2018 5:06 pm
by howartp
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