laurent-martin / ets-to-homeassistant

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

ETS5 Project - YAML File contains only "--- {}" #27

Open marko3122 opened 5 months ago

marko3122 commented 5 months ago

Hello,

My project has all the neccessary building information , however I did notice that none of my group addresses have the Data point type set. I've set some manually for testing , in the terminal I can see that It didn't skip those adresses now but in the yaml file there is still nothing to see but the "--- {}" line.

Nevermind, I found the "WARN -- : xyz Group not in object: use ETS to create functions or use specific code" Error as well. With amounts of corrections I will have to do, it comes close to doing it manually anway :(

WohnhausBUG testyaml

laurent-martin commented 5 months ago

Right,

As described in the README, the tool cannot guess how KNX group addresses are associated with H.A. objects.

This information needs to come from somewhere.

There are 2 possibilities:

  1. in ETS, in building, create "functions" : one per H.A. objects, and place group addresses in those functions, (for example a light).
  2. or, if the naming is processable, write some small ruby code that parses the group name and deduce an object type and name...

Personally, initially, I used 2. , but then I added 1, as it is more integrated with ETS.

I see you have building information: did you create the functions ?

image

There are still some pitfalls: ETS functions are limited to a few only, and do not provide complex ones. In a future release of this tool, it will be possible to include metadata in the comment part.

TheFelix93 commented 3 months ago

@marko3122 how does it come that the DPTs are not set by ETS? I think always when I associated a GA with a device, like an actor, that writes to the GA the DPT was mapped automatically.

marko3122 commented 3 months ago

@marko3122 how does it come that the DPTs are not set by ETS? I think always when I associated a GA with a device, like an actor, that writes to the GA the DPT was mapped automatically.

No idea honestly, the owner decided to go with the "Horizone" visualization route so I won't be banging my head too much about this one