laurent-martin / ets-to-homeassistant

script to convert ETS5 project file to a YAML configuration file suitable for Home Assistant
Apache License 2.0
52 stars 12 forks source link

no datapoint and no building information (ETS5) #15

Open superbilk opened 6 months ago

superbilk commented 6 months ago

Hi there,

thanks for this project. I have a working KNX installation, but no ETS and no experience. So your script would save me a lot of manual typing out every light switch :-)

Unfortunately I don't get the expected results.

./ets_to_hass.rb --format homeass myfile.knxproj
I, [2023-12-17T15:24:32.256941 #28256]  INFO -- : Using project (myname) address style: ThreeLevel
W, [2023-12-17T15:24:32.257020 #28256]  WARN -- : no datapoint type for 1/0/2 : Gäste-WC 1/0, group address is skipped
W, [2023-12-17T15:24:32.257029 #28256]  WARN -- : no datapoint type for 1/0/0 : Windfang 1/0, group address is skipped
W, [2023-12-17T15:24:32.257035 #28256]  WARN -- : no datapoint type for 1/0/1 : Aussenlicht 1/0, group address is skipped
...
W, [2023-12-17T15:24:32.257853 #28256]  WARN -- : No building information found.

I can provide the project file and a topology report (pdf file) and a group addresses report (pdf file) on a non-public way.

laurent-martin commented 6 months ago

I have updated the README.md with additional information on what is required to work.

Basically, the script cannot guess the types of group addresses, nor guess which list of group addresses belong top the same object.

There are two ways to do this:

1- best is to edit the project with ETS and add group address types for each, and then to regroup group addresses into object using Functions in ETS, as described in the README. 2- If you don't have ETS, then it's possible to write a custom Ruby script that gets data read from the project and can try to build the missing information from the names of group addresses and group address families...

Superwallah commented 1 month ago

I have an additional question regarding the error message "No building information found.": I have added levels, rooms and added devices to rooms. I only haven't used functions so far. I will add them now. I am just wondering if a) adding functions to rooms and adding group addresses to them and b) adding "building information" are two different things.