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

New feature request: Ability to setup by config/flow modbus device unit #8

Closed
marpi82 opened this issue Jul 28, 2020 · 5 comments
Closed
Assignees

Comments

@marpi82
Copy link

marpi82 commented Jul 28, 2020

Hello,

Most of inverters are running as first (unit 0x01) on modbus (this is Yours default also)
My SE inverter are running as second device (unit 0x02) and I've must change two valuse in init.py from 1 to 2 to get it work in my case.
It will be nice if we can setup unit number from config/flow

Marek

@binsentsu
Copy link
Owner

To be sure, do you mean this one: self.read_holding_registers(unit=1, address=40071, count=38)

@marpi82
Copy link
Author

marpi82 commented Jul 29, 2020

To be sure, do you mean this one: self.read_holding_registers(unit=1, address=40071, count=38)

Yes, this one on master repository:

inverter_data = self.read_holding_registers(unit=1, address=40071, count=38)

And this two lines on feature/meter1 (I have used this repository):


inverter_data = self.read_holding_registers(unit=1, address=40071, count=38)

Marek

@johnpwhite
Copy link

johnpwhite commented May 16, 2021

Hi,

I'd love this feature too please! I to have to change these two values to equal 2 to match my meter device ID of 2.

THANKS IN ADVANCE!!

@marpi82
Copy link
Author

marpi82 commented Aug 6, 2021

Is there a chance that this parameter will appear in the configuration? :)

Now, these two lines contains unit/slave number

meter_data = self.read_holding_registers(
unit=1, address=start_address, count=103
)

inverter_data = self.read_holding_registers(unit=1, address=40071, count=38)

@binsentsu
Copy link
Owner

implemented

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

3 participants