Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#170 Pulse meter #310

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

#170 Pulse meter #310

wants to merge 5 commits into from

Conversation

mmmichl
Copy link
Contributor

@mmmichl mmmichl commented Aug 7, 2023

This adds support for pulse meter to indicate the HP the desired power consumption in combination with the smart grid functionality.

Final Usage
Is as simple as the SG functionality, set the desired power usage in MQTT. Value is interpreted in watt. If you use Home Assistant, it will - similar to SG - auto-configure an input field, where you can set the available/desired power usage.

Hardware
I made a board with optocouplers. I measured 12 V - 16 V on the contacts and used the "LTV 815" optocoupler. I am not an electrical engineer, so not sure if this is the right thing, but so far it works. I am using a esp-wroom-32 dev board.
Pulse meter cables were connected to S4S (X5M connections 3&4) connect. Watch for the polarity of the cables, the optocouplers only work when the current flows in the right direction.

Alterma Setting
This is the part where I am still trying to figure out what needs to be set up to respect the pulse meter in "recommended on" state. The pulse meter works - I tested it against an other ESP with esphome pulse meter setup.

Following for sure needs to be set:
[Installer Setting]/[Energy metering]/[Electricity meter 2]: change away from "None". Should be either "1000/kWh" or "1000/kWh for PV panel"

This one setting seemed not be sufficient, so I am still investigating.

For good measures, I have a Daikin Altherma 3 H HT F (ETVH16S23EA9W)

Still open:

  • Finish Readme
  • Act on to high watt setting, that cannot be safely transmitted (e.g. pulses faster than pulse length)

refs #170

@raomin
Copy link
Owner

raomin commented Nov 24, 2023

Hey @mmmichl, sorry for the late reply! that's a very nice feature indeed.
I could finish the readme but some implementation pictures would help. Could you please share some here?

@raomin raomin self-assigned this Nov 24, 2023
@mmmichl
Copy link
Contributor Author

mmmichl commented Nov 26, 2023 via email

@lfrancke
Copy link

As a novice bystander:
I'd love to see both. As much as possible to reproduce your work. Parts lists etc. would be fabulous.

@gerione
Copy link

gerione commented Dec 11, 2023

@mmmichl Did you already get the altherma settings to run?

mmmichl added 2 commits June 1, 2024 18:42
In case the reported power is for the defined settings so hight, that the duration of the pulse is longer than the frequency of the pulses.
@mmmichl mmmichl force-pushed the pulse-meter branch 5 times, most recently from b6d1c4b to b887212 Compare June 2, 2024 09:25
@mmmichl mmmichl marked this pull request as ready for review June 2, 2024 09:25
@mmmichl
Copy link
Contributor Author

mmmichl commented Jun 2, 2024

Soo, finally found time to finish things. So far I implemented and document all I was planing to. If you have questions or if things are unclear, let me know.

Still need to resolve the conflicts, or maybe someone wants to do that?

@aav66
Copy link

aav66 commented Oct 28, 2024

@mmmichl Is any way to check if pulse meter signal is received be HP?
I done it same way as on picture... but not sure if it works. SG1 SG2 signals is updating. But didn't found any way to measure pulse signal.

Also a bit confused about readme and pictures. Is 200 Ohm resistor needed before ground and LT815?

@mmmichl
Copy link
Contributor Author

mmmichl commented Nov 3, 2024

@aav66 I am not aware of any easy and reliable way. Best hint I could find, was in the overview image of the heat pump:

1000008599

the power line on the right and the faint line on the roof representing solar panels seems to be a good give away. The symbol in the circle is either that the heat pump is heating up more than the set temperature, or that is uses the excess from the solar panels - not sure.

As I don't have any reliable values on how much the heat pump consumes, I watched the smart meters import/export. I had the impression, that the heat pump used the excess electricity, as it kind of followed a rising curve of solar panel production. But I think I remember, that it always used more power than available, e.g. the import sat around 500 W, although the solar panels produce more over time. But I might be mistaken. Anyway, as the project took me a couple of months, I settled for "good enough" :)

As for the resistor: I placed it between the LT815, the positive/phase and the heat pump. I got it from the Wiki page bout the pulse meter interface (the page is unfortunately German) but honestly, I don't know if it is necessary.

@spleijers
Copy link

Quick question about this, would a pcb like this work for this purpose?

Ali (Klick the 12v version)

I already have relays connected to the SG inputs...

@mmmichl
Copy link
Contributor Author

mmmichl commented Nov 9, 2024

As stated, I am not an electrical engineer. It took me some sweaty hands and a long time to wire this rather simple thing up. Also please measure how much volt and ampere your heat pump uses.

So with my limited knowledge, I do say this looks kind of what I did. But I am a bit confused, why there are three connections on the "output" side.

@spleijers
Copy link

Yes no worries, I'm also not an electrical engineer so i was hoping someone with more knowledge could verify this. The 12v input should be OK, because i know a S0 Electricity meter can be connected to the S4S port (S0 signal should be 12v).

image

This image explains better wat it should do. I think the device should be able to 'give 12v pulses' via a ESP32 device. And indeed, the 3rd cable is not necessary it seems. Anyone here that can verify this will work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants