Make ESR31 work - plugin P092 - I need some help, please

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Make ESR31 work - plugin P092 - I need some help, please

#1 Post by gecko » 03 Nov 2024, 18:06

Hello,
I have posted my topic in a (probably) hidden place (viewtopic.php?t=8930 ) so I am going „back to the start:“

I am trying to read out the ESR31 sensor data from the DL Bus, but I am not sure if the ESR31 is already included in the P092 plugin? I am an interested newbie and I have set up an ESP8266 with Collection-C and this is as far as I got. Well actually I have also soldered a voltage divider even though I am not sure that I need it and I have connected the DL Bus to the 8266 (Ground and GPIO14=D5). And this is exactly as far as I got. My final goal would be to connect with home assistant. But I guess I am stuck right now, I don‘t get any values back. What number do I have to provide in data source / remote unit? I lack too much knowledge I guess …

Thanks
Best Regards Gerhard
Last edited by gecko on 03 Nov 2024, 20:16, edited 1 time in total.

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#2 Post by Ath » 03 Nov 2024, 19:31

I already answered in the other thread: viewtopic.php?t=8930#p71309
AFAICS, the ESR31 is supported by P092 via the ESR21 setting, couldn't find a description of the exact differences, but the manufacturer mentions them often together.

Can you view the logs, to see if there are any read errors for the plugin? Like these: "P092_read: Still receiving DL-Bus bits!"
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#3 Post by Ath » 03 Nov 2024, 19:33

gecko wrote: 03 Nov 2024, 18:06 What number do I have to provide in data source / remote unit? I lack too much knowledge I guess …
You can ignore that field for now, it is used in a different context.
/Ton (PayPal.me)

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#4 Post by gecko » 03 Nov 2024, 22:24

Ath wrote: 03 Nov 2024, 19:31 I already answered in the other thread: viewtopic.php?t=8930#p71309
AFAICS, the ESR31 is supported by P092 via the ESR21 setting, couldn't find a description of the exact differences, but the manufacturer mentions them often together.

Can you view the logs, to see if there are any read errors for the plugin? Like these: "P092_read: Still receiving DL-Bus bits!"
Thanks for your reply - if I understand correctly I do not need a voltage divider then (ESR21 …)?!
Acutally, the LOG starts with a disencouraging statement: „no DL Bus connected“. So at least there is something I can start working on….

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#5 Post by Ath » 03 Nov 2024, 22:29

gecko wrote: 03 Nov 2024, 22:24 Thanks for your reply - if I understand correctly I do not need a voltage divider then (ESR21 …)?!
Acutally, the LOG starts with a disencouraging statement: „no DL Bus connected“. So at least there is something I can start working on….
The documentation shows a voltage divider should be used, as the DL-bus signal of the ESR21 and ESR31 units is 12V, and that's rather unhealthy for an ESP :shock:
ESP inputs expect voltages between 0 and 3.3V.
/Ton (PayPal.me)

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#6 Post by gecko » 04 Nov 2024, 12:32

Hello, have I set up the device correctly (see attachment)? The log keeps reading:
50888325: WD : Uptime 848 ConnectFailures 0 FreeMem 18832 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
50918325: WD : Uptime 849 ConnectFailures 0 FreeMem 18872 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
50948325: WD : Uptime 849 ConnectFailures 0 FreeMem 18912 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
50978325: WD : Uptime 850 ConnectFailures 0 FreeMem 18800 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51008325: WD : Uptime 850 ConnectFailures 0 FreeMem 19248 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51038325: WD : Uptime 851 ConnectFailures 0 FreeMem 19304 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51053868: ## StartReceiving: Error: Nothing received! No DL bus connected!
51068325: WD : Uptime 851 ConnectFailures 0 FreeMem 19344 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51098325: WD : Uptime 852 ConnectFailures 0 FreeMem 19344 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51128325: WD : Uptime 852 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51158325: WD : Uptime 853 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51188325: WD : Uptime 853 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51218325: WD : Uptime 854 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51248325: WD : Uptime 854 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
51278325: WD : Uptime 855 ConnectFailures 0 FreeMem 19464 WiFiStatus: 3 ESPeasy internal wifi status: Conn. IP Init
Thanks
Attachments
devices_p092.png
devices_p092.png (146.61 KiB) Viewed 1291 times

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#7 Post by Ath » 04 Nov 2024, 13:31

Currently it seems no data is coming from the ESR31 to the ESP.
If you have connected the ESR31 to your ESP directly, without a level converter, then it is very likely the GPIO pin has been damaged by the 12V that's coming from the ESR31.
AFAICS, the TX pin from the ESR31 should be connected to the configured GPIO pin to make the connection work (each device TX/RX is 'labelled with itself in mind', so TX of the outgoing device should go to RX of the receiving device).
You can try to connect to a different GPIO pin, with a level converter, of course, and change the configuration accordingly, to see if something is coming in.
If you have an oscilloscope available, then you could also have a look at the signal that's coming from your ESR31, to see if it is actually sending something. Or find the pin that is sending data.
/Ton (PayPal.me)

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#8 Post by gecko » 04 Nov 2024, 19:13

Ath wrote: 04 Nov 2024, 13:31 - Currently it seems no data is coming from the ESR31 to the ESP.
  • obviously this is true
If you have connected the ESR31 to your ESP directly, without a level converter, then it is very likely the GPIO pin has been damaged by the 12V that's coming from the ESR31.
AFAICS, the TX pin from the ESR31 should be connected to the configured GPIO pin to make the connection work (each device TX/RX is 'labelled with itself in mind', so TX of the outgoing device should go to RX of the receiving device).
  • I have connected the pins correctly, voltage divider is in place (and has always been)
You can try to connect to a different GPIO pin, with a level converter, of course, and change the configuration accordingly, to see if something is coming in.
If you have an oscilloscope available, then you could also have a look at the signal that's coming from your ESR31, to see if it is actually sending something. Or find the pin that is sending data.
Just one more question, is there anything else that needs to be configured or is there a more complete manual? I have only set the "devices" page (individual tasks for each sensor required as I understand - but this is also hard enough for me ...) Thanks

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#9 Post by Ath » 04 Nov 2024, 20:47

gecko wrote: 04 Nov 2024, 19:13
  • I have connected the pins correctly, voltage divider is in place (and has always been)
Ok, great.
gecko wrote: 04 Nov 2024, 19:13 Just one more question, is there anything else that needs to be configured or is there a more complete manual? I have only set the "devices" page (individual tasks for each sensor required as I understand - but this is also hard enough for me ...)
Well, you've done most things right so far, it seems,

it would be interesting to know if there is something sent from the ESR31 though, as that's not clear to me, and I can't compare, as I don't own such device.
A few more suggestions:
- Have you tried to swap the RX and TX pins on the ESR side?
- I get the impression you don't have an oscilloscope available, but when using a multi-meter, you should be able to measure if a signal is available. Data is sent with some interval, so it should be 0V for a while and then some (short) time a few volts (the meter will do some averaging). You should set the meter to a range of ca. 20V DC, and measure both the ESR31 side (12V max) and the ESP side (3.3V max), to exclude any faulty components in the voltage divider.
/Ton (PayPal.me)

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#10 Post by gecko » 04 Nov 2024, 21:21

Ath wrote: 04 Nov 2024, 20:47
gecko wrote: 04 Nov 2024, 19:13
  • I have connected the pins correctly, voltage divider is in place (and has always been)
Ok, great.
gecko wrote: 04 Nov 2024, 19:13 Just one more question, is there anything else that needs to be configured or is there a more complete manual? I have only set the "devices" page (individual tasks for each sensor required as I understand - but this is also hard enough for me ...)
Well, you've done most things right so far, it seems,

it would be interesting to know if there is something sent from the ESR31 though, as that's not clear to me, and I can't compare, as I don't own such device.
A few more suggestions:
- Have you tried to swap the RX and TX pins on the ESR side?
- I get the impression you don't have an oscilloscope available, but when using a multi-meter, you should be able to measure if a signal is available. Data is sent with some interval, so it should be 0V for a while and then some (short) time a few volts (the meter will do some averaging). You should set the meter to a range of ca. 20V DC, and measure both the ESR31 side (12V max) and the ESP side (3.3V max), to exclude any faulty components in the voltage divider.
Thanks, you are always quick with a reply - I have a multimeter, I'll check -
I have just completed the quick check: looks like a pretty solid 8V Output.

Ouch. After the voltage divider I am down to 0,0V.
Some soldering required tomorrow ;-)

User avatar
Ath
Normal user
Posts: 4007
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Make ESR31 work - plugin P092 - I need some help, please

#11 Post by Ath » 04 Nov 2024, 21:55

gecko wrote: 04 Nov 2024, 21:21 Thanks, you are always quick with a reply - I have a multimeter, I'll check -
I have just completed the quick check: looks like a pretty solid 8V Output.

Ouch. After the voltage divider I am down to 0,0V.
Some soldering required tomorrow ;-)
Hmm, very well possible that the 'quiet' period is a high signal, instead of my proposed 0V.
If possible, try to do some measurements with an oscilloscope or logic analyzer, to get a better understanding of what actual signal is being provided.
The plugin documentation has some minimalist signal examples, and those suggest the 'quiet' period could be a low/0V signal... :?
/Ton (PayPal.me)

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#12 Post by gecko » 06 Nov 2024, 07:12

Ath wrote: 04 Nov 2024, 21:55
gecko wrote: 04 Nov 2024, 21:21 Thanks, you are always quick with a reply - I have a multimeter, I'll check -
I have just completed the quick check: looks like a pretty solid 8V Output.

Ouch. After the voltage divider I am down to 0,0V.
Some soldering required tomorrow ;-)
Hmm, very well possible that the 'quiet' period is a high signal, instead of my proposed 0V.
If possible, try to do some measurements with an oscilloscope or logic analyzer, to get a better understanding of what actual signal is being provided.
The plugin documentation has some minimalist signal examples, and those suggest the 'quiet' period could be a low/0V signal... :?
After doing some soldering yesterday I checked again and there was around 3V output behind the voltage divider. I connected everything and for a couple of minutes I had a measured value (degrees buffer) displayed. Then I changed some settings (minor, to my understanding, I deleted the „generic pulse counter“ from the device tasks, … ) and then I was back to the start, „nan“ / no values displayed. A new error message appeared: „could not fetch the data“ or something like that. I seem to be close …. in between there was the „no DL Bus connected error“ again - but rarely.
I measured the voltage again, interestingly it was 3,5 or 3,6V behind the divider then.
My conclusion:
- there is a DL Bus Signal
- the ESR21 should do
- I am not sure if / how I set up the device tasks correctly (1 task per value) - is there a reference document somewhere around? I have started with „tS1“ - sensor index 1, value: tS1, 1 decimal. Is it just counting up (tS1, tS2, tS3, …) and always „sensor“ …?
Thanks again

TD-er
Core team member
Posts: 9360
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Make ESR31 work - plugin P092 - I need some help, please

#13 Post by TD-er » 06 Nov 2024, 09:09

Well let's first start with 1 task for this.
I don't know much about this plugin as I don't have these devices and also have not written this plugin.

I can imagine multiple instances of this task may be fighting over access to the GPIO pin, if the idea of having multiple instances of this plugin was not kept in mind while writing the plugin.
So just to be sure, please try with 1 instance only for this plugin and make sure no other plugin is trying to access the same GPIO pin.

gecko
New user
Posts: 8
Joined: 03 Nov 2024, 15:57

Re: Make ESR31 work - plugin P092 - I need some help, please

#14 Post by gecko » 13 Nov 2024, 09:50

Back to work: I have started with setting up the tasks systematically again and with a lot of trial and error, I have now found a working configuration (e.g. no "input pullup" but just "input" needs to be set, ...). I guess now I will set up the MQTT so that I can "talk to" home assistant. Some questions are still open (but I will take it step by step), the first one refers to sensor tS3 -> this value is probably the sum of all settings like min / max temperature, thresholds, ... but I can only vaguely guess. What I am saying is that I miss all the "settings" from the heating control unit. Maybe there is a way to get them? Thanks !
Attachments
Screenshot 2024-11-13 094944.png
Screenshot 2024-11-13 094944.png (211.3 KiB) Viewed 1091 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest