I think I know what is the problem
@SvetlanaYour speaker code looks fine, it's the button that needs changing a little bit.
As far as I understand Actions will only run if the Trigger Component > Value has changed from previous one.
Basically, the first time you press the button and send the triggerEvent the state of that button will become ON.
Next time you press it it will try to execute the action but because it's already ON that means there was no change so the action ignores it.
What you need to do is to "reset" the button after it has been pressed. I mean not physically, you just need to tell ChipChop that the button is gone into an OFF state. It's a good practice anyway otherwise you will permanently see that button as being ON.
I would be careful not to use another triggerEvent straight away but maybe wait half a second, it's same thing as a debounce, you are practically blocking the button for a little bit before the next press.
Something like this
unsigned long buttonReset = 0;
int canReset = 0;
void loop(){
if(digitalRead(buttonPin, LOW){
......your code here
ChipChop.triggerEvent("button_1","ON");
buttonReset = millis();
canReset = 1;
}
//and then somewhere later
if(canReset == 1){
if(millis() - buttonReset > 500){
ChipChop.triggerEvent("button_1","OFF");
canReset = 0;
}
}
}
I think that should work