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

Climate #11

Open
avworldme opened this issue Dec 2, 2022 · 5 comments
Open

Climate #11

avworldme opened this issue Dec 2, 2022 · 5 comments

Comments

@avworldme
Copy link

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

@laurent-martin
Copy link
Owner

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
Copy link
Author

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

@TheFelix93
Copy link

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:

  • Function-Type from ETS (in ets5 there are only 6 types, I use the most matching for all functions and if not possible I use the custom type.
  • Inside the functions I use the GA-Name and the middle part of the GA to identify the exact HA-attribute (depends on your GA-Structure inside ETS)

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
Copy link

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

@TheFelix93
Copy link

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.

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

4 participants