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

I need to multiply by 20 #18

Open
hnkvhf opened this issue Apr 27, 2024 · 2 comments
Open

I need to multiply by 20 #18

hnkvhf opened this issue Apr 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hnkvhf
Copy link

hnkvhf commented Apr 27, 2024

First of all thank you for your work it helped me a lot.

Everything is working as it is supposed to be.
But I need to multiply by 20.
I have the "normal" DTSU666-CT with 100:5 clamps.
I can multiply your sensors x20:

ChintPmSensorEntityDescription(
key="uc",
name="C-phase voltage",
phase_mode_relevant=PHMODE_3P4W,
icon="mdi:sine-wave",
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
device_class=SensorDeviceClass.VOLTAGE,
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=True,
value_conversion_function=lambda value: round(value * 0.1, 2), ),

The last line in my case will be:
"value_conversion_function=lambda value: round(value * 2, 2),"

I think it will work this way, do you agree?

I was looking for a global setting for the ct-factor, I couldn't find this,
so if my above proposal will work I'm fine with that.

My setup: DTSU666 connected to;
1 by wire to Foxess T3-series for export_limit
2 by Elfin-EW11A to Home Assistant.

@hnkvhf
Copy link
Author

hnkvhf commented Apr 28, 2024

Too bad but my setup is not this easy to do.
Using a foxess inverter which has 2 x rs485 ports, one for communication and one for connecting to a power meter. This is specified in the manual.
The Chint has 1 rs485 port, this is connected to the rs485meter port. If I daisy-chain an Elfin ew11, this will not work at all, the readings for the Chint in Home Assistant turn 'unavailable' and eventually the Foxess inverter will stop working with a 242 error, communication fail (no meter detected).

So I have no free rs485 port on my chint meter. For now I think the foxess inverter needs this wired connection to read feed-in power. I will research further if it's possible to connect both devices with an Elfin-EW11 and use HA to somehow write/upload the feed-in to the inverter, I need this to use Export-limit.

Any advice is really welkom

@lmatula
Copy link
Owner

lmatula commented Jun 20, 2024

You need more Elfin adapter, RS485 can't us more than one master
wire chint -> elfin in server mode
inverter -> elfin in client mode connect to server
HA -> connect elfin server

Elfin can serve 5 client simultaneous.
image

@lmatula lmatula added the enhancement New feature or request label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants