1
VoxCommando Basics and Core Features / Payloads with Alexa
« on: February 18, 2017, 10:49:36 AM »
Hi,
I am getting an event payload{1} back from the echo Dot which contains 'Turn the Kitchen Lights On'..
I now want to extract the room part and the action... kitchen & On
I already have 2 payloads..rooms & scenes which I need to match to so that I can end up with a value for the room and scene to pass to my RakoBridge.
I cant do an if A contains B with A as {1} as I cant use my rooms payload in B.. or can I?
Thanks
I am getting an event payload{1} back from the echo Dot which contains 'Turn the Kitchen Lights On'..
I now want to extract the room part and the action... kitchen & On
I already have 2 payloads..rooms & scenes which I need to match to so that I can end up with a value for the room and scene to pass to my RakoBridge.
I cant do an if A contains B with A as {1} as I cant use my rooms payload in B.. or can I?
Thanks