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

Issue with building parts #12

Closed champ2410 closed 1 year ago

champ2410 commented 1 year ago

Hello, thank you for the project! It is very useful.

I am running ETS5.5 and I tried to create building functions as you described but unfortunately, there are no recognized why the script. The following message is displayed: "No builing information".

Digging into the details, it seems like my ETS file does not have a "Location" node within the "Installation" node but instead, a "BuildingPart".

I am not 100% sure if we don't have the same version of ETS or if I am not extracting my project correctly, but please help.

Many thanks, Guillaume

champ2410 commented 1 year ago

image

champ2410 commented 1 year ago

Also I noticed that the function types are like "DimmableLight" in my files, but "dimmable_light" in the script. So seems like a version issue of some sort...

laurent-martin commented 1 year ago

Thanks for reporting that.

I fixed the code so that it also accepts Buildings/BuildingPart in addition to Locations/Space

Concerning dimmable_light in the script, it's only an internal identifier mapping function type , e.g. FT-2 to readable identifier, e.g. dimmable_light Then later this identier is used to generate the knx type in home assistant

Feel free to send the projet file by email, and I can also test...

laurent-martin commented 1 year ago

@champ2410 : did you test the new version ?

champ2410 commented 1 year ago

@laurent-martin Sorry for the delay! This fixed it!

champ2410 commented 1 year ago

Thanks a lot for your help!!