Activate output when alarm is initiated

Hi,
My problem is like that:
I have an sensor to measure for temperature and acts as an input tag and equipped with alarm function and a fan as a output tag. When the temperature reaches certain value, the alarm will be initiated and the output will be activated.
I am using viewON to configure my tags.
How can i activate my fan when alarm is initiated?
Is it just using “almstate” in the attribute filter in action command?

A post was merged into an existing topic: Activate output when alarm is initiated