I have a thermocouple reporting temperature. I'd like to publish the temperature to mqtt only when the temperarure value exceeds 100 deg.
I have set up a rule base as follows:
on Celcius#Corrected>100
Publish,EnzoStuff/%sysname%/,T=%eventvalue%
endon
but from the mqtt broker, I get:
T=%eventvalue%
Where am I going wrong?
Where is this documented in detail?
Thanks,
Brian H.
publish temperature
Moderators: grovkillen, Stuntteam, TD-er
Re: publish temperature
Hmm that's strange... I don't see yet why that %eventvalue% is not replaced. (except from the missing "do" in the first line)
Can you try this:
Can you try this:
Code: Select all
on Celcius#Corrected do
if %eventvalue% > 100
Publish,EnzoStuff/%sysname%/,T=%eventvalue%
endif
endon
Re: publish temperature
Thanks, that seems to work better.
Re: publish temperature
I think it may have been the missing "do"
Who is online
Users browsing this forum: No registered users and 116 guests