Search found 170 matches

by kimot
11 Dec 2018, 22:34
Forum: ESP Easy: Projects / Applications
Topic: Calculating kWh from Amps+Volts
Replies: 10
Views: 1863

Re: Calculating kWh from Amps+Volts

I think only solution with ESPeasy is set TImer to 5 or 10s interval. If Timer triggers, measure current, calculate Watts and then you have got energy in "W10s". Sum this 6 times and got Wmin. Then send to Domoticz. But you must do lot off calibration, because 10s timer is not exactly 10s and each i...
by kimot
16 Nov 2018, 20:18
Forum: ESP Easy: Hardware
Topic: Sonoff 4CH Pro R2 bricks after flashing
Replies: 5
Views: 2561

Re: Sonoff 4CH Pro R2 bricks after flashing

Try erase flash.

esptool.py --port COM3 erase_flash
by kimot
03 Nov 2018, 21:21
Forum: ESP Easy: Software
Topic: Rules do not work properly on new versions
Replies: 1
Views: 459

Rules do not work properly on new versions

Hi I am using ESPEsy for one year without any problems like floor heating thermostat. You can see it here: https://www.youtube.com/watch?v=1ef6tRinOQ4 Today I try upgrade one thermostat with newest ESPeasy "mega-20181101" My previous "stable" version was "v2.0.0-dev13" I have got two problems: First...
by kimot
19 Oct 2018, 20:26
Forum: ESP Easy: Projects / Applications
Topic: espeasy + domoticz to dimmer light
Replies: 7
Views: 2759

Re: espeasy + domoticz to dimmer light

ESPeasy to Domoticz: Use SendToHTTP using JSON API: Set a dimmable light to a certain level /json.htm?type=command¶m=switchlight&idx=99&switchcmd=Set%20Level&level=6 Some lights have 100 dim levels (like zwave and others), other hardware (kaku/lightwaverf) have other ranges like 16/32 Level shou...
by kimot
27 Aug 2018, 22:29
Forum: ESP Easy: Hardware
Topic: Remote control+monitor 3phase
Replies: 5
Views: 1474

Re: Remote control+monitor 3phase

And why measure current or power for heater? Heater has got constant resistance - so current and power is always constant with constant voltage. You only need to know, if heater is on or off and if you control heater by controller, you always know its state. And if you use independent heater built i...
by kimot
31 Jul 2018, 14:08
Forum: ESP Easy: General Discussion
Topic: Send timer value to Domoticz?
Replies: 10
Views: 2142

Re: Send timer value to Domoticz?

Create Timer like dummy device in ESPeasy and use command SendToHTTP in rules with JSON format for Domoticz. Example for switch and Power sending: SendToHTTP 192.168.1.253,8080,/json.htm?type=command¶m=switchlight&idx=26&switchcmd=On SendToHTTP 192.168.1.253,8080,/json.htm?type=command¶m=ude...
by kimot
25 Jul 2018, 23:11
Forum: ESP Easy: General Discussion
Topic: Send timer value to Domoticz?
Replies: 10
Views: 2142

Re: Send timer value to Domoticz?

Create for example user variable in Domoticz and send timer value in it. Then you can using this value by LUA or Blockly. /json.htm?type=command¶m=updateuservariable&vname=USERVARIABLENAME&vtype=USERVARIABLETYPE &vvalue=USERVARIABLEVALUE Remember to change: USERVARIABLENAME with the name of your...
by kimot
25 Jul 2018, 22:37
Forum: ESP Easy: Software
Topic: Flash ESPeasy from linux
Replies: 2
Views: 2371

Re: Flash ESPeasy from linux

https://diyprojects.io/esp-easy-flash- ... y-esp8266/

For example my command:

esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 32m 0x00000 ESPEasy_R120_4096.bin
by kimot
02 Apr 2018, 16:30
Forum: ESP Easy: Software
Topic: Set GPIO pin state when an HTTP request is made
Replies: 3
Views: 1116

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

Maybe call something like this: http://192.168.178.31/control?cmd=event,led_blink Before or after your http://192.168.178.31/json and write event "led_blink", which blinks led. Or send http://<espeasyip>/control?cmd=Pulse,14,1,500 where 14 is GPIO number and 500 are milisecond. https://www.letscontr...
by kimot
31 Mar 2018, 19:16
Forum: ESP Easy: General Discussion
Topic: Espeasy with momentary switches / impulse (latching) relay
Replies: 4
Views: 1593

Re: Espeasy with momentary switches / impulse (latching) relay

Button#value = 1 ??? I think, this is not possible. Use TaskValueSet And your rules are strange. event Button#value is called, when new value is assigned to Button#value and in this event you assign new value into it ...... circle Why not using gpio14 for testing and sending to Domoticz directly?
by kimot
31 Mar 2018, 17:57
Forum: ESP Easy: General Discussion
Topic: How many Nested EVENTS?
Replies: 16
Views: 4411

Re: How many Nested EVENTS?

So you must try how many nested is compiled.
I think three with my _dev13
by kimot
31 Mar 2018, 17:53
Forum: ESP Easy: General Discussion
Topic: Domoticz Switch + ESPEasy (E12) PWM Dimmer - How do I drive this solution?
Replies: 1
Views: 1905

Re: Domoticz Switch + ESPEasy (E12) PWM Dimmer - How do I drive this solution?

Use DzVents in Domoticz. Here is how I send Setpoint for example: local setpoint = domoticz.devices('Filip_Setpoint') local url= 'http://192.168.1.105/control?cmd=event,HeatSetpoint='..(setpoint.state)..'' print(url) domoticz.openURL(url) Look here for dimmer parameters: https://www.domoticz.com/wik...
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: 1116

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: 719

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: 4411

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: 2823

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: 1795

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: 1145

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: 1939

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: 2362

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: 1406

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: 5114

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: 2362

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: 2219

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: 34239

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: 1675

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: 5114

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: 5692

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: 5114

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: 5572

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: 5114

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: 5572

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: 7700

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: 7700

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: 7700

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: 7700

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: 3032

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: 1729

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: 3393

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: 3393

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: 3393

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: 1471

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: 1445

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: 3053

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: 3393

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: 13438

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: 1231

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...