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

Restored repository #1

Open
hansmbakker opened this issue Apr 29, 2016 · 8 comments
Open

Restored repository #1

hansmbakker opened this issue Apr 29, 2016 · 8 comments

Comments

@hansmbakker
Copy link
Owner

Hi @shaftoe,
Since Nuimo hack is over I published everything on GitHub again.

There is no DM system here so I used an issue. Please close it when you found this :)

Kind regards,
Hans

@shaftoe
Copy link

shaftoe commented Apr 29, 2016

Hi @Wind-rider ! Cool, thanks for it.
Anyway, I've been exploring the idea of using Home Assistant as a hub for Nuimo too and it looks very promising so far. I'm just waiting for the official Nuimo SDK to support Python v3 (small changes needed to fully support all the actions), at that point I'll publish upstream the Nuimo integration, it's already available here as a working draft: shaftoe/home-assistant@1b18a80
HTH

@shaftoe
Copy link

shaftoe commented Apr 29, 2016

PS apparently I've got no rights to close the issue, I have only a green 'Comment' button available

@hansmbakker
Copy link
Owner Author

Hi @shaftoe,
I was pleasantly surprised you started working on an integration I also wanted :)

Maybe home-assistant is a good "host" for the protocol I thought of - connect your Nuimo to home assistant and let home assistant distribute the events that come from Nuimo, besides directly being controlled itself?

The cool thing is that home assistant is supposed to be always running!

@shaftoe
Copy link

shaftoe commented Apr 29, 2016

@Wind-rider exactly! It also supports MQTT natively, i.e. you can either just make HA subscribe to a topic, or have an integration publish to a topic, or use the internal bus feature, or both. My idea was to fire events to the HA bus but I don't have any use case yet, so maybe publishing to an MQTT topic is better. What's your take on this?

@shaftoe
Copy link

shaftoe commented May 1, 2016

Sorry, earlier I didn't find time to properly understand your proposal, now I'm going through it and I see you spent quite some time to document it, good job! I like a lot your proposal for Nuimo-App protocol, so I'm thinking of implementing it in my HomeAssistant component if you're ok with that. I.e., instead of using the built HA bus, firing events to the MQTT topics instead

@hansmbakker
Copy link
Owner Author

hansmbakker commented May 1, 2016

Hi,
sorry for my late response.
Thanks for your nice feedback! It would be really a compliment if you or somebody else would pick up my idea and integrate it in your HomeAssistant component! Maybe I can help, but Python is new for me so I can't promise much yet :)

My idea was mostly a concept - free to be implemented anywhere. I'd also be happy if Senic (@larsblumberg) would integrate it in the phone app or the desktop app (I saw some users requested it on Senic's uservoice)...

When implementing the protocol there might still be needed some filtering to do, either on the "manager" side or on the "client app" side. This is because the ring is so precise that it generates a lot of small rotation increments. The network and MQTT can handle this surprisingly well, but turning the ring quickly might put an unnecessary load on the network. However the bottleneck in my setup was really Philips Hue. The lamps / Hue bridge cannot process the large amount of commands fast enough which results in a traffic jam of Hue commands.

As for the architecture in HomeAssistant - I'm not too familiar with the internals of HA, I don't know what you mean with "the internal bus feature"..
If you would implement this in HA, I would imagine it as follows:

  • The HA Nuimo component keeps track of connected Nuimos
  • The HA Nuimo component has a few "internal apps" (for controlling the lights, media) that the user can swipe through (swiping down)
  • The HA Nuimo component can keep track of "external (MQTT) apps".
    • External apps can register themselves over MQTT
    • the HA Nuimo component mixes them with the internal apps when the user swipes through the apps
  • When an internal app is active, there is no need for MQTT traffic, HA can handle the events on its own (light, media)
    • (optionally the HA Nuimo component can always publish events to MQTT even when an internal app is active)
  • When an external app is active, the HA Nuimo component publishes the Nuimo events on the respective app's MQTT topic
  • The HA Nuimo component always listens for register/unregister/focus/icon messages on MQTT
  • The HA Nuimo component keeps track of a list of apps per Nuimo - so that if you have a Nuimo in the living room and a Nuimo in the bedroom, they don't interfere (since having photoshop controls on your bedroom Nuimo is not useful)

@craigdent
Copy link

This repository still maintained...?
Is there a home assistant or HomeKit plug-in for nuimo using the hub they’ve released..?

Be awesome to integrate it into HomeKit and use to control other smart home devices

@hansmbakker
Copy link
Owner Author

@craigdent I’m sorry but I’m not maintaining this repository. I wrote it as a participation for the Nuimo hacking contest but unfortunately it didn’t really get traction after that.

I would like it if Senic would open up their Hub for plugins, though.

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