Make ESR31 work - plugin P092 - I need some help, please
Moderators: grovkillen, Stuntteam, TD-er
Make ESR31 work - plugin P092 - I need some help, please
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
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.
Re: Make ESR31 work - plugin P092 - I need some help, please
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!"
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)
Re: Make ESR31 work - plugin P092 - I need some help, please
You can ignore that field for now, it is used in a different context.
/Ton (PayPal.me)
Re: Make ESR31 work - plugin P092 - I need some help, please
Thanks for your reply - if I understand correctly I do not need a voltage divider then (ESR21 …)?!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!"
Acutally, the LOG starts with a disencouraging statement: „no DL Bus connected“. So at least there is something I can start working on….
Re: Make ESR31 work - plugin P092 - I need some help, please
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
ESP inputs expect voltages between 0 and 3.3V.
/Ton (PayPal.me)
Re: Make ESR31 work - plugin P092 - I need some help, please
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
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 (146.61 KiB) Viewed 1291 times
Re: Make ESR31 work - plugin P092 - I need some help, please
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.
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)
Re: Make ESR31 work - plugin P092 - I need some help, please
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 ...) ThanksAth wrote: ↑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.
- obviously this is true
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.
- I have connected the pins correctly, voltage divider is in place (and has always been)
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.
Re: Make ESR31 work - plugin P092 - I need some help, please
Ok, great.
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)
Re: Make ESR31 work - plugin P092 - I need some help, please
Thanks, you are always quick with a reply - I have a multimeter, I'll check -Ath wrote: ↑04 Nov 2024, 20:47Ok, great.
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.
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
Re: Make ESR31 work - plugin P092 - I need some help, please
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)
Re: Make ESR31 work - plugin P092 - I need some help, please
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.Ath wrote: ↑04 Nov 2024, 21:55Hmm, 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...
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
Re: Make ESR31 work - plugin P092 - I need some help, please
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.
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.
Re: Make ESR31 work - plugin P092 - I need some help, please
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 (211.3 KiB) Viewed 1091 times
Who is online
Users browsing this forum: No registered users and 1 guest