Closed envy closed 6 months ago
Related to this, I looked at some of the successfully parsed things and I also noticed this device:
ComObjectInstanceRef(identifier=None, ref_id='MD-1_M-1_MI-1_O-2-1_R-100', text='T1/2: Rollladen Süd', function_text='Stop/Slats Open/Close', read_flag=False, write_flag=False, communication_flag=True, transmit_flag=True, update_flag=False, read_on_init_flag=False, datapoint_types=[{'main': 1, 'sub': 9}], description=None, channel=None, links=['GA-64'], com_object_ref_id='M-0083_A-0098-11-29A3_MD-1_O-2-1_R-100', name='Eingang Obj1', object_size='1 Bit', base_number_argument_ref='M-0083_A-0098-11-29A3_MD-1_A-2', number=1, module=None)
ModuleInstance(identifier='MD-1_M-1_MI-1', ref_id='MD-1_M-1', arguments=[ModuleInstanceArgument(ref_id='M-0083_A-0098-11-29A3_MD-1_A-1', value='0', name='ParamOffsBase'), ModuleInstanceArgument(ref_id='M-0083_A-0098-11-29A3_MD-1_A-2', value='0', name='ObjNumberBase'), ModuleInstanceArgument(ref_id='M-0083_A-0098-11-29A3_MD-1_A-3', value='1/2', name='ChNoGr'), ModuleInstanceArgument(ref_id='M-0083_A-0098-11-29A3_MD-1_A-4', value='1', name='ChNo1'), ModuleInstanceArgument(ref_id='M-0083_A-0098-11-29A3_MD-1_A-5', value='2', name='ChNo2')])
The value 1/2
of the third module instance argument is also not an int
but apparently this did not cause an error.
Hi 👋! Thank you for filing this issue! I had a look yesterday, but didn't yet find out how to parse these object numbers correctly.
We only cast "ObjNumberBase" arguments to int
, as I thought these are always the base numbers of the current module. Apparently I was wrong 😬
I have yet to find out what Allocations
do.
But so your other device should work fine as "1/2" is a different arguments value.
Hi, Same issue to me invalid literal for int() with base 10: 'L-3' any help with this issue
Hello, i have this error since the update to XKNX Version 2.12.0 KNX-Frontend Version 2024.1.20.105944 when i upload a x.knxproj file
invalid literal for int() with base 10: 'L-4'
Hi 👋! It is already fixed in xknxproject 3.6.0 which will ship with HA 2024.2.2
I updated to HA 2024.02 and needed to reparse my project but when I upload it I get the following error:
(obviously this is from a local xknxproject to get the full stacktrace, HA just gives me the value error)
I added a
print(self)
andprint(_module_instance)
before line 325 and got this:Based on this info, the bad device is a MDT DALI Control PRO64