P1 Reader Swedish Version of HAN port

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hanspnyholm
New user
Posts: 4
Joined: 30 May 2019, 20:04
Location: Hudiksvall, Sweden

P1 Reader Swedish Version of HAN port

#1 Post by hanspnyholm » 10 Dec 2021, 21:59

I try the P1 read plugin (P044)
And in the logs shows this ( Se last in this post)
The meter is a Sagemcom T211 in Sweden.
What I understand the protocoll for the same meter can be different in different countrys.
I found this document for the Swedish standard HAN protocoll, but I havent the skils to create a plugin for this.
https://www.tekniskaverken.se/siteasset ... leaned.pdf

I have found this plugin for ESPhome to but I want to use ESPEasy of course.
https://github.com/psvanstrom/esphome-p ... p1reader.h

Code: Select all

575573: Command unknown: 0000.000*kW)
575576: Command unknown: 0*kvar)
575579: Command unknown: 7.0(0000.000*kvar)
575585: Command unknown: 1-0:63.7.0(0000.000*kvar)
575590: Command unknown: 1-0:24.7.0(0000.015*kvar)
575596: Command unknown: 1-0:44.7.0(0000.024*kvar)
575601: Command unknown: 1-0:64.7.0(0000.092*kvar)
575606: Command unknown: 1-0:32.7.0(231.4*V)
575610: Command unknown: 1-0:52.7.0(231.3*V)
575615: Command unknown: 1-0:72.7.0(231.8*V)
575620: Command unknown: 1-0:31.7.0(003.2*A)
575624: Command unknown: 1-0:51.7.0(001.7*A)
575629: Command unknown: 1-0:71.7.0(000.9*A)
575632: Command unknown: !5496
-----------
Hans

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

Re: P1 Reader Swedish Version of HAN port

#2 Post by TD-er » 10 Dec 2021, 22:09

Based on the fact you apparently have lots of "Command Unknown" in your log, suggests that you may have "Enable Serial" checked on the Tools->Advanced page.
Maybe you should uncheck that first to see if it then starts to work.

hanspnyholm
New user
Posts: 4
Joined: 30 May 2019, 20:04
Location: Hudiksvall, Sweden

Re: P1 Reader Swedish Version of HAN port

#3 Post by hanspnyholm » 11 Dec 2021, 22:28

TD-er wrote: 10 Dec 2021, 22:09 Based on the fact you apparently have lots of "Command Unknown" in your log, suggests that you may have "Enable Serial" checked on the Tools->Advanced page.
Maybe you should uncheck that first to see if it then starts to work.
Then the log show nothing and no web page for data.
-----------
Hans

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

Re: P1 Reader Swedish Version of HAN port

#4 Post by TD-er » 11 Dec 2021, 22:32

OK, so it is indeed a difference in protocols.
Made an issue for it on GitHub: https://github.com/letscontrolit/ESPEasy/issues/3875

root
New user
Posts: 2
Joined: 07 Nov 2019, 18:47

Re: P1 Reader Swedish Version of HAN port

#5 Post by root » 01 Jan 2023, 00:25

Hi,
Does anyone know if anything has happened to this?
It seems like I have the same result as the guy that started this thread.

hanspnyholm
New user
Posts: 4
Joined: 30 May 2019, 20:04
Location: Hudiksvall, Sweden

Re: P1 Reader Swedish Version of HAN port

#6 Post by hanspnyholm » 01 Jan 2023, 11:47

Hi
I got it working whit domoticz.
But I cant se in the ESP GUI thats its working.
Can I get the values and show them on a oled etc?
-----------
Hans

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

Re: P1 Reader Swedish Version of HAN port

#7 Post by Ath » 01 Jan 2023, 13:01

The plugin doesn't parse the data, it only receives it and hands it over to the receiving party via the network. Domoticz, or other home automation systems, then do the parsing, as they usually have more resources available.
You could use the MQTT Import (assuming you also have Mosquito installed) or Domoticz helper plugins to get specific data back into ESPEasy.
/Ton (PayPal.me)

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

Re: P1 Reader Swedish Version of HAN port

#8 Post by Ath » 01 Jan 2023, 13:18

hanspnyholm wrote: 01 Jan 2023, 11:47 But I cant se in the ESP GUI thats its working.
You should be able to see the Log via the Tools page (you can use a separate tab in your browser), assuming you're not using a minimal build, as that has the Weblog feature disabled to minimize on bin-size.
/Ton (PayPal.me)

root
New user
Posts: 2
Joined: 07 Nov 2019, 18:47

Re: P1 Reader Swedish Version of HAN port

#9 Post by root » 03 Jan 2023, 14:10

Is it possible to get Espeasy to send the P1 data directly to a mqtt broker?

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

Re: P1 Reader Swedish Version of HAN port

#10 Post by TD-er » 03 Jan 2023, 14:53

The Serial proxy plugin should be able to send strings to a MQTT controller.
However this plugin does expect ASCII data and some kind of newline at the end of a message.

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

Re: P1 Reader Swedish Version of HAN port

#11 Post by Ath » 03 Jan 2023, 15:25

AFAICS, the P1 WiFi gateway doesn't send the data to any controller, but the Serial Server can.
In this PR #4283 I'm adapting/merging the Serial Server and P1 WiFi gateway code, that includes a new option to have the P1 data in the event. Using a build from that PR you should be able to send it to an MQTT Controller.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests