Search found 73 matches

by leel1967l
20 Feb 2018, 10:02
Forum: ESP Easy: Projects / Applications
Topic: Writing custom rules and compile them
Replies: 21
Views: 16969

Re: Writing custom rules and compile them

Thanks I appreciate you looking at my case.
But is there anyway I can write my own rules in the code and then compile them?
by leel1967l
19 Feb 2018, 22:47
Forum: ESP Easy: Projects / Applications
Topic: Writing custom rules and compile them
Replies: 21
Views: 16969

Re: Writing custom rules and compile them

Hi TD-er, thanks for replying. My configuration: Using Wemos D1 mini - 4MB - V3.0.0 Firmware: Mega, v2.0-20180217 MQTT: OpenHab 2.1 All push buttons and relays defined in DEVICES as "Switch input - PCF8574". The situation is the following: I want to use two push button to activate two rela...
by leel1967l
19 Feb 2018, 16:36
Forum: ESP Easy: Projects / Applications
Topic: Writing custom rules and compile them
Replies: 21
Views: 16969

Writing custom rules and compile them

Hi, I have written several rules in espeasy. But some times the rules can take several seconds to be executed and this could be dangerous for some applications. (i.e. a garage door sensor to block the door if someone press an emergency stop button or if a photocell is engaged) I was wondering if it ...
by leel1967l
02 Feb 2018, 10:43
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

Re: Read state of a GPIO

I use the latest v2.0 found on Github. But you said that r147 was working ok, and that it started to cause problem when you updated to v2.0? Could you please make sure that the switch device for the relay is set to "switch" and not "dimmer". The update can cause problem with swi...
by leel1967l
02 Feb 2018, 00:51
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

Re: Read state of a GPIO

I use the switch device to monitor the relay state, have been for a year. No problem what so ever. Why wouldn't it work, it's only a high/low signal. Please give us all your settings and rules. You can (if you're on Windows) use my webdumper app to do that. Hi, which version of ESP Easy are you usi...
by leel1967l
01 Feb 2018, 23:11
Forum: ESP Easy: Software
Topic: EVENT call from MQTT
Replies: 6
Views: 4626

Re: EVENT call from MQTT

Topic: <unitname>/cmd Payload: event,remoteTimerControl=5 Hi, I can't understand the syntax. Tried this in Openhab, but it did not trigger any rule in ESPeasy: {mqtt=">[mymosquitto:/Sonoff_1/cmd/event:command:remoteTimerControl=5:0]"} Rule is (works with http call): on remoteTimerControl ...
by leel1967l
01 Feb 2018, 22:56
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

Re: Read state of a GPIO

There are lots of issues fixed since then, please test on a newer version. ok. You mean "mega-20180130" or "V2-20180130"? But for my curiosity, which version are you using? With R147 I was able to define an input switch connected to a relay and it was working. Moving to V2 it st...
by leel1967l
01 Feb 2018, 22:43
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

Re: Read state of a GPIO

I use the switch device to monitor the relay state, have been for a year. No problem what so ever. Why wouldn't it work, it's only a high/low signal. Please give us all your settings and rules. You can (if you're on Windows) use my webdumper app to do that. Which version of the firmware are you usi...
by leel1967l
01 Feb 2018, 22:42
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

Re: Read state of a GPIO

Which version of the firmware are you using?
I am on MEGA dev13
by leel1967l
01 Feb 2018, 22:18
Forum: ESP Easy: Software
Topic: [SOLVED] Read state of a GPIO
Replies: 11
Views: 11263

[SOLVED] Read state of a GPIO

Hi, I need to read the state of a GPIO (where I attached a relay) in order to print its status in the oled display. I tried everything, but couldn't find a solution. The only way I managed to get the value was defining the relay GPIO as an input switch but the unit crashes after a few on/off cycles....
by leel1967l
01 Feb 2018, 21:34
Forum: ESP Easy: Software
Topic: Rules GPIO state and toggle
Replies: 43
Views: 82466

Re: Rules GPIO state and toggle

Ok, found it. Define device one as Switch Input, Push Button Active Low, pullup on, GPIO 13. Name it Lightswitch. Name the value1 as value. Define device two as Switch Input, Normal Switch, pullup off, GPIO 12. Name it GPIO12. Name the value1 as value. Connect a push button from GPIO 13 to ground, ...
by leel1967l
01 Feb 2018, 15:01
Forum: ESP Easy: Software
Topic: EVENT call from MQTT
Replies: 6
Views: 4626

Re: EVENT call from MQTT

grovkillen wrote: 01 Feb 2018, 14:14 Topic:

Code: Select all

<unitname>/cmd
Payload:

Code: Select all

event,remoteTimerControl=5
will try tonight thanks
by leel1967l
01 Feb 2018, 11:31
Forum: ESP Easy: Software
Topic: EVENT call from MQTT
Replies: 6
Views: 4626

Re: EVENT call from MQTT

Wiki is your friend: https://www.letscontrolit.com/wiki/index.php/ESPEasy_Command_Reference Hi @grovkillen, I appreciate your help, but I had already checked that page and the tutorial page. I couldn't find an example of how to format the syntax of a MQTT request to call an EVENT. For a GPIO the sy...
by leel1967l
01 Feb 2018, 09:39
Forum: ESP Easy: Software
Topic: EVENT call from MQTT
Replies: 6
Views: 4626

EVENT call from MQTT

Hi, I am building my first project integrating ESPEASY and OPENHAB2. I would like to understand how I can send and event call from MQTT. In other words, I would like to trigger a rule from MQTT. I know how it can be done using http: http://<espeasyip>/control?cmd=event,remoteTimerControl=5 But I nee...
by leel1967l
06 Dec 2017, 11:07
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Hi vader, after several tests, I had to return to R147 as V2-dev12 is not stable with my boards (WEMOS MINI) and the push buttons rules controlling relays. With my rules, V2-dev12 keeps rebooting and hanging. Instead version R147 is absolutley stable and works perfectly. I am using V2-dev12 with SHT...
by leel1967l
01 Dec 2017, 22:57
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Hi vader, I just finished testing it and ... it WORKS PERFECTY as you said.

thanks a lot for your help!
by leel1967l
01 Dec 2017, 16:41
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

I wasn't aware of this rule sintax.

So in my configuration it would be:
.....
GPIO,16,1
inputswitchstate 1,1 (For push1 on task 1)
inputswitchstate 3,1 (For push2 on task 3)
endon
.....

Correct?
by leel1967l
01 Dec 2017, 16:30
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Hi,
You mean adding:

Code: Select all

gpio,13,1
gpio,14,1
or do I have to write textually:

Code: Select all

inputswitchstate 0,1
inputswitchstate 1,1
by leel1967l
01 Dec 2017, 10:57
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

ok. Will try and return.
thanks for your help.
by leel1967l
01 Dec 2017, 10:47
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Hi vader, the logic I want to achieve is to toggle the relay when I click a button. I might be wrong, but the way I understood is: a) the rule should check the relay status and change it for every button click. b) in order to refer to a relay in a rule I have to define in the device tab with a name ...
by leel1967l
01 Dec 2017, 09:34
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Another info: I tested also with ESPurnia compiling myself the firmware and everything works fine.
Only R2-dev12 has problems for me.

Do you see anything wrong in my config?
by leel1967l
30 Nov 2017, 21:29
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Re: Problems with R2.0-dev12

Yes of course. I forgot to mention but I erased the flash and manually reconfigured the unit with exactly as the R147 unit. Did it three times. Same result.
by leel1967l
30 Nov 2017, 18:38
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 13926

Problems with R2.0-dev12

Hi all, Here is my setup: ESP8266 (Wemos mini 4MB) + 2 relay board. With version R147 everything was working fine. Then I wanted to add the SHT30 temp module so I switched to R2.0 dev. 12. But using the same exact configuration (without the SHT30) the board reacts strangely in R2-dev12. It reboots r...