Skip to content

Problem with more than one device on the bus #11

@StefanR71

Description

@StefanR71

Hi,

nice script and it works very well with the Vitosolic on the bus, now i connected to the LAN adapter a second device and i got very often a error. I can try the command several times and then i got the expected output.

Most times i got this error message:

Traceback (most recent call last):
File "resol.py", line 250, in
load_data()
File "resol.py", line 65, in load_data
print(format_message_pv1(msg))
File "resol.py", line 170, in format_message_pv1
integrated = integrate_septett(msg[9+(i6):15+(i6)])
File "resol.py", line 218, in integrate_septett
septet = ord(frame[4])
IndexError: string index out of range

And some times:

Traceback (most recent call last):
File "resol.py", line 250, in
load_data()
File "resol.py", line 65, in load_data
print(format_message_pv1(msg))
File "resol.py", line 176, in format_message_pv1
parsed += (" CHECKSUM"+str(i+1)).ljust(15,'.')+": " + format_byte(msg[14+(i*6)]) + "\n"
IndexError: string index out of range

I have a Vitosolic 200 and a DelteTherm HC Max connected to the vbus. I put both devices in a single spec file. And configured only some specific values in the spec file to output.

When i switch off the DeltaTherm, the Vitosolic is woring fine again.

Perhaps you have a hint to help, becasue i'm not a python specialist.

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions