Turn on and off a led with a button and a delay

Hello guys, I'm a newbie who's trying to turn on a led in UI using a button and then the led should turn off automatically using a delay node of 15 secs.
I have tried the node in the picture attached as a personal effort, but the led won't turn on. Can you please point out to me what i do wrong?

Welcome to the forum @Aymane

A Trigger node is the one for that. First make sure you can turn the led on and off though. Use Inject nodes to check that. Then you know what the message has to contain.

Many thanks Colin, it works! :smiley:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.