I use nodemcu 8266 and ESPEasy v2.0-20180312.
I've made a thermostat through the rules and everything works normally except for the change in gpio.
Code: Select all
on System#Boot do
// thermostat - default value at boot
TaskValueSet 2,1,19
endon
on UP#val do
// Button - Up setpoint
TaskValueSet 2,1,([thermostat#setpoint]+0.5)
if [thermostat#setpoint]>30
TaskValueSet 2,1,30
endif
endon
on DOWN#val do
// Button - down setpoint
TaskValueSet 2,1,([thermostat#setpoint]-0.5)
if [thermostat#setpoint]<15
TaskValueSet 2,1,15
endif
endon
on sensor#Temperature do
if [sensor#Temperature]>[thermostat#setpoint]
GPIO,16,1
endif
endon
on sensor#Temperature do
if [sensor#Temperature]<[thermostat#setpoint]
GPIO,16,0
endif
endon
The problem is that there are no changes in the gpio,16,1 and gpio,16,0 commands.
I mean the voltage on this pin remains 0 but if I run from the browser this command (http://192.168.6.100/control?cmd=GPIO,16,1) the change is done correctly.
I have tried previous versions and other gpio but again without success.
There is something wrong or something that escapes me ??
Thank you.