Rule <action> statement, to read and publish device value?
Posted: 31 Mar 2023, 22:43
Hi,
Ok so, I have a single "Environment - DS18b20" device named 'Ambient' with a value called "Temperature".
What <action> statement can I put in a rule, to read and publish the Temperature value when the rule event executes?
I am aware that I can create a rule trigger event like:
To trigger an event at a specific time but I seem to be lacking knowledge on how to format the subsequent <action> statement, to read and publish the Temperature value prevailing at that moment.
will publish the Temperature value based on each polling interval, but I want the temperature to be read and published triggered by my rule event.
Is this possible? Assistance / advice please.
Thanks,
Brian H.
Ok so, I have a single "Environment - DS18b20" device named 'Ambient' with a value called "Temperature".
What <action> statement can I put in a rule, to read and publish the Temperature value when the rule event executes?
I am aware that I can create a rule trigger event like:
Code: Select all
on Clock#Time=All,**:30 do //will run half past every hour
Code: Select all
on Ambient#Temperature do
Publish,UxStuff/%sysname%/,"%lcltime%, %eventvalue%,C, Htub"
endon
Is this possible? Assistance / advice please.
Thanks,
Brian H.