ESP EASY sending and receiving data

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
moayad1995
Posts: 6
Joined: Wednesday 20 June 2018 13:04
Target OS: Windows
Domoticz version:
Contact:

ESP EASY sending and receiving data

Post by moayad1995 »

Dear all

im new to easy esp so i need your help
i bought an openthermgateway v2 https://www.nodo-shop.nl/en/opentherm-g ... teway.html and connected it to my boiler and thermostat every thing works fine now i bought NODEMCU https://www.lightinthebox.com/en/p/node ... mAQAvD_BwE
and flashed it with easy esp mega and configured it with serial server and connected it OTMonitor , every things works fine so now i wanna send data from my pic to the nodemcu (it suppose to be serial ) and from the nodemcu wanan using easy esp mega want to send it to a server, im not sure if i can do that and if yes how to do it
thanks in advaced
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: ESP EASY sending and receiving data

Post by snellejellep »

i have no idea myself but just thinking out loud, mqtt?
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP EASY sending and receiving data

Post by jvdz »

It is pretty easy as ESPEASY has the option to define the Domoticz server under controllers and then often you have the option to configure the IDX to which the value need to be send to in the Device config itself. In case the standard way doesn't work you can always work with events in ESPEASY and send it that way.
MQTT is indeed another solution which also should work.
The above assumes you do have the information retrieved from OTG by ESPEASY already and want to send this to domoticz.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
moayad1995
Posts: 6
Joined: Wednesday 20 June 2018 13:04
Target OS: Windows
Domoticz version:
Contact:

Re: ESP EASY sending and receiving data

Post by moayad1995 »

can you show me in an example with the code and what about using generic http doest that work ?
Attachments
Untitled.png
Untitled.png (104.14 KiB) Viewed 11055 times
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP EASY sending and receiving data

Post by jvdz »

That screen capture is the domoticz server setup. You simply fill in the ip address of your domoticz server in the "controller ip" field and only the UserId & Password when required by domoticz.
Then go into the device configuration and fill in the IDX of the Sensor/Device which you can find in domoticz.
How does the device config screen look in ESPEASY?
How does the device config that needs to receive the information look in Domoticz?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
moayad1995
Posts: 6
Joined: Wednesday 20 June 2018 13:04
Target OS: Windows
Domoticz version:
Contact:

Re: ESP EASY sending and receiving data

Post by moayad1995 »

thank you jos for replaying

i know these option i read about them but what i meant if i want to send it to my own server i think i should use generic http but what im not sure is how to use it to send the data and if my easy esp receiving a serial data can i send those data ?
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ESP EASY sending and receiving data

Post by jvdz »

I am not sure what you are asking here.
There are 2 steps to take:
1. Configure the ESPEASY setup to retrieve the appropriate value by configuring the correct standard device in the ESPEASY Device tab.
2. Only when step 1 is working and showing a value you can configure it to also send this value to a configured domoticz device.

So lest start with step 1: is that taken care of yet or do you have questions about that too? I have no OTG so have no experience there, but understand ESPEASY, so might be able to help.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: ESP EASY sending and receiving data

Post by randytsuch »

This sounds more like an ESP Easy issue than a domoticz one, although you need to do stuff on both.

Did you ask at the esp easy forum? Or search there for threads on the opentherm?

Seems like you need to figure out how to read your openthrrm data first. And once you can do that, it should be pretty easy to send that data to domoticz.

Randy
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest