Cant get into config to edit known_devices.yaml

Strange. Can you post your config? Just make sure you remove anything personal. Also make sure you use the pre-formatted text option. The </> icon in the editor. Highlight your code and click that button.

“hide_if_away: true” should be indented two spaces under the name of the device, along with the other properties. Since you didn’t indent that line, HA is trying to read it as a device or a platform or component. Below is an example with a Chromecast device, how it should look

chromecast:
  hide_if_away: false
  mac: D4:77:33:96:45:BE
  name: Chromecast
  picture:
  track: false
  vendor: Google, Inc.

I think I posted it wrong here is what it looks like

device_tracker:
  - platform: unifi
    host: 192.168.15.1
    username: revival
    password: Revelation1010xx
    interval_seconds: 10
    consider_home: 180
    track_new_devices: yes
    verify_ssl: false

Should I still put hide if away?

In configuration, yaml, this is how device tracker should look (in this case, bluetooth):

device_tracker:
  - platform: bluetooth_tracker
    track_new_devices: True
    consider_home: 180
    interval_seconds: 5

I would configure that component by itself, restart HA and then go into any bluetooth device (your phone) and try to scan for new bluetooth devices. HA would automatically create something like below in the known_devices_html:

pixel_xl:
  hide_if_away: false
  mac: BT_80:BA:BF:89:26:30
  name: Pixel XL
  picture:
  track: true
  vendor: HTC Corporation

hide_if_away only goes in the known_devices.yaml under individual devices. There are some devices that you don’t want to appear on your homepage if they are away, so this is a device-specific setting. It does not go under the “unifi” configuration…

I might be wrong, but if HA logs into Unifi, it pulls all devices it sees into the known_devices.yaml and then it is up to you to change the “track” setting for each device to false for the devices that you don’t want tracked…

I commented out the old device tracker stuff and added the stuff you posted and I now get this.

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 208, in async_see_service
    yield from tracker.async_see(**args)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 263, in async_see
    raise HomeAssistantError('Neither mac or device id passed in')
homeassistant.exceptions.HomeAssistantError: Neither mac or device id passed in

Please post that config.

Please post the config around lines 237, 1010, 208 and 263.

Also, you want to only change one thing at a time…

That config?

The first time I tried to run it it gave me an error that there were two device tracker entries so it could not run. The only way I knew how to fix that was to get rid of one.

hmmmmmm off to figure how to get that file.

Those are core files. We don’t want to edit those. I still think if you post your whole config.yaml file we can figure out what’s what. Without it all we have are guesses.

[quote="Revivalist, post:18, topic:15043"]
/usr/lib/python3.4/asyncio/tasks.py
[/quote]

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: lat here
  longitude: -lon here
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 4
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York

# Show links to resources in log and frontend
# introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL or running in Docker etc
  # base_url: example.duckdns.org:8123

# Checks for available updates
updater:

# Discover some devices automatically
discovery: enabled

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:
  exclude:
    entities:
      - sensor.garage_door_time_in_state
      - sensor.garage_door_wifi_signal_strength

# Track the sun
sun:

# Weather Prediction
sensor:
  platform: yr

# Text to speech
tts:
  platform: google
  
ifttt:
  key: ifttt key here

group: !include groups.yaml

cover:
  platform: garadget
  covers:
      devicenumber:
        name:  Garage
        access_token: deleted
        
device_tracker:
  - platform: bluetooth_tracker
    track_new_devices: True
    consider_home: 180
    interval_seconds: 5

I am in it but don’t see line numbers

Does your Unifi Controller run on the same machine as your HA install?
If it does, delete or comment out the line with the referring to the host IP address.

That’s what my setup for the Unifi Tracker config looks like:

device_tracker:
# Show devices on WLAN Network through the Unifi Controller running on Pi3
  - platform: unifi
    username: !secret unifi_user
    password: !secret unifi_pass
    interval_seconds: 30
    verify_ssl: false

So, those errors looks to be in core files, like @Mike_D said.

The typical approach to HA is that you install and you make a single change and you address whatever issue you see as errors, so that you can simply back out the last change. The big question is, when was the first time you saw these errors? Do you have Samba installed so that you can easily edit your configuration.yaml? Do you also have an editor like notepad++ or text wrangler on the mac that numbers lines and can also show you formatting errors?

When you run into tons of problems, you typically revert the last change and restart HA and then take it from there. If you now have multiple problems, I would ask you to roll back the previous changes to get to a system with no errors.

I edit config.yaml with ++

I saw these errors when I tried to do presence detection.

The unify software is not on the same machine.

I am going to find a fresh configuraion.yaml and give it another shot.

It looks good for the most part. Let’s remove the enabled from discovery and the bluetooth tracker.

Once those are removed. Restart HA. We can then try and add your unify tracker back in.

Did that, restarted. Called the service device_tracker and get

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 208, in async_see_service
    yield from tracker.async_see(**args)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/device_tracker/__init__.py", line 263, in async_see
    raise HomeAssistantError('Neither mac or device id passed in')
homeassistant.exceptions.HomeAssistantError: Neither mac or device id passed in

Can you repost edited config.yaml?

Found this post. Their issue was a device that had no mac address. Do you have any way to see all the device connected to your network?

I’m not running a vpn. I see everything on my network using Fing app if that’s what you mean.

I am going to walk away from this for a while. Thanks for the help.