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

cannot find any reference to what version of ets projectfile can be imported. #440

Open
koenbroumels opened this issue Aug 10, 2024 · 13 comments

Comments

@koenbroumels
Copy link

i have a ets3 project file (a *.pr5) but it seems that that doesn't work. But on the infoscreen in Homeassistant i don't see any reference to what versions are supported.

@farmio
Copy link
Member

farmio commented Aug 10, 2024

Hi 👋!
ETS 4, 5 and 6 .knxproj files are supported.

@koenbroumels
Copy link
Author

I’m gonna try to use this exporter..
will report if succes, you could add this info to readme or faq for future users?

https://support.knx.org/hc/en-us/articles/360001690379-ETS-Project-Exporter

@farmio
Copy link
Member

farmio commented Aug 10, 2024

I did think it says "knxproj file" somewhere... but maybe that got missing in an update or translation.
Anyway, ETS 3 is EOL since almost 14 years; I wouldn't expect this to be supported in any recent software, let alone non-commercial 😬

@koenbroumels
Copy link
Author

It still works for me.. and ets had some really fast follow-up releases imho..

@farmio
Copy link
Member

farmio commented Aug 10, 2024

4 and 7 years for the major versions... yeah for Knx standards that's quite fast 🤣

Did the exporter app work for you?

@koenbroumels
Copy link
Author

koenbroumels commented Aug 10, 2024

no time yet.. i'll let you know in 2 to 4 years.. lol

--edit
booting my windows95 vmware takes time too... :-)

@koenbroumels
Copy link
Author

Should I backup my own added knx parts from the “yaml"?

will this import overwrite the current :knx ?

@farmio
Copy link
Member

farmio commented Aug 10, 2024

No, your yaml isn't touched in any way.

@koenbroumels
Copy link
Author

Schermafbeelding 2024-08-10 181219

nope.. but i had errors with converting too.. so that might be related.

@farmio
Copy link
Member

farmio commented Aug 10, 2024

There should be more detailed error messages in your HA logs. But yes, converting without errors probably helps.

@koenbroumels
Copy link
Author

logs show:

`Logger: homeassistant.components.websocket_api.http.connection
Bron: components/knx/project.py:122
integratie: Home Assistant WebSocket API (documentatie, problemen)
Eerst voorgekomen: 17:43:11 (1 gebeurtenissen)
Laatst gelogd: 17:43:11

[547584849760] Error handling message: Unknown error (unknown_error) koen from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/knx/websocket.py", line 156, in ws_project_file_process
await knx.project.process_project_file(
File "/usr/src/homeassistant/homeassistant/components/knx/project.py", line 124, in process_project_file
project = await self.hass.async_add_executor_job(_parse_project)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/knx/project.py", line 122, in _parse_project
return xknxproj.parse()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xknxproject/xknxproj.py", line 42, in parse
project = XMLParser(knx_project_content).parse(self.language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xknxproject/xml/parser.py", line 143, in parse
self._load(language=language)
File "/usr/local/lib/python3.12/site-packages/xknxproject/xml/parser.py", line 165, in _load
) = ProjectLoader.load(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xknxproject/loader/project_loader.py", line 54, in load
with knx_proj_contents.open_project_meta() as project_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/xknxproject/zip/extractor.py", line 59, in open_project_meta
return self._project_archive.open(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/zipfile/init.py", line 1604, in open
zinfo = self.getinfo(name)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/zipfile/_path/init.py", line 125, in getinfo
return super().getinfo(name)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/zipfile/init.py", line 1532, in getinfo
raise KeyError(
KeyError: "There is no item named 'P-00C8/Project.xml' in the archive"`

@koenbroumels
Copy link
Author

I tried again with exports without any export errors but it keeps getting stuck on the same item..

i opened the knxproj without trouble in ets6.. going outside for a swim.

@farmio
Copy link
Member

farmio commented Aug 11, 2024

Hm.. I've never seen such a conversion result, so can't really say what schema version this is / why the Project.xml isn't found there.
But when you can import it to ETS 5 / 6, you should be able to export it again and get a supported format.

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