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

Decouple MQTT and USB code #3

Open
gbbirkisson opened this issue Apr 4, 2020 · 6 comments
Open

Decouple MQTT and USB code #3

gbbirkisson opened this issue Apr 4, 2020 · 6 comments

Comments

@gbbirkisson
Copy link
Collaborator

Hey,

So if we want to create an API for xcomfortd and then create a proper HA integration, we somehow need to be able to send data from the USB stick to either MQTT part or the API part of the code, or maybe both.

I suggest that we create a interface that the USB part sends data to. Then MQTT and API part implement that interface.

An added benefit to this is that testing for MQTT and the API would be easier since it does not require the USB stick plugged in while developing.

@karloygard
Copy link
Owner

I'm 100% open to suggestions. Can you outline a little more what you're thinking of?

@karloygard
Copy link
Owner

FYI: I cloned your addon code to https://github.com/karloygard/hassio-addons and expanded the HA discovery code a little. It seems to work reasonably well and has received some testing by another user as well.

I agree that making a proper HA integration would be preferable, have you thought any further about how to do that? You appear to be more knowledgeable about those things than me.

@gbbirkisson
Copy link
Collaborator Author

Yeah, we need to make an API in xComfortd that uses websockets to push events back and fourth. I will try to take some time to describe what I think we need to do soon :)

When that is done we can make an integration in Home Assistant and make a pull request to the HA repo so it a seemless part of Home Assistant in the future.

@oywino
Copy link

oywino commented Dec 15, 2022

Jan Bjerke @jankrib has made a fine direct integration between Eaton xComfort Bridge and HA https://github.com/jankrib/ha-xcomfort-bridge
However, the project still needs some work to incorporate new sensors and some bug fixing, but apparently Jan hasn't got the time to continue. So it's come to a halt - which is very sad.
Perhaps you guys could pick up on his work and see if you can continue? I myself do not have any programming skills.

@karloygard
Copy link
Owner

As far as I can tell, the Eaton xComfort Bridge is a completely different device from those supported by this code.

@oywino
Copy link

oywino commented Dec 16, 2022

As far as I can tell, the Eaton xComfort Bridge is a completely different device from those supported by this code.

And I think you are right. My understanding is that Eatons marketing announcements now indicates that their Bridge is the future and that Home Controller is likely to be phased out at some point. How about considering rewriting your code to support the Bridge? Regretfully I'm not a programmer myself, otherwise I would have done it. 🙄

Do you think it is realistic to make the CKOZ-00/14 coexist with the Bridge using your HA Add-on code as-is, assuming it is possible to generate a correct Datapoint-list file?

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

3 participants