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

trying to make this work for HomeBridge... #49

Open
thncode opened this issue Feb 27, 2019 · 3 comments
Open

trying to make this work for HomeBridge... #49

thncode opened this issue Feb 27, 2019 · 3 comments

Comments

@thncode
Copy link

thncode commented Feb 27, 2019

Hi!
I do hope you can help me with trying to get this working as a homebridge plugin, although my knowledge about JS is a bit limited. I wrote a test module like
bildschirmfoto 2019-02-27 um 22 44 12
but got a result like
bildschirmfoto 2019-02-27 um 22 40 20
any idea what I am missing here?

all the best
Thomas

@andersonshatch
Copy link
Owner

Nice idea, I considered making this as a Homebridge plugin at first; ended up going with MQTT targeted specifically at home-assistant compatibility in the end, and I'm using Homebridge-homeassistant to get them added to HomeKit... home-assistant has native HomeKit integration now too, but I've yet to try it.

Anyway... Disconnecting and reconnecting super quickly like that seems to happen a lot if the signal strength is too low between the computer running this and the Soma device. Are they quite far apart? Possible interference?
The other thing that's worth mentioning (though you may have already figured it out), is that you have to call connect() before any of the other actions will actually do anything.

@andersonshatch
Copy link
Owner

Out of interest, have you tried out running somactrl by itself? Does that successfully connect?
I wonder if there's already a Homebridge plug-in that'll talk MQTT or HTTP allowing you to just wire up a plugin to somactrl (though I can see the benefit of the whole thing being in-process to Homebridge, though it'll probably be more work!)

@thncode
Copy link
Author

thncode commented Mar 24, 2019

ok - now I am trying to use somactrl via http but after some minutes somactrl logs this:
Bildschirmfoto 2019-03-23 um 15 00 33

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

2 participants