Hello everyone,
i`m newbie with esp modules.
I made some "projects" such as temperature readings on cental heating and light switching from node red and mqtt.
My new project is to make temeprature room reading.
I use esp 07, lcd 16x2 i2c, logic converter txs0108e, bme 280 (5V)...
Uploded version of espeasy is: espeasy mega 20181023 dev.
My problem is in want to make alarm if room temperature is exceed 30 degree.
When set temperature is exceeded alarm works but when temerature is below led bliks every 1s.
For better understanding i attached pictures below.
Thanks for your help.
Regards
Sam
Rule for led blink
Moderators: grovkillen, Stuntteam, TD-er
Rule for led blink
- Attachments
-
- povezava.png (1.01 MiB) Viewed 1928 times
-
- 4.jpg (439.72 KiB) Viewed 1928 times
-
- 3.jpg (347.78 KiB) Viewed 1928 times
-
- 2.jpg (227.12 KiB) Viewed 1928 times
-
- 1.jpg (235.41 KiB) Viewed 1928 times
Re: Rule for led blink
I think you can simplify it a bit like this:
See the parameters of longpulse: https://espeasy.readthedocs.io/en/lates ... ernal-gpio
Code: Select all
on senzor#Temperature do
if %eventvalue1% < 30
GPIO,16,0
if [int#1] = 0
// Variable #1 is set to 0, so we need to start the longpulse continously
let,1,1 // set variable #1 to 1
longpulse_ms,16,1,500,500,-1 // Continous blinking at 1 Hz (50% dutycycle)
endif
else
GPIO,16,1
let,1,0 // set variable #1 to 0
endif
endon
Re: Rule for led blink
That is quite an old release of ESPEasy, you'd want to upgrade to a more modern release, download the latest from here: https://github.com/letscontrolit/ESPEasy/releases
/Ton (PayPal.me)
Re: Rule for led blink
If it is indeed an ESP07 (not ESP07S) then I think it is not possible, as those are 512k flash units.
The longpulse_ms command wasn't present back then. (not sure about the longpulse command either)
The longpulse_ms command wasn't present back then. (not sure about the longpulse command either)
Re: Rule for led blink
Hello everyone,
i think i solve a problem. I upgrade on latest version of espeasy and import rule i attached and it works now.
Thanks for help.
Regards
Sam
i think i solve a problem. I upgrade on latest version of espeasy and import rule i attached and it works now.
Thanks for help.
Regards
Sam
Who is online
Users browsing this forum: No registered users and 13 guests