Shubhamjain007 / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

using HabDroid with NFC #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My suggestion would be to access directly a special Habdrois-Sub-Page through a 
widget or a link:

I want to put NFC-Tags below the KNX-Switches on my wall - so for example I use 
a simple Lightswitch on the wall and if I touch it with my Nexus the full room 
control of Habdroid of that special room pops up.

I use Tasker and NFC-Task-Launcher - so the premium-solution would be to access 
a single Habdroid-Sub-Page OR a OpenHab-Item by Tasker-Plugin.

Example: I have 3 window-blinds and 4 different lights in my bedroom. I don't 
want 10 switches on the wall. My wife doesn't want that, too ;) So I want 2 
Switches for two light-scenes at the wall and 1 switch for blind-control. BUT 
I'd like to hold my smartphone near to the light-switch and then a 
HabDroid-Frame opens with the 4 dimm-controls to control the lights 
individually. And if I hold my Smartphone near to the blind-switch, 3 single 
blindcontrols should appear to control the blinds individually.

Michael

Original issue reported on code.google.com by michael....@emailprivat.de on 28 Sep 2012 at 10:52

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 28 Sep 2012 at 4:55

GoogleCodeExporter commented 8 years ago
I second that, but I'd like to create a simple Widget on my homescreen.
E.g. I control my garage door by KNX/openhab and I'd like to create a widget to 
press to open/close the door.

OT: Where to donate for HABdroid?

Thx

Original comment by honkton...@gmail.com on 25 Feb 2013 at 12:15

GoogleCodeExporter commented 8 years ago
That already works, if you use a tasker-widget 1x1 and create a Task with a 
simple getURL-command.
There you can enter the openHAB-URL with the full command.
You don't need HabDroid for that - allthough I would prefer to use the 
combination of Tasker and HabDroid to select the action.

Michael

Original comment by michael....@emailprivat.de on 25 Feb 2013 at 12:22

GoogleCodeExporter commented 8 years ago
honktonk66, can you please create a separate feature-request issue for widgets? 
I would like to keep this issue for NFC only discussion. Now coming down to NFC.
 michael.aschenborn, I don't really want to integrate with tasker while NFC sounds very interesting idea for me. I've checked NFC and found that it will be pretty easy to integrate it into HABDroid.
The way I see it is implementing 2 basic features.
The first feature is needed to create your NFC tags. While browsing sitemap in 
HABDroid there will be an option available in menu to write an NFC tag with 
current sitemap page in it. This option will simply write a special URL with 
openhab schema to the tag.
The second feature is processing those TAGs when you put your phone in front of 
it, so that the phone reads URL, passes it to HABDroid and HABDroid opens the 
specific sitemap page.
Will that match your expectations? :-)

Original comment by belovic...@gmail.com on 4 Mar 2013 at 9:48

GoogleCodeExporter commented 8 years ago
Hello Victor,
that sounds great.
It should be possible either to launch a sitemap page as you described or to 
switch/toggle a single item.
Is it possible to open a special sitemap page in another way than NFC too? F.e. 
with a shortcut icon?
Maybe its the same function for you to add a menu entry as "bookmark current 
sitemap page"
Thank you for your great work
Michael

Original comment by michael....@emailprivat.de on 4 Mar 2013 at 10:05

GoogleCodeExporter commented 8 years ago
Do you really think there is a need to address a single item? I just can't 
imagine how this would work.
I mean displaying a single item on the screen after touching an NFC TAG? :-)
Switching it on or off quietly could be a use case, though I think that using a 
wall switch for that would be easier, wouldn't it?

Original comment by belovic...@gmail.com on 4 Mar 2013 at 10:16

GoogleCodeExporter commented 8 years ago
I have NFC tags in my garden power outlets. By touching them with my smartphone 
I toggle them. There's no switch for them outside. That's my daily case #1
#2 I use is in combination with tasker: If you ring my knx door bell, it rings 
on the smartphone if connected to the home Wlan and shows an open button for a 
few seconds. Pushing this button opens the door via OpenHAB.

Original comment by michael....@emailprivat.de on 4 Mar 2013 at 10:27

GoogleCodeExporter commented 8 years ago
I think of something like this:

place a NFC-Tag at your door.
Hold your Phone to it when you leave the house.
That triggers an Event (like Tasker) and sends "switch off"-commands via 
HABdroid to any lightbulb in your home.

Or any other case when you want to execute some commands by simply putting your 
phone to an NFC-tag.

Original comment by christop...@gmail.com on 4 Mar 2013 at 10:43

GoogleCodeExporter commented 8 years ago
I did first part of NFC - HABDroid now supports writing a sitemap page URI to a 
tag and then reading and opening it. To use this feature just navigate to a 
page needed in HABDroid, then press Menu->Write NFC Tag then touch a tag with 
your phone. After that, as soon as you touch this tag with your phone with 
either HABDroid running or not, it will open this page automatically. Feel free 
to test and report your thoughts with the latest build from 
https://openhab.ci.cloudbees.com/job/HABDroid/
Meanwhile I think how to implement sending commands directly to items...

Original comment by belovic...@gmail.com on 6 Mar 2013 at 10:18

GoogleCodeExporter commented 8 years ago
Using HABdroid to let Tasker controll your openHAB-devices would be the 
user-friendliest way.

But you may be able to skip this step and send commands from Tasker to openHAB 
using the RESTful-API.

There seems to be a Tasker-Plugin for that.
http://de.appszoom.com/android_applications/tools/restask-for-tasker_frezl.html
But it's not an Google Play. :(
And I don't know how RESTful-API works. :)

But maybe someone can experiemtn a little with this.

Original comment by christop...@gmail.com on 15 Mar 2013 at 9:50

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 21 Mar 2013 at 10:03

GoogleCodeExporter commented 8 years ago
Another milestone - build #38 includes control over individual items. To write 
a tag for an individual item navigate to the sitemap page where this item is 
located, long-press the item, select an action to be performed when nfc tag 
will be read, touch the tag to write when prompted. Reading tag and performing 
the action would work after that with both HABDroid running or not. If HABDroid 
is not running it will be automatically closed after performing the action. 
Works for Switch widget, Switch widget with mapping, Switch widget with 
rollershuter item, Selection widget.

Original comment by belovic...@gmail.com on 31 Mar 2013 at 8:11

GoogleCodeExporter commented 8 years ago
@Victor: from my point of view this issue can be closed, right?

Original comment by teichsta on 30 Apr 2013 at 2:54

GoogleCodeExporter commented 8 years ago
can it?

Original comment by teichsta on 21 May 2013 at 9:29

GoogleCodeExporter commented 8 years ago
As you reported N4 is working fine with appropriate tags the answer now is - 
YES! :-)

Original comment by belovic...@gmail.com on 21 May 2013 at 9:30

GoogleCodeExporter commented 8 years ago
ok!

Original comment by teichsta on 21 May 2013 at 9:32