Skip to content

Added Mikrotik platform support for device_tracker#5830

Closed
xstasy wants to merge 1 commit into
home-assistant:devfrom
xstasy:dev
Closed

Added Mikrotik platform support for device_tracker#5830
xstasy wants to merge 1 commit into
home-assistant:devfrom
xstasy:dev

Conversation

@xstasy
Copy link
Copy Markdown

@xstasy xstasy commented Feb 9, 2017

Description:
Mikrotik Platform for Device Tracker

Example entry for configuration.yaml (if applicable):

device_tracker:
  - platform: mikrotik
    host: 192.168.1.1
    username: admin
    password: admins

Checklist:
If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @xstasy,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

_LOGGER.info('Successfully connected to Mikrotik device')
self._update_info()
else:
_LOGGER.error('Failed to establish connection to Mikrotik device with IP: %s', self.host)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (101 > 79 characters)

vol.Optional(CONF_USERNAME, default=''): cv.string
})

def get_scanner(hass, config):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines, found 1

@andrey-git
Copy link
Copy Markdown
Contributor

Any updates on this PR?

@andrey-git
Copy link
Copy Markdown
Contributor

@xstasy Daniel, do you plan to finish this PR?

@pvizeli pvizeli closed this Mar 8, 2017
@PaulAnnekov
Copy link
Copy Markdown
Contributor

PaulAnnekov commented Mar 13, 2017

I can say /ip/dhcp-server/lease/getall is totally wrong for presence detection. DHCP leases can stay for minutes (~10), while you're already disconnected from network. The most reliable combination is netwatch/ip-scan + dhcp leases (to get MAC from IP). Will try to implement.

@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants