This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
how can i see mine android owntrack app is connected with mqtt client?
between websocket-client and homey i have a connection.
between mqtt lens and homey i have a connection.
but if i send a message from homey to one of these two i don"t see the text
on my owntrack app i have my external ip adress from mine nas with port 1883
en mqtt lens and homy and websockets-client i have mine internal ip adress
I manged to setup up and configure my Syno and my Android phone and established a connection succesfully (hey, I needed to edit the config file on my Syno... that was tricky).
Now it seems that my Homey doesn't allow to install the App ???
I am on version firmware 1.1.9
What to do
If MQTT package is not starting:
1) ssh to your synology and log in with your normal account
2) execute: cd /var/packages/mosquitto/scripts
3) sudo vi start-stop-status (you need to be root, hence the sudo), give your admin password when requested
4) using vi, comment the line which declares the USER such that it reads:
#USER="mosquitto"
and you need to ad
listener 9001listener 1883
websockets
to mosquitto.conf
I edited the app.json file in the zip:
"compatibility": "1.x" => "compatibility": "1.x.x"
and was able to install it. But, I seem to have to install a different App om Homey ;-)
Thanks for pointing me in the right direction!
Only 6 points of failure
Recap:
- installed Mosquitto on my Synology NAS, edited the the config file
- installed Owntracks App on my Android phone, set a region and set the Syno MQTT server
- installed Owntracks on my Homey, configured it
and now I see log entries :-)
https://forum.athom.com/discussion/2810/use-cloudmqtt-as-a-broker-for-owntracks-or-mqtt-app
you're welcome ;-)
nice
What might be interesting is adding some extra functionality on the iBeacon like distance measurement. Currently the Owntracks app sees my iBeacon, but as the beacon is very strong it is currently not suitable for e.g. room detection. I don't know if you get that information ?
Also there is a separte json message sent when you enable "beacon ranging" (iOS only) which is capable of determining the distance to a beacon. Drains phone battery though. See: http://owntracks.org/booklet/tech/json/#_typebeacon
{
"_type":"beacon",
"uuid":"CA271EAE-5FA8-4E80-8F08-2A302A95A959",
"major":1,
"minor":1,
"tst": 1399028969,
"acc":n,
"rssi":n,
"prox":n,
}
@MennoVanGrinsven, is that something you can do in a new release?
Only problem is that i do not own an iOS device so no way that i can test any of this.
But the question is what do you want to do with the info ?
https://github.com/scanno/nl.scanno.owntracks/tree/beta
Added the beacon message and contents is displayed in log. As i cannot test this, it is up to you to see if it works
based on the "test" message in the documentation, above shows it working (correctly parsed).
You know that the owntracks app supports wildcards in topics. So if you have a generic geofence name for home, you can create a trigger card with topic owntracks/+/+/event and as geofence home, then it will trigger for everyone that enters or leaves the fence home.
The first + is user, the second + is device
So if you have more phones you use owntracks/ingmar/+/event as topic. The + can be any value. So if you have a device with device id=nexus, owntracks app will receive a message on topic owntracks/ingmar/nexus/event.
You can see that in the log when the app is matching the topics it is listening to.
The geofence name is part of the json message it receives.
So if you use a topic like owntracks/+/+/event in the trigger card, it will trigger on:
owntracks/ingmar/nexus/event
owntracks/menno/pixel/event
And if you use the same geofence name in the owntracks apps on the phones of the persons in your household, then it will trigger.
ok, so in a nutshell, let's say I have 10 household members, I can just make one flow instead of a flow per person?
I can get the ingmar/nexus or menno/pixel somehow and connect them to a global variable as I am doing now?
I already have the users in an array, so I can give the userid back as tag so it can be used in something like better logic.
Hmm that way we can even get rid of the need to enter a topic.
And if somehow you could also add see if it's a geofence based on latlon or iBeacon (including the proximity http://owntracks.org/booklet/tech/json/#_typebeacon), that would be awesome!
prox The relative distance to the beacon where n indicates
cool it is working
Created a tag "Gebruiker" and set a variable
you get the variable menno with value enter (or leave)
You know that when you enable "extended data" you can have homey tell you when to recharge your battery .....
20170226-18:04:39 changedSettings called
20170226-18:04:39 [object Object]
20170226-18:04:39 topics:
20170226-18:04:39 topics:
20170226-18:04:42 getLogLines called
The Owntracks app on Android says I'm connected though, what am I doing wrong?
As you are really enthusiastic and quick in developing new stuff, we might go some steps further. I am thinking of specifying a household, so adding some users and keeping track if they are or aren't in the home geofence. The users specified must be the same ids as in the app on iOS/android as well as the home geofence. Based on that you could create a condition someone home, everybody home etc etc. Is this something you want to work out with me? :-)