Page 1 of 2
ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 2:08
by Nadhyr
Hello,
First of all, please excuse me for my bad English.
Also, before posting anything, get my best wishes for 2017.
My problem is this:
I have an ESP8266 with ESP EASY, to increase my water consumption.
In the ESP, I can see my consumption in pulse counter mode, but I do not manage to make it appear on Domoticz.
I nevertheless created a sensor virutel, I indicated in the ESP the IDX of the meter in domoticz and yet nothing.
Can someone please help me?
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 7:04
by Toulon7559

A few more settings are required to get data transfer between your ESP and Domoticz.
Perhaps an open door, but in ESPEasy did you set the communication info matching the 'path' to Domoticz-computer?
[Look under the Config-tab for SSID, for WPA-key, for Controller info-lines and for the Optional Settings]
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 11:11
by Nadhyr
thanks for your informations.
Under ESP, i have this settings.
Name : nothing
Adminpass : nothing
SSID : my netword SSID (where ESP stay connect on local as wifi station, with 192.168.1.24)
WPA : my WPA Key
Domoticz HTTP
Server Ip : 192.168.1.26 (Domoticz Ip on my Humming Board)
Port : 8080
Delay : 60
*****
Optional
ESP IP / 192.168.1.24
under mask 255.255.255.0
Passerelle 192.168.1.254 ( internet box Ip adress )
**** in the devices
Simple COuntmeter
IDX = IDX that i find under domoticz after creating a virtual Dummy switch
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 11:55
by Toulon7559

Some next checks for
possibly missing/missplaced info.
In your latest message I see these last lines
Simple COuntmeter
IDX = IDX that i find under domoticz after creating a virtual Dummy switch
For measurement of water consumption the ESP-selection 'Simple COuntmeter' seems OK, but in last line I see "Dummy Switch".
To see a counter value in Domoticz also the Virtual Device should be Counter,
not Switch
Perhaps not essential, but easy for identification:
fill field 'Name' with some description for this ESP
Have you filled the following 2 fields under tab Config (for access to your Domoticz-computer)?
Controller User:
Controller Password:
Assume that ESP GW (=Gateway to which ESP is functionally connected) is same as 'passerelle'?
[My knowledge of technical french is not very good]
What is the content for ESP DNS? Same as ESP GW?
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 13:24
by Nadhyr
In domoticz :
to create my watermeter, i do that :
setup : hardware : name "WATERMETER" : type " Dummy (Does nothing, use for virtual switch only) : time out "disabled"
After that, i click on "Create virtual sensors" on the list : and "Counter" type.
After that, Domoticz tell me that the sensor was created.
On the section Devices, i could find it, with a green arrow.
I click on it, and it change on bleu.
Watermeter, IDX 5
On the section Utility, i have the counter, but for Electricity.
I change the type of counter by selcting Water.
On the ESP config, i tried to put my Name and password to acced at domoticz on http request, but nothing.
Do you think this may be an ESP problem?
I have enormous difficulties to have now access!
Last night, everything went well and now it's a disaster ...
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 16:07
by supagusti
Dear all,
I have pretty the same problem.
1. ESP Easy (V120)
I filled in
- IP of the Domoticz Server,
- port (8080)
- User and password (which was created before in Domoticz under Setup->More->Edit Users, gave Admin rights)
2. Domoticz Server
Under "Hardware" I've added a dummy device.
With "Create Virtual Sensors", I've added a current sensor -> the IDX, shown under "devices" is filled in in ESP Easy under "Devices" - "IDX/Variable"
For login of the Domoticz there is no user and password nor a login screen.
Nothing works -> for some reason if I use "Current" 6.400A are shown, but thats far away from my value - What am I missing?
Thanks in advance, BR
Thomas
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 20:18
by Nadhyr
Happy to view that i'm not the one one to have some difficulty to sync Domoticz and Esp.
For some time I can not even get my ESP on the network. I do not even have access to it.
Does anyone know how to factory reset an ESP.
I used the tool provided by the manufacturer of ESP, I have a wifi network ESP but I can not even access it and if I flash again with ESP Easy, it does not even work ..
Re: ESP8266 EspEasy link Domoticz
Posted: Saturday 31 December 2016 23:03
by NietGiftig
Nadhyr wrote:Happy to view that i'm not the one one to have some difficulty to sync Domoticz and Esp.
I personally would not be happy if others had problems ;-(
I think that most people managed to get the esp going, so it is not so widespread.
I have read a lot of these "problems" the past year, they mostly disappear after the user brings on a good power source. (try it with a powered hub, not the usb port of a computer)
A breadboard can also bring problems.
Did you read the wiki ?
http://www.letscontrolit.com/wiki/index.php/Power
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 2:37
by Nadhyr
Yes it is also the first track that I exploited because my esp is in a concrete look, plugged with a solar panel and a regulated 3.7 v LIPO.
The fall in temperature is certainly at the origin of my problems of access to my ESP.
However even plugged into usb port with an arduino Uno, my ESP remains unavailable.
Do you have a method for resetting them?
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 7:56
by Toulon7559

At the start of 2017 I wish you all a 'good connection' and success with all your plans!
Communication between ESP and Domoticz also depends on mutal distance between ESP and
Wifi-gateway.
[Perhaps sounds strange, but distance between ESP and Domoticz-computer is
not important.
Reason: the Domoticz-computer does not communicate with the ESP, but with the Wifi-gateway]
Walls etc. may block transmission/reception in an unexpected way.
The integrated antenna of a 'simple' ESP8266 is not very good, and therefore you may be (negatively) surprised how short distance can be bridged.

On the other hand, it is
sometimes surprising how far you can reach with such small antenna.
If you want to see how strong the Wifi-signal is as seen by the ESP, then look at the ESP at tab 'Main', the 3rd line "Wifi RSSI:"
Very general:
- a value of -40dB is excellent
- if a value < -90dB, then it may work, but "scratch your head", because you
may come close to the edge of coverage
An 'bare' ESP-configuration is small enough to move around:
if you do not get 'connection' (or very low signal) at the planned location of your ESP, then try to setup/operate your ESP very close to your Wifi-gateway.
If that works, then move out, until 'you hit the limit' (or are at the desired location).
If you want to position your ESP further away, then (for better Wifi-coverage) it may be effective to put a Wifi-repeater somewhere between the Wifi-gateway and the ESP-location.

I myself also found out the hard way! (And that is not a straightforward thing, but try-and-error!)
Wifi-repeaters are not very expensive nowadays.
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 9:53
by supagusti
Thanks for the basic informaion about power and wifi. But I can access the webpage (ping,...) of the esp easy device without problems from the Domoticz server (running Ubuntu 16.04, installed yesterday, built Domoticz from stable source also yesterday).
==> So the power or the lan/wifi communication is NOT the problem.
What I don't know is how the communication should work. Is it possible to poll the sensor????
How are such connection tries logged on Domoticz Server?
Does the "subtype" of a device change anything in the form of the communication, or is it just for display purposes (e.g Custom Sensor vs. Current)
In fact I don't know how to start troubleshooting, as this is the easyiest configuration that could exist. (1 Server, 1 Sensor)
Thanks again for your help!
BR,
Thomas
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 13:36
by Nadhyr
Thanks for you interest but i think too that it is not a range of wifi.
I work 2 meter in frot of my Wifi gateway.
I thnik that my ESP is down.
Any access on http.
Reset button doesn't change anything and flashing won't wake up it.
What tool did you use to flash your ESP ?
I use an Arduino Uno without atmel chip AND flashing tool available from
http://www.letscontrolit.com/wiki/index.php/ESPEasy
But didn't work.
When i use this flasher (Tool from expressive manufactor of ESP)
https://espressif.com/en/support/download/other-tools
i could load the original firmware, and after flashing, i have a WIFI station name ESP_89291 but i couldn't connect on it.
if i do a new flash, with R120 or R78 or another version, ESP still down.
Any solution to do an hardreset on ESP ?
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 13:43
by Nadhyr
RHHHHHHHH
Esp acces ok now.
Why ? I don't know ...
*****************
Welcome to ESP Easy:
MainConfigHardwareDevicesTools
System Info
Load: 4% (LC=34085)
Uptime: 4 minutes
Wifi RSSI: -33 dB
IP: 192.168.1.4
GW: 192.168.1.254
Build: 120
Core Version: 2_3_0
Unit: 1
STA MAC: 5c:cf:7f:xxxxxxxxxx
AP MAC: 5e:cf:7f:xxxxxxxxxx
ESP Chip ID: 8687265
Flash Chip ID: 1327304
Flash Size: 1024 kB
Sketch Size/Free: 401 kB / 536 kB
Free Mem: 28168
Boot cause: Manual reboot
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 13:49
by Nadhyr
Name:
Admin Password:
SSID: Nadhyr
WPA Key: XXXXXXXXXXXXXXXX
WPA AP Mode Key: configesp
Unit nr: 1
Protocol: HTTP DOMOTICZ
Locate Controller: Use IP Adress
Controller IP: 192.168.1.26
Controller Port: 8080
Controller User: Nadhyr (domoticz ID account)
Controller Password: xxxxxxx (domoticz pw account)
Sensor Delay: 60
Sleep Mode: ?
Optional Settings
ESP IP:
192.168.1.4
ESP GW:
192.168.1.254
ESP Subnet:
255.255.255.0
ESP DNS:
192.168.1.254
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 13:53
by Nadhyr
on devices
-----
<> Task Device Name Port IDX/Variable GPIO Values
1 Pulse Counter Watermeter 5 GPIO-2 Count:2
Total:3
-------------
ESP still working when i use water.
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 13:57
by Nadhyr
but in domoticz, json applet to update IDX 5 (ESP on domoticz)
my counter still at zéro !
http://192.168.1.26:8080/json.htm?type= ... ue=COUNTER
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 14:15
by Nadhyr
After 5 minutes of operation, ESP reboot alone!

Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 15:32
by supagusti
Just forgot to tick the send data checkbox under devices in esp easy - now the value is beeing displayed in Domoticz!
Thanx,
Thomas
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 16:30
by Toulon7559

Most obvious: it is a brute method, but 'reboot' often helps to clear&reset a computer ........
Re: ESP8266 EspEasy link Domoticz
Posted: Sunday 01 January 2017 17:07
by Nadhyr
Good news for you !
ESP is back, but sync still not working
Can you tell me how you do please.
I update ESP on rc 147