[noob question] esp8266 rules + analog read mq-2 senor
Posted: 27 Dec 2018, 21:46
Hi folks
Near 4 days ago i switched to espeasy from my own firmware for wemos d1 mini pro(esp8266).I read whole wiki page for rules which could be set on espeasy and still something work wrong in my opinion.
Please see where i am doing wrong things
I create device Analog input internal named it mq2 with values named value. In short mq2#value
I also create rule(s) to switch on/off relay connected to GPIO5
In log i see
As far i observe my relay it wont switch on even if mq2#value is greater than 100
Please tell how to create rule to frequently check for analog value and power on/off relay
Near 4 days ago i switched to espeasy from my own firmware for wemos d1 mini pro(esp8266).I read whole wiki page for rules which could be set on espeasy and still something work wrong in my opinion.
Please see where i am doing wrong things
I create device Analog input internal named it mq2 with values named value. In short mq2#value
I also create rule(s) to switch on/off relay connected to GPIO5
Code: Select all
on [mq2]#value>75 do
gpio,5,1
endon
on [mq2]#value<=75 do
gpio,5,0
endon
Code: Select all
1125701: ADC : Analog value: 63
1125704: EVENT: mq2#value=63.00
1125721: Domoticz: Sensortype: 1 idx: 64 values: 63
....
Please tell how to create rule to frequently check for analog value and power on/off relay