question

Alba María Mármol Romero avatar image
Alba María Mármol Romero asked

APL - AnimateItemCommand is not displayed in Echo Show

In my code I have several animations that are displayed correctly in the alexa simulator (test).

However, when I export the skill and start it on an amazon echo show 10 device, the animations are not displayed.

Does anyone know why?

I can say that I don't get any error in the execution and everything works perfectly in the simulator.

Here is a small piece of code I use.

item_command = ParallelCommand(
                commands = [
                    AnimateItemCommand(
                        component_id = ide,
                        delay = 200,
                        duration = 400,
                        repeat_count = 1,
                        repeat_mode ="reverse",
                        value = [{"property": prop,"to": 0.4}]
                    ),
                    SpeakItemCommand(
                        component_id=idtouch
                    )
                ]
            )
alexa skills kitecho showaplalexa simulator
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

David Kleinberg avatar image
David Kleinberg answered

Not sure why this works in one environment and not in another.

However, APL uses lowerCamelCase notation rather than under_scores. For instance, “component_id" should be "componentId". Same for repeatCount and repeatMode.

Hope this helps.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.