--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/T3vn-8smfH4J.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/k-j-DsuisGsJ.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/ZAOWzArPLGIJ.
For the ping I use the build in openhab method like this :Switch Network_GalaxyS "GSM Nico [%S]" <network> (Status) { nh="192.168.1.102" }
For the bluetooth detection i created two items :Contact Bluetooth_Nico "Bluetooth GSM Nico [MAP(bluetooth.map):%S]" <contact>Contact Bluetooth_Katrien "Bluetooth GSM Katrien [MAP(bluetooth.map):%S]" <contact>And for the bluetooth detection i use the attached shell script that runs as root in the background on my server.I have attached my rules file too because i do some stuff in there as well.Regards,Nico
Yes, i use dhcp server configured to assign the same ip every time . Based on the mac address .
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/ZAOWzArPLGIJ.
For the ping I use the build in openhab method like this :Switch Network_GalaxyS "GSM Nico [%S]" <network> (Status) { nh="192.168.1.102" }
For the bluetooth detection i created two items :Contact Bluetooth_Nico "Bluetooth GSM Nico [MAP(bluetooth.map):%S]" <contact>Contact Bluetooth_Katrien "Bluetooth GSM Katrien [MAP(bluetooth.map):%S]" <contact>And for the bluetooth detection i use the attached shell script that runs as root in the background on my server.I have attached my rules file too because i do some stuff in there as well.Regards,Nico
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks Nico - some very useful tips in there. I will have a play and see how I get on.
--
I just want to do that when my mobile's Bluetooth is on, then the Openhab shows me like Bluetooth status changed to ON and when its off it should show as Bluetooth status is OFF and also when the status is ON it should send a message to my hangout like Bluetooth is on or anything just to indicate that its on.
mqttitude:home.lat=49.46290
mqttitude:home.lon=11.08180
mqttitude:geofence=50
mqtt
mqtt:100.url=ssl://m20.cloudmqtt.com:20575
mqtt:100.clientId=xxxxx/oH
mqtt:100.user=xxxxx
mqtt:100.pwd=xxxxxxxxx
-> I can see a url or coordinates appear in the debug that works. (Cant remeber it since its been I while since I tried. Might update that by tonight.)
Do you have any hints ?
kr
maximilian
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/S79q1Kde9cg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
Hello, i have done the bluetooth binding, now openhab detects when any bluetooth device is in range, now i want to use bluetooth dongle in my office which can get connected to openhab and when a bluetooth device enters in the range it send message on hangout account defined in rule file. How can i integrate blueooth dongle and which bluetooth dongle is compatible with openhab?
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/S79q1Kde9cg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
Switch alex "Anwesenheitstatus Alex (GPS / ownTracks)" (GF_Mobiles,gMobiles) { mqttitude="mosquitto:owntracks/alex/iphone" }
and my openhab.cfg (i know, its only TCP ;) )
################################### MQTT Transport #########################################
#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with a id you choose.
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
mqtt:mosquitto.url=tcp://localhost:1883
# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
#mqtt:<broker>.clientId=<clientId>
# Optional. User id to authenticate with the broker.
mqtt:mosquitto.user=mosquitto
# Optional. Password to authenticate with the broker.
mqtt:mosquitto.pwd=snafu12345 (not my real Password)
# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
#mqtt:<broker>.qos=<qos>
# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
#mqtt:<broker>.retain=<retain>
# Optional. True or false. Defines if messages are published asynchronously or
# synchronously. Defaults to true.
#mqtt:<broker>.async=<async>
################################# Mqttitude Binding ###################################
#
# Mqttitude can track your presence in two ways;
#
# 1. Regions - by defining a region in your Mqttitude app (on your phone) you specify
# a set of lat/lon coordinates, a geofence, and a name - by using this name
# in your item binding openHAB will listen for enter/leave events for this
# region and thus allow you to track your presence in multiple locations
# 2. Home - by defining the lat/lon of your home, along with a geofence radius (below),
# the binding will listen for location publishes from the Mqttitude app and
# manually calculate the distance from your 'home'
#
# Optional. The latitude/longitude coordinates of 'home'.
mqttitude:home.lat=49.1234567
mqttitude:home.lon=11.1234567
# Optional. The geofence radius.
mqttitude:geofence=200
and thats it.
Alex - is there any reason you don't use the waypoints feature of OwnTracks and the binding?
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/S79q1Kde9cg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
Switch DKrizic "Darko Krizic [MAP(presence.map):%s]" <present> (All,Presence,Persist) {exec="<[/usr/local/bin/presence_mac 90.b9.31.26.af.f5:100000:REGEX((.*))]"}
root@openhab:~# /usr/local/bin/presence_mac 90.b9.31.26.af.f5
ON
root@openhab:~# /usr/local/bin/presence_mac 90.b9.31.26.af.f5
OFF
#!/bin/bash
mac=$1
if [ "$mac" = "" ]
then
echo "ERROR"
exit 0
fi
macs=$(
for ax in axeg axog axdg aegh
do
snmpwalk -c public -v 2c -m AIRPORT-BASESTATION-3-MIB $ax SNMPv2-SMI:enterprises.apple.airport | grep wirelessPhysAddress | awk -F\" '{print $2}' | tr '[:upper:]' '[:lower:]' | tr ':' '.'
done
)
#echo $macs
count=$(echo $macs | grep $mac | wc -l)
#echo $count
if [ $count == 0 ]
then
echo "OFF"
else
echo "ON"
fi
--
I would love to see your scripts for bluetooth and pings!
On Mon, Jan 21, 2013 at 4:26 PM, Nico Lembrechts <nico...@gmail.com> wrote:
Karel,I use a bluetooth usb dongle in the server where openhab is running. The range is 100 meter according to the specifications.I combine this with a ping to the IP of my smartphone. This is often detected before the bluetooth signal. But whatever is detected first triggers my "comming home" sequence.Maybe you can use a rasperry pi for this if your server is not close to your door.I also have a button at the doors for manualy changing the house modes.
I hope this helps.I can share my scripts as well if you like.Regards,
Nicoany outdoor / frontdoor-panel bluetooth device you recommend?Karel
On 16 Jan 2013, at 15:24, Nico Lembrechts <nico...@gmail.com> wrote:
I do the same with a karotz http://store.karotz.com/en_WW/It kan read RFID en do http request. But then you are already in your house. With the bluetooth approach you can already detect when you approach your frontdoor or backyard and switch on garden lights, disable alarms, open screens that block access to my backdoor etc ...The solution that works best for me for the moment is :A button at both front and backdoor with led indicator (blinking or not) that puts the house in "away" mode when i push it. This turns of all the lights and other devices in my house. Then it ignores bluetooth and wifi monitors for my phone for 5 minutes to be sure i am really away. Later when I came back home. Then when i detect the IP of my phone or the bluetooth ID of my phone the house switches to "home" mode again and multiple things happen. Like switch backyard lights if dark, wakeup satelite receiver turn on music, rollup screens etc ..Maybe this helps.Regards,Nico
A friend did it using NFC tags, he same some tags in key position over the home. Once the smartphone is placed over one of these tags and HTTP call is sent to an HTTP board (is not using openHAB) that act as welcome back home.
I'm not sure if new iPhone has or not NFC support.
Regards,
Dario.
On Friday, January 11, 2013 10:33:38 PM UTC+1, oliver_...@gmx.de wrote:
Hi erveryone,
I would like to implement a check if I am at home.
My first idea was to ping the IP of my Smartphone (iPhone) as it always uses the local network via Wifi. So if the access point is unreachable I cannot ping the phone. From this it follows that I'm not at home.
Anyway, I face the problem that the iPhone doesn't response my ping requests if I haven't used the device for some time. I have been thinking about running any "server App" to telnet the port, but this doesn't work reliable, too.
Does anyone have ideas how to check absence easily?
Thanks for sharing your ideas and experiences.
Kind regards
Oliver
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/k-j-DsuisGsJ.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openhab/-/ZAOWzArPLGIJ.
To post to this group, send email to ope...@googlegroups.com.
To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openhab?hl=en.
--
You received this message because you are subscribed to the Google Groups "openhab" group.