Rules and Global Sync
Posted: 28 Aug 2016, 14:22
Hi,
Can someone please point out what I'm missing when it comes to understanding rules, I'm using global Sync to receive a DHT temperature reading from another ESP Easy Device and can see the value arriving on this device running the rule in the log i.e EVENT: DHT#Temperature=21.50
All units are running R120
so why when i use a rule like
on DHT#Temperature do
if [DHT#Temperature] < 22.00 gpio,0,0
endif
endon
which i hoped would set GPIO 0 to be 0 when the temperature is less than 22.00 degs ? There is an LED attached to GPIO 0 which when low should light the Led, but there's no in state.
Is it simply me not getting the Syntax correct ?
Thanks in advance
Can someone please point out what I'm missing when it comes to understanding rules, I'm using global Sync to receive a DHT temperature reading from another ESP Easy Device and can see the value arriving on this device running the rule in the log i.e EVENT: DHT#Temperature=21.50
All units are running R120
so why when i use a rule like
on DHT#Temperature do
if [DHT#Temperature] < 22.00 gpio,0,0
endif
endon
which i hoped would set GPIO 0 to be 0 when the temperature is less than 22.00 degs ? There is an LED attached to GPIO 0 which when low should light the Led, but there's no in state.
Is it simply me not getting the Syntax correct ?
Thanks in advance