
Forward action
I'm trying to use the forward action example script to do a http get request (for starting a Home assistant automation).
I have two buttons:
function handleBrainData(brainEvent) {
console.log('Brain Action', brainEvent);
if (brainEvent.action === 'launch' && brainEvent.recipe === 'Welterusten') {
console.log(' >>> Welterusten ');
}
if (brainEvent.action === 'launch' && brainEvent.recipe === 'Goedemorgen') {
console.log(' >>> Goedemorgen');
}
}
Reply
Like
Follow
1reply