I've been tinkering with ESP8266 for a little while and was blissfully unaware of ESPEasy until quite recently!? Image my joy when I turned up here!
I don't really have a current project aim at the moment, just tryng understand what ESPEasy is and can do. I think I've got a handle on the basics for everything except Rules. In my test setup I've got a BME280, BH1750 and Analog input (measuring voltage output from a solar cell and battery charger), all logging to ThingSpeak every 30 minutes. Also a couple of outputs driving LEDs.
I've writen a few rules to handle some analogue and digital inputs and outputs but I have a few questions:
1. What the difference/benefits of New v Old rules engine? I've currently got Old Engine ticked.
2. I've used examples of the ubiquitous watering timer to understand timer activation. I'm trying to use %sunrise%, I've set my location and the system variable is correctly calculated when I check. However, the rule is triggered at midnight when I check the logs. Timed triggers work as expected. I've tried this on a D1 mini and ESP-01 and I get the same results.
Here's my test code
Code: Select all
on System#Boot do
GPIO 0,1
endon
on Clock#Time=%sunrise+1h% do // 1 hour after sunrise...
GPIO 0,0 // turn on relay
TimerSet,1,600 // wait for 10 minutes
endon
on Rules#Timer=1 do // When the time runs out
GPIO 0,1 // turn off relay
endon
on Clock#Time=ALL,13:30 do // Give the plants some lunch...
GPIO 0,0 // turn on relay
TimerSet,2,600 // wait for 10 minutes
endon
on Rules#Timer=2 do // When the time runs out
GPIO 0,1 // turn off relay
endon
Chris