Configuring Presence detection / device tracking & getting it to show up on the UI.

1,532 views
Skip to first unread message

Robert Bunger

unread,
Sep 12, 2015, 3:57:33 PM9/12/15
to Home Assistant Dev
I am just getting going to home assistant.  I am most likely in over my head using this open source software, but figured I would give it a go.  I have gotten so far are to get it running & also successfully connected to my ASUS router.  I opened my "known_device.cvs" file and see all the stuff on my network.  For the mobile phones I want to track, I changed the "0" to a "1".  Is this correct?  I have not put in a path to a photo yet.  I restared the app when I did this.  But I don't see anything on the UI.  The only thing i have on the UI is the "sun" and my chromecast which it auto discovered.  What am I missing in order to get my family members up at the top of the UI like the demo?...   Thanks for any help you can provide.

Carlo Costanzo

unread,
Sep 12, 2015, 4:48:01 PM9/12/15
to home-assi...@googlegroups.com

Here’s what I did to get the tracking working:

 

Set the 0 to a 1 on the devices you want to track (which you did) – I also replaced the name (since an IP address showed up).

 

device,name,track,picture

64:76:00:C0:00:73,192.168.10.103,0,

B8:00:61:CC:00:78,192.168.10.101,0,

B8:00:56:00:94:BF,Carlo,1,https://pbs.twimg.com/profile_images/598142944/UFQKavw9_bigger.jpg

 

And load the device tracker in the configuration.yaml file.

 

device_tracker:

  platform: nmap_tracker

  hosts: 192.168.10.100-250

  home_interval: 10

 

I restarted HA and ended up with this in my UI.

 

Good Luck.

CARLO.

 

Carlo Costanzo | IPM, more than technology. 

email: Ca...@ipm.com | tel: (646) 879-7283


Check out my virtualization blog at
www.vCloudInfo.com!

Follow me : Twitter: @ccostan | FaceBook

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/home-assistant-dev/b2561574-23aa-4a0b-b5f6-d30ff60d83c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Bunger

unread,
Sep 12, 2015, 6:01:50 PM9/12/15
to Home Assistant Dev
Thx for the note!  Still did not work.  I might have more wrong with my setup.  I see some messages about the device tracker not able to update new devices..   This is what I have in my config file:
device_tracker:
  platform: asuswrt
  host: 192.168.0.1
  username: admin
  password: XXXX
  home_interval: 10   #(I added this based on your suggestion)

My device file is:
"device,name,track,picture"

"6C:AD:F8:5E:C9:97,Chromecast,0,"

"40:0E:85:7A:A9:17,Dad,1,REB.jpg"

"00:21:9B:05:39:92,Media-Dell,0,"

"E0:63:E5:B4:23:DD,android-7b75233d98fa26cb,0,"

etc...


Here is my startup messages:  
C:\Python34\Scripts>hass --open-ui
Config directory: C:\Users\Dad\AppData\Roaming\.homeassistant
WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
INFO:homeassistant.bootstrap:Home Assistant core initialized
INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend
INFO:homeassistant.loader:Loaded api from homeassistant.components.api
INFO:homeassistant.loader:Loaded http from homeassistant.components.http
INFO:homeassistant.loader:Loaded device_tracker from homeassistant.components.device_tracker
INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun
INFO:homeassistant.loader:Loaded history from homeassistant.components.history
INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder
INFO:homeassistant.loader:Loaded conversation from homeassistant.components.conversation
INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery
INFO:homeassistant.loader:Loaded logbook from homeassistant.components.logbook
   
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=introduction>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=recorder>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=http>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=api>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=frontend>
INFO:homeassistant.loader:Loaded device_tracker.asuswrt from homeassistant.components.device_tracker.asuswrt
INFO:homeassistant.components.device_tracker:Tracking new devices: False
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_devices=unknown; friendly_name=all devices, entity_id=[], auto=True @ 17:39:22 12-09-2015>, entity_id=group.all_devices>
WARNING:homeassistant.components.device_tracker:Invalid known devices file: C:\Users\Dad\AppData\Roaming\.homeassistant\known_devices.csv. We won't update it with new found devices.
INFO:homeassistant.components.device_tracker.asuswrt:Checking ARP
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state group.all_devices=unknown; friendly_name=all devices, entity_id=(), auto=True @ 17:39:22 12-09-2015>, entity_id=group.all_devices>
ERROR:homeassistant.bootstrap:component device_tracker failed to initialize
INFO:homeassistant.components.sun:Retrieved elevation from Google: 20
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; next_rising=10:26:56 13-09-2015, next_setting=23:03:10 12-09-2015, friendly_name=Sun @ 17:39:29 12-09-2015>, entity_id=sun.sun>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=sun>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=history>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=conversation, service=process>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=conversation>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=discovery>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=logbook>
INFO:homeassistant.core:Starting Home Assistant (12 threads)
INFO:homeassistant.core:Bus:Handling <Event homeassistant_start[L]>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123
INFO:homeassistant.core:Timer:starting
INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET end=?, closed_incorrect=1
                      WHERE end IS NULL
INFO:netdisco.service:Scanning
WARNING:homeassistant.components.recorder:Found unfinished sessions
INFO:homeassistant.components.recorder:Running query INSERT INTO recorder_runs (start, created, utc_offset)
               VALUES (?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.http:"GET / HTTP/1.1" 200 -
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created, utc_offset, event_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created, utc_offset, event_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created, utc_offset, event_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 -
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set HTTP/1.1" 200 -
INFO:homeassistant.components.discovery:Found new service: google_cast ('192.168.0.144', 8009)
INFO:homeassistant.loader:Loaded media_player from homeassistant.components.media_player
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_on>
INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?)
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_down>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_next_track>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_up>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_play_pause>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_previous_track>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=turn_off>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_pause>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_set>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=volume_mute>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=media_seek>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=start_fireplace>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=start_epic_sax>
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=media_player, service=play_youtube_video>
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=media_player>
INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: discovered=('192.168.0.144', 8009), service=google_cast>

Let me know if there is a good place for tutorials, beginners guide, etc.  I searched around the Home Assistance site and could not find stuff at the simple level I need.

Thx again for any advice / point me in the right direction.

Rob


On Saturday, September 12, 2015 at 4:48:01 PM UTC-4, Carlo Costanzo wrote:

Here’s what I did to get the tracking working:

 

Set the 0 to a 1 on the devices you want to track (which you did) – I also replaced the name (since an IP address showed up).

 

device,name,track,picture

64:76:00:C0:00:73,192.168.10.103,0,

B8:00:61:CC:00:78,192.168.10.101,0,

B8:00:56:00:94:BF,Carlo,1,https://pbs.twimg.com/profile_images/598142944/UFQKavw9_bigger.jpg

 

And load the device tracker in the configuration.yaml file.

 

device_tracker:

  platform: nmap_tracker

  hosts: 192.168.10.100-250

  home_interval: 10

 

I restarted HA and ended up with this in my UI.

 

Good Luck.

CARLO.

 




From: home-assi...@googlegroups.com [mailto:home-assi...@googlegroups.com] On Behalf Of Robert Bunger
Sent: Saturday, September 12, 2015 3:58 PM
To: Home Assistant Dev <home-assi...@googlegroups.com>
Subject: [home-assistant-dev] Configuring Presence detection / device tracking & getting it to show up on the UI.

 

I am just getting going to home assistant.  I am most likely in over my head using this open source software, but figured I would give it a go.  I have gotten so far are to get it running & also successfully connected to my ASUS router.  I opened my "known_device.cvs" file and see all the stuff on my network.  For the mobile phones I want to track, I changed the "0" to a "1".  Is this correct?  I have not put in a path to a photo yet.  I restared the app when I did this.  But I don't see anything on the UI.  The only thing i have on the UI is the "sun" and my chromecast which it auto discovered.  What am I missing in order to get my family members up at the top of the UI like the demo?...   Thanks for any help you can provide.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.
To post to this group, send email to home-ass...@googlegroups.com.

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.
To post to this group, send email to home-ass...@googlegroups.com.

Carlo Costanzo

unread,
Sep 12, 2015, 6:20:22 PM9/12/15
to home-assi...@googlegroups.com

Try changing the device tracker to the NMAP for a test.

 

I also used a full URL for the picture.

 

device,name,track,picture

64:76:BA:C0:CF:73,192.168.10.103,0,

B8:FF:61:CC:2B:78,192.168.10.101,0,

B8:E8:56:EB:94:BF,Carlo,1,https://pbs.twimg.com/profile_images/598147042944/UFQKavw9_bigger.jpg

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

--

You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/home-assistant-dev/0f159ccf-d07b-48a5-a363-1896aca2571c%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages