ESPEasy P1 wifi gateway GPIO Idx
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
ESPEasy P1 wifi gateway GPIO Idx
I can't fill in the GPIO port and Idx in Devices.
What do I do wrong?
What do I do wrong?
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: ESPEasy P1 wifi gateway GPIO Idx
Suggestion to poster: what version ?
Suggestion to Dev's: Show version in white area of the header.
Suggestion to Dev's: Show version in white area of the header.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
Re: ESPEasy P1 wifi gateway GPIO Idx
I'm sorry, I forgot.
Version:
ESP_Easy_mega-20181112_normal_ESP8285_1024.bin
On a ESP8266 ESP-01.
Version:
ESP_Easy_mega-20181112_normal_ESP8285_1024.bin
On a ESP8266 ESP-01.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: ESPEasy P1 wifi gateway GPIO Idx
We're planning on doing a issue/forum poster function that will copy all info and do the screenshots. I hope that will make the opening post better.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: ESPEasy P1 wifi gateway GPIO Idx
Here v2.0.0-dev12 running
Looks the same as your P1_1.png
P1 connected to Rx
Set Serial log level to 0
No IDX needed for Domoticz (if you use that??)
TCP Port 8088
Create "P1 Smart Meter with LAN interface" in the HW interface of Domoticz
TCP Port 8088
I use this connection diagram OLED is useless for local P1 values.
Looks the same as your P1_1.png
P1 connected to Rx
Set Serial log level to 0
No IDX needed for Domoticz (if you use that??)
TCP Port 8088
Create "P1 Smart Meter with LAN interface" in the HW interface of Domoticz
TCP Port 8088
I use this connection diagram OLED is useless for local P1 values.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
Re: ESPEasy P1 wifi gateway GPIO Idx
Hello Domosapiens,
Thanks for your reply.
I have made what is in your connection diagram. Instead of your Wemos I use a ESP-01 board.
When I measure with my osciloscoop on point (2) and (3) I see every second a burst of ones and zeros. At point (3) it's inverted.
Where do I set the Serial log level to 0?
If I create "P1 Smart Meter with LAN interface" I see it in the Hardware list, but not in the 'Overige' tab.
Can I use Putty to see if the ESP-01 gives characters? If yes, how do I configure Putty?
![Image](%5Battachment=2%5DPutty.png%5B/attachment%5D)
Thanks for your reply.
I have made what is in your connection diagram. Instead of your Wemos I use a ESP-01 board.
When I measure with my osciloscoop on point (2) and (3) I see every second a burst of ones and zeros. At point (3) it's inverted.
Where do I set the Serial log level to 0?
If I create "P1 Smart Meter with LAN interface" I see it in the Hardware list, but not in the 'Overige' tab.
Can I use Putty to see if the ESP-01 gives characters? If yes, how do I configure Putty?
![Image](%5Battachment=2%5DPutty.png%5B/attachment%5D)
- Attachments
-
- Putty.png (17.01 KiB) Viewed 50742 times
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: ESPEasy P1 wifi gateway GPIO Idx
Good!When I measure with my oscilloscope on point (2) and (3) I see every second a burst of ones and zeros. At point (3) it's inverted.
ESP Easy, Tools, Advanced, Serial log levelWhere do I set the Serial log level to 0?
Check Domoticz tab Devices, filter on P1, you should see 2 devices: Energy and Gas.
If they have a green arrow, click on it, to make it blue.
Then they should appear in the Utility Tab (refresh it!)
Yes, but one connection at the time! If Putty is connected, then no Domoticz and the other way aroundCan I use Putty to see if the ESP-01 gives characters? If yes, how do I configure Putty?
Reboot the ESP in-between
Stop/Start the P1 in Domoticz to re-start the connection
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
Re: ESPEasy P1 wifi gateway GPIO Idx
Many thanks, it works, super.
Is there a possibility to see in Domoticz also the other data from the smart meter? For example, the cummulative data. Can I program something with lua or DZVents?
Is there a possibility to see in Domoticz also the other data from the smart meter? For example, the cummulative data. Can I program something with lua or DZVents?
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: ESPEasy P1 wifi gateway GPIO Idx
Can I program something with lua or DZVents?
Yes you can![Knipoog ;)](./images/smilies/icon_e_wink.gif)
Yes you can
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
Re: ESPEasy P1 wifi gateway GPIO Idx
Hahahahah, yes you are right.
I found something that was made by McMellow:
I found something that was made by McMellow:
Code: Select all
--https://www.domoticz.com/forum/viewtopic.php?f=59&t=20382&p=158563&sid=3f9e4bd3012129d745aa0c1900b53461#p158563
--[[ dzVents script to Parse P1 Smart Meter Electricity value into seperated Meter Readings.
]]-- The following need updated for your environment get the 'Idx' or 'Name' of the Device tab.
local fetchIntervalMins = 1 -- (Integer) (Minutes, Range 5-60) How often SE file is fetched
local P1data = 33 -- Electra, P1 Smart Meter device
local idxu1 = 42 -- Meter Usage low, Virtual device, counter incremental
local idxu2 = 43 -- Meter Usage High, Virtual device, counter incremental
local idxr1 = 44 -- Meter Return Low, Virtual device, counter incremental
local idxr2 = 45 -- Meter Return High, Virtual device, counter incremental
local idxcons = 74 -- Meter Actual Usage, Virtual device, counter incremental
local idxprod = 75 -- Meter Actual Production, Virtual device, counter incremental
local ScriptVersion = '0.1.6'
return {
active = true,
logging = {
-- level = domoticz.LOG_DEBUG, -- Uncomment this line to override the dzVents global logging setting
marker = 'SME '.. ScriptVersion
},
on = {
devices = { P1data }
},
execute = function(domoticz, triggerItem)
if (triggerItem.isDevice) then
-- Get values from device P1Data of the Smart Meter
local SMdata = domoticz.devices(P1data).rawData
-- Update the device and Debug meassages with the accessory values from table SMdata
domoticz.devices(idxu1).updateCounter(SMdata[1])
domoticz.log('Gebruik laag = '.. SMdata[1], domoticz.LOG_DEBUG)
domoticz.devices(idxu2).updateCounter(SMdata[2])
domoticz.log('Gebruik hoog = '.. SMdata[2], domoticz.LOG_DEBUG)
domoticz.devices(idxr1).updateCounter(SMdata[3])
domoticz.log('Levering laag = '.. SMdata[3], domoticz.LOG_DEBUG)
domoticz.devices(idxr2).updateCounter(SMdata[4])
domoticz.log('Levering hoog = '.. SMdata[4], domoticz.LOG_DEBUG)
domoticz.devices(idxcons).updateCounter(SMdata[5])
domoticz.log('Actuele Gebruik = '.. SMdata[5], domoticz.LOG_DEBUG)
domoticz.devices(idxprod).updateCounter(SMdata[6])
domoticz.log('Actuele Levering = '.. SMdata[6], domoticz.LOG_DEBUG)
end
end -- execute
}
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: ESPEasy P1 wifi gateway GPIO Idx
Good find Rob!
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: ESPEasy P1 wifi gateway GPIO Idx
I followed the advices above and got readings using Putty from the P1 port of the smart meter: T210-D ESMR5
ESP-Easy version ESP_Easy_mega-20191003_normal_ESP8266_4M1M.bin on a node-MCU, circuit and parameters as shown by Domosapiens and DomoticaRob, Domoticz (running on a Synology DS212J) : P1 Smart Meter with LAN interface with parameters as shown
Runs perfectly
But have a queston about DZVents script: how to use this?
ESP-Easy version ESP_Easy_mega-20191003_normal_ESP8266_4M1M.bin on a node-MCU, circuit and parameters as shown by Domosapiens and DomoticaRob, Domoticz (running on a Synology DS212J) : P1 Smart Meter with LAN interface with parameters as shown
Runs perfectly
But have a queston about DZVents script: how to use this?
-
- Normal user
- Posts: 45
- Joined: 17 Jan 2018, 18:43
Re: ESPEasy P1 wifi gateway GPIO Idx
What do you mean with 'How to use this'?
What is your purpose?
What is your purpose?
Re: ESPEasy P1 wifi gateway GPIO Idx
Hello,
i need a small help,
i add on domoticz P1 Smart Meter with LAN interface and on log i have :
2019-12-08 16:58:57.521 Status: P1MeterTCP: attempt connect to 192.168.1.22:8088
2019-12-08 16:58:57.524 Status: P1MeterTCP: connected to: 192.168.1.22:8088
but nothing on tab Devices, i don't have P1XXX when i filter all list
On espeasy i flash it with laast and 2.0.0-dev12, i make all describe on this post
i tried to make ssh connection on espeasy, but no way for conneting
for connection i ordered pcb, schematics is here http://www.esp8266thingies.nl/wp/ (tried V4 and 5V same result)
so how start for debug
thanks fo your help![Knipoog ;)](./images/smilies/icon_e_wink.gif)
i need a small help,
i add on domoticz P1 Smart Meter with LAN interface and on log i have :
2019-12-08 16:58:57.521 Status: P1MeterTCP: attempt connect to 192.168.1.22:8088
2019-12-08 16:58:57.524 Status: P1MeterTCP: connected to: 192.168.1.22:8088
but nothing on tab Devices, i don't have P1XXX when i filter all list
On espeasy i flash it with laast and 2.0.0-dev12, i make all describe on this post
i tried to make ssh connection on espeasy, but no way for conneting
for connection i ordered pcb, schematics is here http://www.esp8266thingies.nl/wp/ (tried V4 and 5V same result)
so how start for debug
thanks fo your help
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
Re: ESPEasy P1 wifi gateway GPIO Idx
SSH connection to ESPeasy will not work.
There is no ssh service running on the device.
You can connect to it via http (not https) and configure the plugin.
Did you configure the device in Domoticz?
Re: ESPEasy P1 wifi gateway GPIO Idx
Hello,
yes on domoticz :
![Image](https://i.ibb.co/257f3Yv/dtz-P1.jpg)
and on domoticz logs :
on esp :
![Image](https://i.ibb.co/FXmN3fM/esp-Hardware.jpg)
![Image](https://i.ibb.co/0tKbVLd/esp-Hardware2.jpg)
Les is blinking on pcb and when i try to filter on hardware tab i find nithing :
![Image](https://i.ibb.co/2P8NH36/domat.jpg)
Thanks for your help
yes on domoticz :
![Image](https://i.ibb.co/257f3Yv/dtz-P1.jpg)
and on domoticz logs :
Code: Select all
2019-12-10 18:36:15.621 Status: P1MeterTCP: attempt connect to 192.168.1.22:8088
2019-12-10 18:36:15.675 Status: P1MeterTCP: connected to: 192.168.1.22:8088
![Image](https://i.ibb.co/FXmN3fM/esp-Hardware.jpg)
![Image](https://i.ibb.co/0tKbVLd/esp-Hardware2.jpg)
Les is blinking on pcb and when i try to filter on hardware tab i find nithing :
![Image](https://i.ibb.co/2P8NH36/domat.jpg)
Thanks for your help
Re: ESPEasy P1 wifi gateway GPIO Idx
Your P1Meter plugin settings are for a DSMR 4.0/4.2 compatible meter. Any chance your meter is a DSMR 2.2 meter instead?
- Thomas
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Ok, then your P1Meter plugin settings seem reasonable.no is a 5.0 sagemcom T211-D
I believe that the gateway plugin was written before DSMR 5.x was released. Have you searched to see if anyone has had success using DSMR 5 with the plugin?
Maybe the Web log (set to debug) will show something useful. Beyond that, I've run out of ideas to help out.
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
I searched and found a ESPEasy user that had success with DSMR5. See gert3d's post here (the entire thread has good info too):Have you searched to see if anyone has had success using DSMR 5 with the plugin?
viewtopic.php?t=6168#p39893
So this user's feedback confirms that the plugin is compatible with DSMR5.
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Hello,
i know maybee why, i have a belgium meter and on log i see this:
![Bedroeft :(](./images/smilies/icon_e_sad.gif)
i know maybee why, i have a belgium meter and on log i see this:
Code: Select all
P1 error: DATA corrupt, discarded input.
![Bedroeft :(](./images/smilies/icon_e_sad.gif)
Re: ESPEasy P1 wifi gateway GPIO Idx
The Data Corrupt log error means that a non-ascii character was received.P1 error: DATA corrupt, discarded input.
Do you see any other log messages that relate to the P1 meter? Or do you only see Data Corrupt log messages?
FWIW, I found some information that says the Belgium meters need to use a patched version of domoticz. Details are here:i have a belgium meter ...
https://github.com/domoticz/domoticz/pull/3603
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Maybe we can patch this in ESPEasy before sending?
Re: ESPEasy P1 wifi gateway GPIO Idx
Hi, I would like to troubleshoot my setup. It seems to work but no data is coming out.
What I have:
Iskra AM550-ED1.01 SRM5.0 (E0043) year 2017
RJ12 - 6 Pins Dupont-Jumper Adapter - P1 Kabel Compatible (colours doesn’t match with any of provided in examples so I used pin output descriptions)
NodeMCU v3 (2x 1K resistors and BC547)
Before soldering anything I tried it out on a breadboard, this is the setup:
Screenshot below.
VIN --------------------- > Pin 1 (5v)
G --------------------- > Pin 6 (should be ground, btw i also tried Pin 3)
BC547 Emitter -------- > G
BC547 Base ------------ > 1K resistor ------- > Pin 5 (should be data out)
BC547 Collector ------ > RX & 1K resistor ( 1K resistor ------ > 3v)
When connected to P1 everything seems to work, NodeMCU is powered by the meter but no data.
Even with Web Log Level ‘Debug’ nothing in log.
My starting point was this site https://infi.nl/nieuws/hobbyproject-sli ... aar-later/ (on this site i found instructions and fritzing diagram) and then a lot of google.
Any advice?
Screenshots of Setup, ESPEasy & Domoticz settings & log files:
What I have:
Iskra AM550-ED1.01 SRM5.0 (E0043) year 2017
RJ12 - 6 Pins Dupont-Jumper Adapter - P1 Kabel Compatible (colours doesn’t match with any of provided in examples so I used pin output descriptions)
NodeMCU v3 (2x 1K resistors and BC547)
Before soldering anything I tried it out on a breadboard, this is the setup:
Screenshot below.
VIN --------------------- > Pin 1 (5v)
G --------------------- > Pin 6 (should be ground, btw i also tried Pin 3)
BC547 Emitter -------- > G
BC547 Base ------------ > 1K resistor ------- > Pin 5 (should be data out)
BC547 Collector ------ > RX & 1K resistor ( 1K resistor ------ > 3v)
When connected to P1 everything seems to work, NodeMCU is powered by the meter but no data.
Even with Web Log Level ‘Debug’ nothing in log.
My starting point was this site https://infi.nl/nieuws/hobbyproject-sli ... aar-later/ (on this site i found instructions and fritzing diagram) and then a lot of google.
Any advice?
Screenshots of Setup, ESPEasy & Domoticz settings & log files:
- Attachments
-
- Screen Shot 2020-05-16 at 12.53.22.png (505.08 KiB) Viewed 42458 times
-
- Screen Shot 2020-05-16 at 12.31.04.png (50.92 KiB) Viewed 42458 times
-
- Screen Shot 2020-05-16 at 12.30.42.png (42.92 KiB) Viewed 42458 times
-
- Screen Shot 2020-05-16 at 12.29.35.png (44.61 KiB) Viewed 42458 times
-
- Screen Shot 2020-05-16 at 12.30.18.png (77.26 KiB) Viewed 42458 times
-
- Screen Shot 2020-05-16 at 12.30.04.png (19.94 KiB) Viewed 42458 times
Re: ESPEasy P1 wifi gateway GPIO Idx
Did you also connect Pin 2 as shown in the docs? I don't see it in your list.Before soldering anything I tried it out on a breadboard, this is the setup:
Screenshot below.
VIN --------------------- > Pin 1 (5v)
G --------------------- > Pin 6 (should be ground, btw i also tried Pin 3)
BC547 Emitter -------- > G
BC547 Base ------------ > 1K resistor ------- > Pin 5 (should be data out)
BC547 Collector ------ > RX & 1K resistor ( 1K resistor ------ > 3v)
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Hi Thomas, thank you for your replay.
No I didn't tried that yet. If I read it correctly, Pin 2 should be connected as following:
Pin 2 ---- > 2K2 resistor --- > 5v on one end of resistor,
other end should be connected to Pin 5 before 1K resistor.
I will order 2K2 resistor and probably could test it on tuesday.
No I didn't tried that yet. If I read it correctly, Pin 2 should be connected as following:
Pin 2 ---- > 2K2 resistor --- > 5v on one end of resistor,
other end should be connected to Pin 5 before 1K resistor.
I will order 2K2 resistor and probably could test it on tuesday.
Re: ESPEasy P1 wifi gateway GPIO Idx
Yes, a 2.2K resistor typically connects Pin 5 (RXD) to 5V.No I didn't tried that yet. If I read it correctly, Pin 2 should be connected as following:
Pin 2 ---- > 2K2 resistor --- > 5v on one end of resistor,
other end should be connected to Pin 5 before 1K resistor.
But Pin 2 (the Ready-to-Send signal) needs 5V, so Pin 2 would connect to Pin 1 (5V). It does not appear you've connected Pin 2.
These details are shown in this discussion.
https://www.letscontrolit.com/forum/vie ... 168#p33682
For reference, here is the meter interface in a ESMRv5.0 P1 Port type meter:
http://domoticx.com/wp-content/uploads/ ... ematic.png
It would be wise if you provided a link to the information source you are using so we can see the circuit drawing you are following.
Edit: You've chosen to power your ESPBoard from the meter's 5V output. Be sure to consult the meter mfg's specifications to ensure it can safely supply the max current needed by your external circuitry.
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Hi Thomas,
Thank you for your feedback, it provides clear picture how should this be connected.
The first source is https://infi.nl/nieuws/hobbyproject-sli ... aar-later/ it is in Dutch
diagram from the source https://infi.nl/files/nieuws/_medium/We ... tch_bb.png
The first source used other site it is also in Dutch but has better diagram http://www.esp8266thingies.nl/wp/
diagram from the second source http://www.esp8266thingies.nl/wp/wp-con ... .43.23.png
Edit: You've chosen to power your ESPBoard from the meter's 5V output. Be sure to consult the meter mfg's specifications to ensure it can safely supply the max current needed by your external circuitry.
-What additional power sources do you advice to use? (just in case)
Thank you for your feedback, it provides clear picture how should this be connected.
The first source is https://infi.nl/nieuws/hobbyproject-sli ... aar-later/ it is in Dutch
diagram from the source https://infi.nl/files/nieuws/_medium/We ... tch_bb.png
The first source used other site it is also in Dutch but has better diagram http://www.esp8266thingies.nl/wp/
diagram from the second source http://www.esp8266thingies.nl/wp/wp-con ... .43.23.png
Edit: You've chosen to power your ESPBoard from the meter's 5V output. Be sure to consult the meter mfg's specifications to ensure it can safely supply the max current needed by your external circuitry.
-What additional power sources do you advice to use? (just in case)
Re: ESPEasy P1 wifi gateway GPIO Idx
The fritz board drawing seems odd, only two resistors installed. But the author also shows his final PCB, which has four resistors.diagram from the source https://infi.nl/files/nieuws/_medium/We ... tch_bb.png
The drawing in the second source is about the same as the one in the discussion link I provided before, so it seems legit. The 5V power is not provided by the meter, an external 5V supply is used.diagram from the second source http://www.esp8266thingies.nl/wp/wp-con ... .43.23.png
The typical EPSEasy project is powered by a good quality 5VDC regulated supply, such as a USB wall wart. Although common ESP82266 boards draw up to about 250mA, the power supply should be rated for at least 1A to avoid brownout problems. I usually add an electrolytic cap directly on the pads for the ESP8266 module's power input (for example, 470uF/10V).What additional power sources do you advice to use? (just in case)
Your utility meter may be able to reliably provide the 5VDC needed to power everything. But I suggest you consult its data sheet to confirm it can handle the current your project needs.
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
Hi Thomas,
Thank you for you support. The solution was to connect Pin 2 as described in discussion above. Now I can start soldering, building housing and add some dashboards.
-Drako
Thank you for you support. The solution was to connect Pin 2 as described in discussion above. Now I can start soldering, building housing and add some dashboards.
-Drako
- Attachments
-
- Screen Shot 2020-05-19 at 13.02.40.png (70.98 KiB) Viewed 42264 times
-
- Screen Shot 2020-05-19 at 13.02.28.png (57.25 KiB) Viewed 42264 times
-
- Screen Shot 2020-05-19 at 13.02.04.png (150.59 KiB) Viewed 42264 times
Re: ESPEasy P1 wifi gateway GPIO Idx
Great to hear you solved the problem.
- Thomas
- Thomas
Re: ESPEasy P1 wifi gateway GPIO Idx
ThomasB wrote: ↑17 May 2020, 23:41The fritz board drawing seems odd, only two resistors installed. But the author also shows his final PCB, which has four resistors.diagram from the source https://infi.nl/files/nieuws/_medium/We ... tch_bb.png
The drawing in the second source is about the same as the one in the discussion link I provided before, so it seems legit. The 5V power is not provided by the meter, an external 5V supply is used.diagram from the second source http://www.esp8266thingies.nl/wp/wp-con ... .43.23.png
————-
The drawing indeed shows the dsmr4.x version.
The current pcb uses all six pins on the RJ-11. It can be powered by the esmr5 meter. A 3300uf 16v elco buffers for the peak currents drawn by the esp8266. For most meters you need three resistors for data as shown in the png on esp8266 thingies, the 2k2 serving as a pull-up on the data lime. The fourth resistor in the pcb is for the statusled on D6, which will not do anything in the mega version of espeasy.
-
- New user
- Posts: 2
- Joined: 09 Sep 2020, 11:25
Re: ESPEasy P1 wifi gateway GPIO Idx
i have the same problem, this it is no domoticz issue, i am searching for the correct mega 1M-bin file for belgium meters to flash my P1 wifi devicedjksage wrote: ↑11 Dec 2019, 23:57 Hello,
i know maybee why, i have a belgium meter and on log i see this:
Code: Select all
P1 error: DATA corrupt, discarded input.
![]()
any idea?
Re: ESPEasy P1 wifi gateway GPIO Idx
Have you tried the latest build/code?
The proposed fix has already been merged.
Not entirely sure it is already present in the last build, but you can also test this test build I made for a completely different issue, but it has the latest code in it: https://www.dropbox.com/s/7xl4a8pcbzjd0 ... 0.zip?dl=0
The proposed fix has already been merged.
Not entirely sure it is already present in the last build, but you can also test this test build I made for a completely different issue, but it has the latest code in it: https://www.dropbox.com/s/7xl4a8pcbzjd0 ... 0.zip?dl=0
-
- New user
- Posts: 2
- Joined: 09 Sep 2020, 11:25
Re: ESPEasy P1 wifi gateway GPIO Idx
you have a dead link.
i am using this 1.
Build Time:⋄ Aug 12 2020 23:49:47
Binary Filename:⋄ ESP_Easy_mega_20200812_normal_ESP8285_1M
what version are you referring to?
thx!
i am using this 1.
Build Time:⋄ Aug 12 2020 23:49:47
Binary Filename:⋄ ESP_Easy_mega_20200812_normal_ESP8285_1M
what version are you referring to?
thx!
Re: ESPEasy P1 wifi gateway GPIO Idx
It was a build I made today (and updated, which broke the Dropbox link)
Here is the latest build of that pull request: https://www.dropbox.com/s/gdkjkba50dwhs ... 0.zip?dl=0
It is a test build for pull request #3250, which is about Generic HTTP Advanced controller.
So if as long as you don't need that controller (which you don't for testing P1 WiFi gateway), then it is a fine build to test whether your issue already has been fixed.
Here is the latest build of that pull request: https://www.dropbox.com/s/gdkjkba50dwhs ... 0.zip?dl=0
It is a test build for pull request #3250, which is about Generic HTTP Advanced controller.
So if as long as you don't need that controller (which you don't for testing P1 WiFi gateway), then it is a fine build to test whether your issue already has been fixed.
-
- New user
- Posts: 3
- Joined: 16 Jun 2022, 11:34
Re: ESPEasy P1 wifi gateway GPIO Idx
All,
For those who are coming here, the Lua scripts have evolved with a completely different syntax..
Here is what I did to display 2 meters with total produced and consumed:
For those who are coming here, the Lua scripts have evolved with a completely different syntax..
Here is what I did to display 2 meters with total produced and consumed:
Code: Select all
local GenerationDeviceName = "P1data"
local ConsumptionDeviceName = "Total Consumption"
local ConsumptionIDX = 8
local ProductionDeviceName = "Total Production"
local ProductionIDX = 3
Debug = "YES"
local ScriptVersion = '0.2'
function update(device, id, power, energy, index)
commandArray[index] = {['UpdateDevice'] = id .. "|0|" .. power .. ";" .. energy}
end
-- split function
function string:split( inSplitPattern, outResults )
if not outResults then
outResults = { }
end
local theStart = 1
local theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
while theSplitStart do
table.insert( outResults, string.sub( self, theStart, theSplitStart-1 ) )
theStart = theSplitEnd + 1
theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
end
table.insert( outResults, string.sub( self, theStart ) )
return outResults
end
--local myTable = myString:split(", ")
--for i = 1, #myTable do
--print( myTable[i] ) -- This will give your needed output
--end
commandArray = {}
-- Generated
PowerGeneration = otherdevices[GenerationDeviceName]
local values = PowerGeneration:split(";")
local TotalConsummed = values[1] + values[2]
local TotalProduced = values[3] + values[4]
if Debug=="YES" then
print(" ----- PowerGeneration = " .. PowerGeneration);
print(" ----- P = " .. TotalConsummed .. " W");
--print(" ----- EnergyGeneration = " .. EnergyGeneration .. " Wh");
end
if devicechanged[GenerationDeviceName] then
update(ConsumptionDeviceName, ConsumptionIDX, TotalConsummed, 0, 1)
update(ProductionDeviceName, ProductionIDX, TotalProduced, 0, 1)
end
return commandArray
Re: ESPEasy P1 wifi gateway GPIO Idx
I hope I may ask this question.
I recently updated my EspEasy version since 2018 to "mega-20230623".
As I was awaiting a new 3-fase smartmeter.
To prevent a 1 time big bang implementation I tried to make it work with mega-20230623 and the old DSMR2.2 meter.
I noticed P044 Communication - P1 Wifi Gateway.
After installing my new ESP8266 I enabled this plugin and it worked just fine with Domoticz.(P1 via LAN)
I did not try to TELNET into the plugin it just worked.
However I noticed I made a slight mistake with the chosen ESP as it had range issues.
So I needed to replace it with a different one.
After replacing and reflashing (copying the settings from the range issue esp to this new one) the plugin did not provide data to domoticz.
I tried telnet but I got no data, only connection
I changed the whole setup back to the old range issued esp and ... no data.
No telnet data as well.
I was completely shocked. So I tried the following:
Plugin: Communication - Serial Server
Entered the correct Baudrate and voila .... data appeared in Domoticz with the DSMR2 meter.
So what I don't understand is why it did work before and did not work afterwards.
In advanced settings I checked:
- Serial Log Level: None
- Serial Console Settings: (not checked)
So why would plugin44 not work anymore. I have no clue.
I can only conclude that digitally everything is okay as I have data with 1 plugin but not with the other.
(I don't use these plugins simultaneously of course)
WIth the New meter ZIV DSMR5.0 I know the package size is bigger and faster compared to DSMR2.0 so if that is going to work with the "Communication - Serial Server" would be a mystery to me. I can see data with the Plugin: Communication - Serial Server but Domoticz tells me there is a CRC error.
Would love to know if the P044 Communication - P1 Wifi Gateway would solve this for me. Any suggestions ??
I recently updated my EspEasy version since 2018 to "mega-20230623".
As I was awaiting a new 3-fase smartmeter.
To prevent a 1 time big bang implementation I tried to make it work with mega-20230623 and the old DSMR2.2 meter.
I noticed P044 Communication - P1 Wifi Gateway.
After installing my new ESP8266 I enabled this plugin and it worked just fine with Domoticz.(P1 via LAN)
I did not try to TELNET into the plugin it just worked.
However I noticed I made a slight mistake with the chosen ESP as it had range issues.
So I needed to replace it with a different one.
After replacing and reflashing (copying the settings from the range issue esp to this new one) the plugin did not provide data to domoticz.
I tried telnet but I got no data, only connection
I changed the whole setup back to the old range issued esp and ... no data.
No telnet data as well.
I was completely shocked. So I tried the following:
Plugin: Communication - Serial Server
Entered the correct Baudrate and voila .... data appeared in Domoticz with the DSMR2 meter.
So what I don't understand is why it did work before and did not work afterwards.
In advanced settings I checked:
- Serial Log Level: None
- Serial Console Settings: (not checked)
So why would plugin44 not work anymore. I have no clue.
I can only conclude that digitally everything is okay as I have data with 1 plugin but not with the other.
(I don't use these plugins simultaneously of course)
WIth the New meter ZIV DSMR5.0 I know the package size is bigger and faster compared to DSMR2.0 so if that is going to work with the "Communication - Serial Server" would be a mystery to me. I can see data with the Plugin: Communication - Serial Server but Domoticz tells me there is a CRC error.
Would love to know if the P044 Communication - P1 Wifi Gateway would solve this for me. Any suggestions ??
Who is online
Users browsing this forum: No registered users and 32 guests