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

Climate #11

Open avworldme opened 1 year ago

avworldme commented 1 year ago

Can this be used to import climate device settings from an ETS file ?

laurent-martin commented 1 year ago

Mmm.. no, currently only switches

Nevertheless, if you feel it, you can develop a "custom lambda" which will receive all group addresses from your project, and you have an opportunity to create home assistant objects from there.

avworldme commented 1 year ago

Thank you for the reply. I will try it although I don't know much ruby. Any clues or instructions?

TheFelix93 commented 6 months ago

I figured out how I can adapt the script to my needs. For me it was easier change the main script instead of doing all in the custom-lambda.

I added my code into map_ets_datapoint_to_ha_type() + some changes in the lambda script "laurent_specific.rb". I implemented TW Strips, RGBW Strips, binary sensors and other sensors like temp or humidity, cover. Climate is still on my TODO.

To identify which GA is for which function and which datapoints and HA-Attributes I use:

At the moment all I did is spaghetti code, but when I am done with my home installation I can refactor it a little bit and make a pull-request.

On the other hand I am bit mad, that all this was not done by the author of that repo already. The code that initially reads the KNX-project-file is actually the hardest part. I could imagine, that its not worth it because the HA-Team might already be working hard on this, but we never know :)

Nevertheless I am really grateful that Martin created this script. With this I was able to adapt it to my ETS project. I already have 98 entities generated, which would be really painful if it was manual work...

Superwallah commented 1 month ago

@TheFelix93 You did not commit your changes to your github, do you? Would be nice to see what you have achieved.

TheFelix93 commented 1 month ago

no, unfortunately still not. I cloned the repo shortly before Martin refactored the whole script. Now I have to do a bit more to integrate it. I am not a ruby expert and also long time out of the coding business... I need more time than expected, but I will definitely do it.