I look foreward to this, When i turn off homebrige my processor use on a Raspberry 3 (hassio) is going down with +/- 10%.
WoW that would be great if HomeKit Could be integrated in HA
Care to share your ongoing work on a GitHub repository ? I would gladly assist in testing
Something like this would be great, Not having to run Homebridge and HAss
If you put it online (GitHub) I can also help you by contributing some code
I too hate nodejs and had this idea has a backlog of my projects.
I use homebridge for this Homekit location to trigger automations in Home-assistant, using a software switch. Requires no Homekit-hardware!
Us this possible?
Looks like it is already on pypi…can we not just add REQUIREMENTS = ['HAP-python==1.1.1']
?
Hi all!
It’s really nice to see HAP-python being integrated here and I will be happy to help. I am new to HA so don’t hesitate to correct me.
On the above code, I see you prefer value=x; notify()
to a single set_value(x)
which does both of these. Why is that, i.e. is there an issue with this?
EDIT
Okay my guess is that you don’t want the callback called. Note that when your callback is called, the new value is already set, i.e. set_value(self, value, should_notify=True)
does:
- Validate new value
self.value = value
- Call the callback with the new value (if there is a callback)
- Call
self.notify()
ifshould_notify
There is no need for your callback to set the value, which means you can reduce your code to just call homeassistant.services.call(...)
Best,
Ivan
Its great to see progress on this. I had a quick look on the library late last year, but had no time to actually do anything.
I’d be happy to help out if you need anything.
/R
It takes some time to get used to the design.
I’ll be looking forward to trying it out!
After reading this topic, I tried a few things myself and just uploaded it to Github: HomeAssistant#12488
I think what he did was just to help give an example of how to get going with getting a component up and running.
How can we help you take point @martijnm?
@cdce8p super excited…once we get the basic integration, I am sure other platforms can be added over time.
@martijnm - I echo @Robban - what can we do to help you? Unfortunately for you (at the moment), the HA project is managed with git, so being able to use git is essentially a prerequisite for being able to contribute to HA and iterate on code changes with other contributors. Those who are trying to help you get started with git are just trying to help you contribute your great ideas .
@jwelter - your points about git are well taken, git may certainly be baby steps for some but I have to say you should knock off the attitude. @martijnm is trying to contribute to the HA project and has great ideas and intentions, and it would be a real shame if the reason he couldn’t (or stopped wanting to) was because of something simple to fix or rude community members. So why do you have to come in flaming him? I don’t get it.
Ok well this thread is taking a turn I don’t think it should. @martijnm I’m glad to hear you’re still working on this. But from now on we should be keeping this discussion technical and leave the personal insults out of it, or the mods should lock this thread and the proper technical discussion should take place on the PR’s on GitHub.
I just read the whole thing… This is very promising.
Here is my 2 cents on that…
- Just because you had few bad exeperiences with git, doesn’t make git dificult.
- Nobody (at least professionally) will judge your whole carrear by looking at one component made on a new enviroment. In fact, that shows you were brave to dig in and figure all by your self. It’s not bad code, it’s just version 1.
About the git thing…
You are just dramatized with your bad experiences… you don’t need to read a book to learn how to use git. There are many tutorials / videos / articles on how to do it. 2 hours is enough.
I recommend using SourceTree App
It provides a nice GUI interface, perfect for starting.
Just learn it. If you need help, create some public tests, we can interact on a test repo and explain here whats going on.
And great work btw!
@martijnm Just caught up reading this thread and it kinda upsets me how this thread went downhill so fast. It’s actually not common in this community but I’ve experienced it too with some people who just seem to like tearing others down.
I can also understand the frustration. Sometimes having a bad experience with a product makes me setup a mental barrier too. Obviously you can do it, but when the desire is lost, it’s getting the motivation to do it that’s the problem, obviously you have the skills so it’s not that you are a dummy. Just ignore the negative posts, they aren’t worth your time. Anyways, keep up the good work! Don’t give up. There’s a lot of good people here who really value the work being done.
Since, we already have a PR in the works, I am closing this thread and purging some of the unwanted messages here. For those who are interested in contributing, feel free to open PRs after the Homekit PR is merged. The thread has outlived its purpose.