Search found 157 matches

by kimot
31 Mar 2018, 16:45
Forum: ESP Easy: Software
Topic: Set GPIO pin state when an HTTP request is made
Replies: 3
Views: 987

Re: Set GPIO pin state when an HTTP request is made

And how your webserver requested data from ESPeasy?

If it send some event command, then in this event set LED gpio on and set some some timer.
On this timer event then set LED gpio off.
Or send pulse to LED gpio.
by kimot
31 Mar 2018, 16:21
Forum: ESP Easy: Software
Topic: Multiple readings in 1 message via UDP > InfluxDB
Replies: 1
Views: 607

Re: Multiple readings in 1 message via UDP > InfluxDB

Create dummy variable dT
Calculate this dT via rules from both others sensors and send dT to Influx?
by kimot
29 Mar 2018, 21:12
Forum: ESP Easy: General Discussion
Topic: How many Nested EVENTS?
Replies: 16
Views: 3815

Re: How many Nested EVENTS?

Are you compile itself or using .bin file.
I see NESTED parameters define in source code, but you never know setting for your bin. file
by kimot
14 Mar 2018, 23:41
Forum: ESP Easy: General Discussion
Topic: Store values between reboots
Replies: 8
Views: 2460

Re: Store values between reboots

Dummy devices are persistent through reboot. So you must find solution only for power lost. First - backup battery. Second: Something like my solution for independent thermostat with Domoticz setting and logging only. I am booting into safe setting for heater. Setpoint and regulation rules are store...
by kimot
14 Mar 2018, 23:16
Forum: ESP Easy: Projects / Applications
Topic: GPIO not change state from rules
Replies: 5
Views: 1534

Re: GPIO not change state from rules

instead of: 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 You can use only one "sensor#Temperature" event, not two Use: on sensor#Temperature do if [sensor#Temp...
by kimot
06 Mar 2018, 21:16
Forum: ESP Easy: Software
Topic: Sonoff Touch - network problem
Replies: 5
Views: 1023

Re: Sonoff Touch - network problem

Look at this forum:
https://www.domoticz.com/forum/viewtopi ... 28&t=17352

User mayyam wrote:

"Try Rules. With Rules if Wifi will crash, Sonoff Touch will still work. Also, there is no latency when You switch it manually with Rules."
by kimot
06 Mar 2018, 20:49
Forum: ESP Easy: General Discussion
Topic: Wemos or NodeMCU
Replies: 5
Views: 1682

Re: Wemos or NodeMCU

Both board uses different voltage regulators.
When battery powered at deepsleep, nodeMCU regulator consumes more energy.
by kimot
06 Mar 2018, 20:34
Forum: ESP Easy: Software
Topic: Store Espeasy State
Replies: 8
Views: 2083

Re: Store Espeasy State

dzVents: -- Check the wiki at -- http://www.domoticz.com/wiki/%27dzVents%27:_next_generation_LUA_scripting return { -- 'active' controls if this entire script is considered or not active = true, -- set to false to disable this script -- trigger -- can be a combination: on = { timer = { -- timer trig...
by kimot
05 Mar 2018, 15:00
Forum: ESP Easy: Projects / Applications
Topic: Check a switch
Replies: 4
Views: 1262

Re: Check a switch

Maybe change switch type in device tab on ESPeasy.
by kimot
05 Mar 2018, 14:56
Forum: ESP Easy: Hardware
Topic: Sonoff Basic + wall push button with pilot light
Replies: 17
Views: 4417

Re: Sonoff Basic + wall push button with pilot light

Try some serial resistor with LED.
LED will light less, but log 1 on GPIO will be better defined.
Will be good measure voltage on GPIO and compare with specification for log1 on ESP2866.
by kimot
05 Mar 2018, 14:39
Forum: ESP Easy: Software
Topic: Store Espeasy State
Replies: 8
Views: 2083

Re: Store Espeasy State

I have got the same problem with my ESPeasy thermostat. Not only power loss, but randomly reboot. So I am sending correct values every minutes from Domoticz to ESPeasy through LUA scripts. If I was not lazy: I define user variable "ESP_003_BOOT" in Domoticz and set it to 0. When ESPeasy boots, I cha...
by kimot
05 Mar 2018, 14:16
Forum: ESP Easy: Software
Topic: Rules "OR" Statement
Replies: 6
Views: 1984

Re: Rules "OR" Statement

@getget You not reading very thoroughly Nested "if" is not allowed: https://www.letscontrolit.com/wiki/index.php/Tutorial_Rules " BUT, only simple if/else is possible - so nesting and Boolean logic are not supported. However there is a workaround for the limitation of not being able to nest. An "eve...
by kimot
05 Mar 2018, 14:04
Forum: ESP Easy: Software
Topic: Rules GPIO state and toggle
Replies: 43
Views: 31389

Re: Rules GPIO state and toggle

Here is my solution to switch relay by push button, by event from another ESP ( sending command "lamp_change" ) or by command "lamp_on" or "lamp_off" from Domoticz on lamp_on do gpio,12,1 gpio,13,0 endon on lamp_off do gpio,12,0 gpio,13,1 endon on lamp_change do if [rele#Switch]=1 event,lamp_off Sen...
by kimot
28 Feb 2018, 23:46
Forum: ESP Easy: Projects / Applications
Topic: ESP Easy with disabled wifi (battery and deep sleep)
Replies: 4
Views: 1441

Re: ESP Easy with disabled wifi (battery and deep sleep)

55 days not with 1 minute interval, but 5 minute DeepSleep interval...

"hodnota 300000000 je právě zmíněnných 300s (5minut), po které bude ESP8266 v Dsleep módu."

I speak czech too :o)

So with your 15 min interval it will be theoretically cca 3x50 days
by kimot
28 Feb 2018, 23:32
Forum: ESP Easy: Hardware
Topic: Sonoff Basic + wall push button with pilot light
Replies: 17
Views: 4417

Re: Sonoff Basic + wall push button with pilot light

If led lights, when connected directly to gpio, it means, that current flow through internal pullup is enough for this.
I think, you can use it this way - sonoff will read 1 when switch not pressed and 0 for pressed switch ( and LED will switch off for this moment )
by kimot
28 Feb 2018, 23:22
Forum: ESP Easy: Software
Topic: Release/Stop Driving Servo?
Replies: 20
Views: 4906

Re: Release/Stop Driving Servo?

Simply power servo through transistor driven by another gpio pin and switch power off, when servo is not driven to move.
But servo can move under some force then, because it is not held in its position by motor force.
by kimot
26 Feb 2018, 15:17
Forum: ESP Easy: Hardware
Topic: Sonoff Basic + wall push button with pilot light
Replies: 17
Views: 4417

Re: Sonoff Basic + wall push button with pilot light

I think you cannot use it this simply way = modify LED circuit and connect switch contacts to sonoff Color LEDs need 2.5 - 3.5V and sonoff GPIO is 3.3V I can imagine this circuit: +3.3V ----- R1 ------ R2 -------- LED ---------- GND GPIO connect between R1 and R2. R1 + R2 must be that value, to limi...
by kimot
26 Feb 2018, 14:37
Forum: ESP Easy: Software
Topic: rules sending data
Replies: 14
Views: 4676

Re: rules sending data

Maybe his Domoticz is password protected.
SendToHTTP cannot handle it, I think.
by kimot
25 Feb 2018, 14:31
Forum: ESP Easy: Hardware
Topic: Sonoff Basic + wall push button with pilot light
Replies: 17
Views: 4417

Re: Sonoff Basic + wall push button with pilot light

It is LED with circuit to allow 230 V.
Try bypass this circuit or change by normal LED
https://www.shopelektro.cz/vypinace-a-z ... e-led-lamp
by kimot
25 Feb 2018, 13:45
Forum: ESP Easy: Software
Topic: rules sending data
Replies: 14
Views: 4676

Re: rules sending data

I am not tested it, but I recommend:

Create dummy device in ESPeasy, mark "Send to Controller" with correct IDX.

And by rules, copy received value from serial port to this dummy device.
ESPEasy send mechanism then sends this value to Domoticz.
by kimot
23 Feb 2018, 22:44
Forum: ESP Easy: Hardware
Topic: Sonoff basic with wall switch
Replies: 23
Views: 6598

Re: Sonoff basic with wall switch

Or enable internal pullup on SW01 device tab.
by kimot
19 Feb 2018, 20:04
Forum: ESP Easy: Hardware
Topic: Sonoff basic with wall switch
Replies: 23
Views: 6598

Re: Sonoff basic with wall switch

You must set correct switch mode in ESPeasy. "Switch Button Type: Normal Switch or Push Button It depends on your mechanical switch type. If you have got push button, select Push Button and then each press of switch changes relay state. If You have got ON/OFF switch, select normal switch and then ea...
by kimot
19 Feb 2018, 20:01
Forum: ESP Easy: Hardware
Topic: Sonoff basic with wall switch
Replies: 23
Views: 6598

Re: Sonoff basic with wall switch

n
by kimot
16 Feb 2018, 22:50
Forum: ESP Easy: Hardware
Topic: Sonoff basic with wall switch
Replies: 23
Views: 6598

Re: Sonoff basic with wall switch

You must write some "Rules" to ESPeasy. Something like this: on lamp_on do gpio,12,1 gpio,13,0 endon on lamp_off do gpio,12,0 gpio,13,1 endon on lamp_change do if [rele#Switch]=1 event,lamp_off SendToHTTP 192.168.1.253,8080,/json.htm?type=command¶m=switchlight&idx=19&switchcmd=Off else event,lam...
by kimot
12 Feb 2018, 22:45
Forum: ESP Easy: Software
Topic: Read switch state from json/domoticz
Replies: 7
Views: 2637

Re: Read switch state from json/domoticz

Define user variable in Domoticz and set it to 0. When your ESPEasy wakeups, set this variable to 1 ( Through JSON API call - /json.htm?type=command¶m=updateuservariable&vname=USERVARIABLENAME&vtype=USERVARIABLETYPE &vvalue=USERVARIABLEVALUE ) In Domoticz make script, which when this variable is...
by kimot
12 Feb 2018, 22:20
Forum: ESP Easy: Projects / Applications
Topic: Mistake with the rules?
Replies: 6
Views: 1508

Re: Mistake with the rules?

And what about "Internal PullUp" ?

Similar device here:
https://www.letscontrolit.com/wiki/inde ... noff_Touch
by kimot
29 Jan 2018, 22:51
Forum: ESP Easy: Projects / Applications
Topic: Read button state from deep sleep
Replies: 10
Views: 2934

Re: Read button state from deep sleep

I believe to datasheet.
Without LDA, USB and some settings ....

https://tinker.yeoman.com.au/2016/05/29 ... revisited/
by kimot
29 Jan 2018, 15:21
Forum: ESP Easy: Projects / Applications
Topic: Read button state from deep sleep
Replies: 10
Views: 2934

Re: Read button state from deep sleep

kimot wrote:
26 Jan 2018, 21:22
@tuxmartin
My current idea is use Arduino pro mini at 8MHz for connect power to esp8266 every 4 hours or when button pushed.
Arduino need only 23uA:
But 23uA for arduino is more than 20uA with only ESP2866 in deep sleep.
So only benefit is wakeup not cca per one hour but per 4 hours.
by kimot
26 Jan 2018, 21:22
Forum: ESP Easy: Projects / Applications
Topic: Read button state from deep sleep
Replies: 10
Views: 2934

Re: Read button state from deep sleep

@tuxmartin

Look at my link in this thread:
viewtopic.php?f=2&t=3717&p=21358#p21358
by kimot
25 Jan 2018, 10:42
Forum: ESP Easy: Projects / Applications
Topic: Use Modul to set Voltage to Ports
Replies: 5
Views: 1246

Re: Use Modul to set Voltage to Ports

If you have got enough free gpios, you can simply use something like this:
https://makezine.com/2011/02/15/dac/

With your 2 pins you get only 4 levels, with 3 pins 8 etc.
by kimot
25 Jan 2018, 10:31
Forum: ESP Easy: Projects / Applications
Topic: long press without knowing the begin state (can be eather 1 or 0)
Replies: 5
Views: 1247

Re: long press without knowing the begin state (can be eather 1 or 0)

Only my idea for detection "quick double click". Using dummy variable. On click event add 1 to this variable and set tImer to 1s On timer event check, if variable contains 1 = single click or 2 = double click. Do your needed action and reset variable again to 0. But you must check if it is not too q...
by kimot
25 Jan 2018, 10:11
Forum: ESP Easy: Projects / Applications
Topic: Control LED strip by PIR sensor (with timer function?)
Replies: 4
Views: 2506

Re: Control LED strip by PIR sensor (with timer function?)

Why using Domoticz fot this task? Simply use rules on your ESPeasy. It works then without Domoticz. If PIR sensor triggers, set gpio pin for your LEDs on and set Timer1 to 120sec. And On Timer1 event set gpio pin for your LEDs off. Or if your PIR and LEDs are on different ESPEasys, send command dire...
by kimot
25 Jan 2018, 09:53
Forum: ESP Easy: Projects / Applications
Topic: Read button state from deep sleep
Replies: 10
Views: 2934

Re: Read button state from deep sleep

I think that better way then using deepsleep is completely battery off state. When someone press button, it will power up ESP, on "on System#Boot do" hold power through gpio with transistor or relay, send event and then, after some time switch ESP itself off. You can run years with one battery set. ...
by kimot
21 Jan 2018, 15:03
Forum: ESP Easy: Software
Topic: Own idx, rules and domoticz
Replies: 51
Views: 11654

Re: Own idx, rules and domoticz

And what about to tray do not use "dot" in variable names?
Instead of PMS5003#pm1.0 use PMS5003#pm1_0

I do not see anything else, what can make problems.
But I am not with my ESPeasys to tray now.
by kimot
21 Jan 2018, 14:44
Forum: ESP Easy: Projects / Applications
Topic: counting mAh
Replies: 3
Views: 1083

Re: counting mAh

Maybe I do not understand what you exactly wants. But for my perspective there is no problem. For each battery you need only one variable - energy sum ( and each of 12 tasks can store 4 of this variables ). I think one second interval is too short for ESPeasy. I suggest 10s. With rules measure mA ev...
by kimot
21 Jan 2018, 14:06
Forum: ESP Easy: General Discussion
Topic: ESP MEGA - Pulse Counter
Replies: 14
Views: 6653

Re: ESP MEGA - Pulse Counter

He has 1600 imp per kwh

1/1600 = 0,000625 It is 0,62 you can see - last number 5 is not visible in formula :o)
by kimot
07 Jan 2018, 23:03
Forum: ESP Easy: Software
Topic: Esp easy update temperature to domoticz generate a reboot
Replies: 6
Views: 1706

Re: Esp easy update temperature to domoticz generate a reboot

I have some nodes with DS18b20 too. They reboots randomly, but I think, that it is my power distribution problem. Now I see, I am not alone. I download dev13_normal into one node and it works more then 3 days without reboot. Others, with dev12, reboots after each couple of hours. It seems, that dev1...
by kimot
10 Dec 2017, 20:31
Forum: ESP Easy: General Discussion
Topic: Espeasy watchdog
Replies: 6
Views: 3536

Re: Espeasy watchdog

adrianmihalko wants check connection with Domoticz. So he can send commands from Domoticz in certain interval - for example every 1 minute. Instead of command "?cmd=GPIO,14,0 and xy/control?cmd=GPIO,14,1" he will send for example " ?cmd=RELAY_OFF and xy/control?cmd=RELAY_ON" On ESPeasy then rules: o...
by kimot
07 Dec 2017, 21:53
Forum: ESP Easy: General Discussion
Topic: EspEasy,relay recovery the last state after power failure
Replies: 5
Views: 2041

Re: EspEasy,relay recovery the last state after power failure

Or you can periodically send state of relays from Domoticz to ESPeasy with LUA scripts - for every minutes for example. Then max. 1 minute after reboot relays will obtain its correct state. Or when booting ESP, send through rules JSON command to Domoticz ( setting variable or dummy switch "ESP_is_bo...
by kimot
05 Dec 2017, 23:44
Forum: ESP Easy: Projects / Applications
Topic: Off Topic: is there something like espeasy for arduino with ethernet?
Replies: 5
Views: 1721

Re: Off Topic: is there something like espeasy for arduino with ethernet?

karl222 wrote:
24 Oct 2017, 11:44
In general i would prefere smaller hardware...

NanoEasy ?
by kimot
05 Dec 2017, 16:34
Forum: ESP Easy: Hardware
Topic: HC-SR04+ and wemos d1 mini pro
Replies: 45
Views: 10231

Re: HC-SR04+ and wemos d1 mini pro

Please explain what fried several ESP8266 on trying 5V feed here. Talking to someone who talked to someone is no valid explanation for that. And datasheet is not valid information? But better looking for graphs someone measured? Look again at entire text and graphs: https://ba0sh1.com/blog/2016/08/...
by kimot
05 Dec 2017, 16:26
Forum: ESP Easy: Projects / Applications
Topic: water leak sensor
Replies: 29
Views: 8446

Re: water leak sensor

He do not use deep sleep because high consumption 20 mikroAmp and wake up interval max 74 minutes. His solution uses timer to wake up possibility every max 7 200 seconds ( not wake up really - switch on ESP and through sw action switch off then ) or through external event. Consumption 1 mikroAmp. Wi...
by kimot
05 Dec 2017, 11:45
Forum: ESP Easy: Hardware
Topic: HC-SR04+ and wemos d1 mini pro
Replies: 45
Views: 10231

Re: HC-SR04+ and wemos d1 mini pro

https://ba0sh1.com/blog/2016/08/03/is-e ... -tolerant/

Page 17 here
https://cdn-shop.adafruit.com/product-f ... N_v4.3.pdf

And I saw some presentation about ESP2866 and spokesman said he talked with director of Espressif about this.
by kimot
05 Dec 2017, 08:49
Forum: ESP Easy: Hardware
Topic: HC-SR04+ and wemos d1 mini pro
Replies: 45
Views: 10231

Re: HC-SR04+ and wemos d1 mini pro

"Espressif CEO Mr Teo Swee Ann commented that “i can reply officially here: it is 5V tolerant at the IO. while the supply voltage is at 3.3V.” Page 17 of ESP8266 Datasheet it is mentioned “All digital IO pins are protected from over-voltage” ( 6V ) Of course some serial safety resistors are always v...
by kimot
03 Dec 2017, 23:37
Forum: ESP Easy: Projects / Applications
Topic: water leak sensor
Replies: 29
Views: 8446

Re: water leak sensor

But do not forgot, that if you wake up your sensor only when water leak, you will never know, if your sensor is still alive after some time. Better way is wake up sensor periodically and send some data to controller ( with battery voltage for example ). And if controller do not receive any data for ...
by kimot
03 Dec 2017, 23:03
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 4421

Re: Problems with R2.0-dev12

GPIO12 rele1 output - task2 GPIO16 rele2 output - task4 GPIO13 push1 input - task1 button to ground with pull up ( to change state of rele1 ) GPIO14 push2 input - task3 button to ground with pull up ( to change state of rele2 ) Pull up means, that there are internal resistor to +3.3V . So logical 1 ...
by kimot
03 Dec 2017, 21:49
Forum: ESP Easy: Hardware
Topic: HC-SR04+ and wemos d1 mini pro
Replies: 45
Views: 10231

Re: HC-SR04+ and wemos d1 mini pro

ESP2866 GPIOs are 5V tolerant.
Resistor divider not needed.
by kimot
03 Dec 2017, 21:39
Forum: ESP Easy: Software
Topic: Problems with R2.0-dev12
Replies: 22
Views: 4421

Re: Problems with R2.0-dev12

vader, can you explain why we need this inputswitchstate command please? I see, there are pull up resistors on inputs, so they hold 1( high) state all the time. Except, when switch is pushed. So why set it to 1 by sw command. Thank you very much. PS By the way. Where we can find list and description...