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

Multiple inverter in settings #123

Open
basti122303 opened this issue Feb 29, 2024 · 1 comment
Open

Multiple inverter in settings #123

basti122303 opened this issue Feb 29, 2024 · 1 comment

Comments

@basti122303
Copy link

Hello,
I have multiple deye_2mppt inverter. Is there a way to configure it in settings for mqtt-loop?
When I try it like this:

[inverter]
# The "name" is the prefix of "inverter/definitions/*.yaml" files!
# 
# Set "ip" of the inverter if it's always the same. (Hint: Pin it in FritzBox settings ;)
# You can leave it empty, but then you must always pass "--ip" to CLI commands.
# Even if it is specified here, you can always override it in the CLI with "--ip".
name = "deye_2mppt"
ip = "inverter_1"
port = 48899

name = "deye_2mppt"
ip = "inverter2"
port = 48899

I got an exception:
tomlkit.exceptions.KeyAlreadyPresent: Key "name" already exists.

@SebStaeubert
Copy link

SebStaeubert commented May 10, 2024

You can use the "--ip" option to poll a specific inverter one after the other, e.g.
./cli.py print-values --ip <ip...1>; ./cli.py print-values --ip <ip..n>

I use kbialek/deye-inverter-mqtt to publish the data from multiple inverters to mqtt.

The "--ip" option is defined in the publish-loop function, too: https://github.com/jedie/inverter-connect?tab=readme-ov-file#publish-loop
So i think, you can start a publish-loop command for each inverter. But i have no experience doing that and no idea how the mqtt-topics for each inverter look like. But you can try - good luck! :-)

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

No branches or pull requests

2 participants