#Can scripting do clever stuff like arrays?

1 messages · Page 1 of 1 (latest)

slim plover
#

I use my alexa for doing timers for cooking, usually manually but recently i made a script for a specific meal which sends the commands silently to the alexa in the kitchen

Is it possible to do anything like loops and arrays?

Im fairly familiar with doing this in powershell, but im thinking something like

text box

Veg 10 mins
meat 20 mins
sauce 5 mins

then load that into an array and iterate down it

so that I just have one script but i can just full in text box and hit go

unless thre is a better way of doing this.

safe hearth
zinc hollow
midnight falcon
#

thinking this out, are these timers/alarms where you could set them all at once and have them fire at the appointed time/duration (equivalent to “Alexa, 10 minute veg timer”), or is it an immediate event (“Alexa, Simon says ‘Veg are done’”) and so time management would happen in HA

slim plover
# midnight falcon thinking this out, are these timers/alarms where you could set them all at once ...

I have something manual setup now, which is 5 Alexa command actions but I have to edit each one to be what I want for that meal.

What I’m trying to get is I have one text input and I type something like

10 veg
20 min meat
25 min sauce,

It would count there are 3 or just loop an array

So first pass is

“<array location 1> timer” second is <array location 2> timer an so on until original list loaded into array is exhausted.