pfink / nuimo-openhab-python

Use your Nuimo as a UI for openHAB!
GNU General Public License v3.0
20 stars 4 forks source link

Setting for TOUCH_BOTTOM in config.yml is not used? #6

Closed pouldam closed 6 years ago

pouldam commented 7 years ago

I have the bottom touch config commented out:

openhab_api_url: "http://192.168.8.10:8090/rest"
nuimo_mac_address: "DD:7F:......"
bluetooth_adapter: hci0
default_gesture_command_mapping:
    #TOUCH_BOTTOM: "OFF"
    #BUTTON_PRESS: "ON"
    BUTTON_RELEASE: "ON"
    TOUCH_RIGHT: "NEXT"
    TOUCH_LEFT: "PREVIOUS"

The Nuimo enters sleep mode after a while and to wake it up without sending any commands I touch the bottom. However, when I do that, the Nuimo displays the "pause" symbol. By disabling the bottom touch I would believe that the Nuimo hardware would be woken up, but not display anything. Am I mistaken?

pfink commented 7 years ago

Yeah, configuration possibilities and display handling are not ideal currently. There will be a major update within the next 1-2 months where this is tackled.

pouldam commented 7 years ago

Uh - that sounds interesting! :-)

pfink commented 6 years ago

Merry Christmas!

The major update is done. Configuration works now completely different as before, it's now done via sitemaps instead of items. Extensive documentation how to do this is also available now. A side effect of the different architecture is that this issue is resolved as well, so I'm closing it.

The update makes the configuration much more flexible than before. I'll release the current state as an "Alpha" within a few days. If you have some time to give it a try I'd be happy to hear your feedback. If there are very obvious/big errors, I'd like to fix them before the release. If you find something, please open separate issues for each question/bug/ topic.

pouldam commented 5 years ago

Hi Patrick,

Merry Christmas! Roughly a year since your last message I finally found the time to upgrade to your (not so) new major upgrade using sitemaps!

Thanks a lot - it suits my use case much better than the old solution and is also a lot nicer to configure. Great work and thanks a lot!

I have two questions/problems I would like to share with you. In the toggle_mapping section of the config.yml I have to put the actions in quotes to make it work, i.e. the following does not work:

toggle_mapping: ON: OFF OFF: ON

Whereas the following works perfectly.

toggle_mapping: "ON": "OFF" "OFF": "ON"

It is a minor thing, but thought I should mention it. I should mention that I am still using openHAB 2.2 and that may have something to do with it.

The other issue is that I can not make Nuimo events BUTTON_DOUBLE_CLICK and BUTTON_TRIPLE_CLICK works - neither via the key_mapping section in config.yml or via item mappings in the sitemap. I would also have expected to find them in the following enum for it to work: https://github.com/getsenic/nuimo-linux-python/blob/0.3.6/nuimo/nuimo.py#L398

Any ideas?

Once again thanks for your work - it prevents my Nuimo for being a rather expensive paperweight.

Regards, Poul

On Sun, 24 Dec 2017 at 04:06, Patrick Fink notifications@github.com wrote:

Merry Christmas!

The major update is done. Configuration works now completely different as before, it's now done via sitemaps instead of items. Extensive documentation how to do this is also available now. A side effect of the different architecture is that this issue is resolved as well, so I'm closing this one

This makes the configuration much more flexible than before. I'll release the current state as an "Alpha" within a few days. If you have some time to give it a try I'd be happy to hear your feedback. If there are very obvious/big errors, I'd like to fix them before the release. If you find something, please open separate issues for each question/bug/ topic.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pfink/nuimo-openhab-python/issues/6#issuecomment-353762453, or mute the thread https://github.com/notifications/unsubscribe-auth/Acc3VeUo6qvDBF1kxgcgk2p_1c2Rd1Nyks5tDb-UgaJpZM4QGohi .