This is a great tutorial for me taking my first steps on ESPEasy. Through your examples, I am now much more comfortable. Many thanks and congratulations for your attention to detail. You have understood what a beginner expects from such a video.
Excellent level of detail. For me, you cleared up a lot of questions about ESPEasy. You have a good understanding of what someone new to a concept needs to know. Keep up the good work.
Because of hours of head scratching and reflashing different firmware versions, what folks need to know is that rules menu is only available AFTER activation in the tools/advanced menus.
Hi!, thanks for the enlightening video; but I can't figure out 2 things: 1st I want to make an action if the following criteria is met: 1. Current time must be between 10am and 2pm 2. No input from my PIR has been detected for the last 60 mins 2nd What are the best practice to achieve this with espeasy please?
hello. i hve a 2 buttons. button1 and button 2. i want to make if button1 and button 2 = 0 , make gpio 12,0. if button 1 =0 and button 2 =1 dont make gpio12,1. how to make that ? thankss
Awesome tutorial again, thank you. At such case do you have to send buttonstate-changes via MQTT to OpenHab via commands set in the rules or doaes the device send it the regular way? Can you override a running rule by a command sent from OpenHab? Thx in advance.
Hi! I write the same code to my esp 12f to turn on light by clicking button (that without timer) and it works but led start to light after a few seconds (not as fast as in your video) and after release it also take few seconds. Do you know what a problem may be?
I don't know. The rules run on the ESP, there is no network communication involved, so it should be instant. Very strange, I have no idea what could be the reason behind that.
off topic Question.. is there a new way to upgrade espeasy? I was running ESPEasy_v2.0.0-dev7_normal_4096.bin and ESPEasy_v2.0.0-dev10_normal_4096.bin on all of my esp's. I tried to ESP_Easy_mega-20181106_normal_ESP8266_4096.bin after uploading the D1 mini's and the nodemuc's will not reboot I have to re flash them with a blank.bin then re flash them with the latest firmware for it to work.. any idea
Strange, I also had issues flashing the 4096 version even though my ESP has 4MB of flash. But when I flashed the 1024 version, it was OK. But otherwise no idea, sorry.
Again thanks, I will try that because my esp are hard to get too and when I flash iy will go off line until I connect a usb cable and reflash that way.. also, I tried the same thing with firmware 2018-11-06 and tried to upgrade with 2018-12-04 but it will not upgrade it will restart ok however, the build will not change to the newest upgrade instead will stay at the old version.. maybe I will try using the 1024
New questions..... I have a light switch I flashed with esp-easy and I will like to use the tx and the rx pin as gpio's they are gpio 1 and gpio 3... I notice in esp-easy when we go to Hardware, and Devices to select which gpio's to use, Gpio1 (D10) and gpio3 (D9) is grayed out and not selectable.. is there a way to connect something to gpio 1&3 the rx&tx pin to use them as an input the purpose is to use the RX and the TX pin to add a DHT22 temp sensor and a PIR (motion) sensor I have another light switch I flashed with tasmota and I can use the rx&tx as extra gpio's I like Tasmota for this option and tasmota has another great function whereby in the UI you can toggle and see each device status where esp-easy does not but only as a log and no interaction... Why Tasmota is not good for me is because the MQTT is not reliant whereby its always flickers and flash my light randomly its seem tasmota has a wifi-mqtt problem with is not stable for my need and reliability. however, esp-easy have been stable for me and this video has gave me some good understanding on rules because in my automation, I was using automation code to do what the rule are doing. If esp-easy can turn on those 2 gpio's I will be great full also have you made a new video on dummy devices, at the end of this video you said you might do a video on adding a sensor and show its value in a dummy device. the little you show about I can reproduce it but if their a video out there that already showed how to do it I like to see what else I might be missing.
RX, TX: this is a good question. I think it is possible to turn off the serial output somewhere in Advanced. Maybe after that gpio 1 and 3 will be available for other purposes. You can use dummy device to store values. One of my recent video is an ESP Easy based thermostat. There I used the dummy device to hold the set temperature which is than use to control the relay output.
Yeah I have been on google for a while now trying to see if I can turn on the tx and rx in espeasy but have not fine anything as yet under hard where on GPIO boot states gpio 1md 3 not lested
Hi am not too clear on the rules ... can you help me out? task 1, I have a wifi task 2, is name "relay" on gpio-12 task 3, is name "button" on gpio-13 I am trying to have it do when button (gpio-13) is press to toggle or switch the relay on gpio-12 to on or off can you help me out? I tried every example and it did not work .. I thought I come to you tube to ask someone...
What is wrong with me example in the video? I did the same with the push button on the Sonoff Basic. The rule was like this: on button#state do if [button#state]=0 gpio,12,0 else gpio,12,1 endif endon Just make sure you name the device "button" and the value (bottom of the screen) "state". Than it should work. (I think these names are case sensitive).
Thank you so much for the pointers.... looking at the logs I see I needed to change it like this...and its turning on and off.. its working great in my home automatons on button#Switch do if [button#Switch]=0.00 gpio,12,0 else gpio,12,1 endif endon just learning to do this ..., is it possible to add a timer for 60 sec base on if [button#Switch]=0.00 whereby every time [motion#Switch]=0.00 is post it will restart the timer and start a new time? and base on a set time like 1900 to 0630.. the reasoning behind this is to have the light turn on via motion sensor I can do this by automation however, I notice adding rules is better than doing an automation because if my mqtt is down, the light switch does not function but now with this rule, the light switch not functions if I stop the mqtt broker.
@@roystervi Check the Off-on-off cycle in my example. Basically, in the above flow you change the gpio,12,1 (or 0 depending on your type of relay) to timerSet,1,5 (where 5 is for 5 seconds). And the time code is like this: on Rules#Timer=1 do gpio,12,10 endon And check my "Time check at startup" example how to check the time.
At a lower level than noob when I see that endon actually means off where is the easy part. Why not say off. Code always seems the opposite of logical to me.
I see what you mean. The code block starts with "on" which is like saying if this happens. "endon" just means that with this command you end the "on" block that you started earlier. As you said you need the mindset to understand this :)
Sir I have done everything according your video but its not working the way it should... on every click in the esp page my relay is blinking once and the value in the "Values" column is getting changed on sonoff button press... just no effect on the relay
Sorry, I have gone through many different scenarios in this video, which one you are trying to replicate? What do you mean the relay is blinking when you click the ESP page? The configuration page? What are you doing there? The relay turns on, or the LED is blinking?
Let me explain.... So i have a bulb connected on the output of sonoff just like you have connected.... Now whenever i click on one of the tabs or the submit button or the cancel button my lamp goes off for a second (rest of the time it is in the switched on mode).... And i have tried every scenario from the video.. None of them is working.... Only the first one worked for a few minutes.... But then nothing is working again
I am sorry but I have no idea. I am not aware that any other setting on the Sonoff would make the rule to hang up. I advise to open an account on the ESP Easy forum and try getting some help there.
BTW, do you know the way of smooth led on (normally, I use PWM in cycle in Arduino IDE). Is it possible to do with Esp Easy? Is there milliseconds timer ?
+Посылка из Китая Yes, instead of gpio you can use the pwm command. Parameters are the pin and the duty cycle. In the newest version there is also a third fade parameter. Please google it, I don't remember the settings from the top of my head.
This is a great tutorial for me taking my first steps on ESPEasy. Through your examples, I am now much more comfortable. Many thanks and congratulations for your attention to detail. You have understood what a beginner expects from such a video.
Excellent level of detail. For me, you cleared up a lot of questions about ESPEasy. You have a good understanding of what someone new to a concept needs to know. Keep up the good work.
Thank you so much for very clear and clearance introduction to Rules in ESP Easy!
Great video, thanks for the info I have been struggling for ages now things are so much clearer.
Many thanks for the good tutorial. It was very informative.
Thank you very much, iT is hard to find video's About learning ESP Easy so i am happy i found yours. :)
Thanks for explaing the Rules etc. it helped me to some things I wasn't able to do before :-)
Because of hours of head scratching and reflashing different firmware versions, what folks need to know is that rules menu is only available AFTER activation in the tools/advanced menus.
Great video! Thank you very much. Thanks to this video, I realized a lot!
Very good video, nice and clear. Thanks!
Indeed, clears up a lot questions. Thank you.
excellent guide, thank you! :)
Köszönöm!
Remek videó lett. Csak így tovább!
Great video I learn a lot in one video ...
Good video!!Thx!
Thanks. Very good stuff
Hi!, thanks for the enlightening video; but I can't figure out 2 things:
1st
I want to make an action if the following criteria is met:
1. Current time must be between 10am and 2pm
2. No input from my PIR has been detected for the last 60 mins
2nd
What are the best practice to achieve this with espeasy please?
hello. i hve a 2 buttons. button1 and button 2. i want to make if button1 and button 2 = 0 , make gpio 12,0. if button 1 =0 and button 2 =1 dont make gpio12,1. how to make that ?
thankss
Szia,
Thingspeak-re küldés szabályokból nem csinálsz hasonló videót? :)
Awesome tutorial again, thank you.
At such case do you have to send buttonstate-changes via MQTT to OpenHab via commands set in the rules or doaes the device send it the regular way?
Can you override a running rule by a command sent from OpenHab?
Thx in advance.
h4z4rd42 There is a send checkbox in the settings screen which turns on the MQTT publish of the values. No rules are required for that.
Awesome!
Hi!
I write the same code to my esp 12f to turn on light by clicking button (that without timer) and it works but led start to light after a few seconds (not as fast as in your video) and after release it also take few seconds. Do you know what a problem may be?
I don't know. The rules run on the ESP, there is no network communication involved, so it should be instant. Very strange, I have no idea what could be the reason behind that.
off topic Question.. is there a new way to upgrade espeasy?
I was running ESPEasy_v2.0.0-dev7_normal_4096.bin
and
ESPEasy_v2.0.0-dev10_normal_4096.bin on all of my esp's.
I tried to ESP_Easy_mega-20181106_normal_ESP8266_4096.bin
after uploading the D1 mini's and the nodemuc's will not reboot
I have to re flash them with a blank.bin then re flash them with the latest firmware for it to work..
any idea
Strange, I also had issues flashing the 4096 version even though my ESP has 4MB of flash. But when I flashed the 1024 version, it was OK. But otherwise no idea, sorry.
Again thanks, I will try that because my esp are hard to get too and when I flash iy will go off line until I connect a usb cable and reflash that way..
also, I tried the same thing with firmware 2018-11-06 and tried to upgrade with 2018-12-04 but it will not upgrade it will restart ok however, the build will not change to the newest upgrade instead will stay at the old version..
maybe I will try using the 1024
New questions.....
I have a light switch I flashed with esp-easy and I will like to use the tx and the rx pin as gpio's
they are gpio 1 and gpio 3... I notice in esp-easy when we go to Hardware, and Devices to select which gpio's to use,
Gpio1 (D10) and gpio3 (D9) is grayed out and not selectable.. is there a way to connect something to gpio 1&3 the rx&tx pin to use them as an input
the purpose is to use the RX and the TX pin to add a DHT22 temp sensor and a PIR (motion) sensor
I have another light switch I flashed with tasmota and I can use the rx&tx as extra gpio's
I like Tasmota for this option and tasmota has another great function whereby in the UI you can
toggle and see each device status where esp-easy does not but only as a log and no interaction...
Why Tasmota is not good for me is because the MQTT is not reliant whereby its always flickers and flash my light randomly
its seem tasmota has a wifi-mqtt problem with is not stable for my need and reliability.
however, esp-easy have been stable for me and this video has gave me some good understanding on rules because in my automation, I was using automation code to do what the rule are doing.
If esp-easy can turn on those 2 gpio's I will be great full
also have you made a new video on dummy devices, at the end of this video you said you might do a video on adding a sensor and show its value in a dummy device.
the little you show about I can reproduce it but if their a video out there that already showed how to do it I like to see what else I might be missing.
RX, TX: this is a good question. I think it is possible to turn off the serial output somewhere in Advanced. Maybe after that gpio 1 and 3 will be available for other purposes.
You can use dummy device to store values. One of my recent video is an ESP Easy based thermostat. There I used the dummy device to hold the set temperature which is than use to control the relay output.
Yeah I have been on google for a while now trying to see if I can turn on the tx and rx in espeasy but have not fine anything as yet
under hard where on GPIO boot states
gpio 1md 3 not lested
Hi am not too clear on the rules ... can you help me out?
task 1, I have a wifi
task 2, is name "relay" on gpio-12
task 3, is name "button" on gpio-13
I am trying to have it do
when button (gpio-13) is press
to
toggle or switch the relay on gpio-12 to on or off
can you help me out?
I tried every example and it did not work .. I thought I come to you tube to ask someone...
What is wrong with me example in the video? I did the same with the push button on the Sonoff Basic. The rule was like this:
on button#state do
if [button#state]=0
gpio,12,0
else
gpio,12,1
endif
endon
Just make sure you name the device "button" and the value (bottom of the screen) "state". Than it should work. (I think these names are case sensitive).
Thank you so much for the pointers.... looking at the logs I see I needed to change it like this...and its turning on and off.. its working great in my home automatons
on button#Switch do
if [button#Switch]=0.00
gpio,12,0
else
gpio,12,1
endif
endon
just learning to do this ..., is it possible to add a timer for 60 sec base on if [button#Switch]=0.00 whereby every time [motion#Switch]=0.00 is post it will restart the timer and start a new time?
and base on a set time like 1900 to 0630.. the reasoning behind this is to have the light turn on via motion sensor
I can do this by automation however, I notice adding rules is better than doing an automation because if my
mqtt is down, the light switch does not function but now with this rule, the light switch not functions if I stop the mqtt broker.
@@roystervi Check the Off-on-off cycle in my example. Basically, in the above flow you change the gpio,12,1 (or 0 depending on your type of relay) to timerSet,1,5 (where 5 is for 5 seconds). And the time code is like this:
on Rules#Timer=1 do
gpio,12,10
endon
And check my "Time check at startup" example how to check the time.
At a lower level than noob when I see that endon actually means off where is the easy part. Why not say off. Code always seems the opposite of logical to me.
I see what you mean. The code block starts with "on" which is like saying if this happens. "endon" just means that with this command you end the "on" block that you started earlier. As you said you need the mindset to understand this :)
Feel the pain :)
Sir I have done everything according your video but its not working the way it should... on every click in the esp page my relay is blinking once and the value in the "Values" column is getting changed on sonoff button press... just no effect on the relay
Sorry, I have gone through many different scenarios in this video, which one you are trying to replicate? What do you mean the relay is blinking when you click the ESP page? The configuration page? What are you doing there? The relay turns on, or the LED is blinking?
Let me explain.... So i have a bulb connected on the output of sonoff just like you have connected.... Now whenever i click on one of the tabs or the submit button or the cancel button my lamp goes off for a second (rest of the time it is in the switched on mode).... And i have tried every scenario from the video.. None of them is working.... Only the first one worked for a few minutes.... But then nothing is working again
If possible can i have a whatsapp call or messenger call with you?
I am sorry but I have no idea. I am not aware that any other setting on the Sonoff would make the rule to hang up. I advise to open an account on the ESP Easy forum and try getting some help there.
Csongor Varga sure will do that... Thanks for instant help
BTW, do you know the way of smooth led on (normally, I use PWM in cycle in Arduino IDE). Is it possible to do with Esp Easy? Is there milliseconds timer ?
+Посылка из Китая Yes, instead of gpio you can use the pwm command. Parameters are the pin and the duty cycle. In the newest version there is also a third fade parameter. Please google it, I don't remember the settings from the top of my head.
Seems, fade parameter is deprecated www.letscontrolit.com/wiki/index.php/PWM_GPIO
bla bla bla(