Page 1 of 1

ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 13:06
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

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 13:12
by snellejellep
i have no idea myself but just thinking out loud, mqtt?

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 13:18
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

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 13:26
by moayad1995
can you show me in an example with the code and what about using generic http doest that work ?

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 13:53
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

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 14:25
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 ?

Re: ESP EASY sending and receiving data

Posted: Wednesday 20 June 2018 14:32
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

Re: ESP EASY sending and receiving data

Posted: Thursday 21 June 2018 16:54
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