• This repository has been archived on 02/Oct/2021
  • Stars
    star
    266
  • Rank 154,103 (Top 4 %)
  • Language
    Python
  • License
    Other
  • Created almost 10 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ”Ž Python library to scan local network for services and devices.

This library is deprecated. We will no longer release new versions, fix bugs or accept pull requests. If you are looking to make your Home Assistant integration discoverable, use the zeroconf and SSDP manifest options.

NetDisco

NetDisco is a Python 3 library to discover local devices and services. It allows to scan on demand or offer a service that will scan the network in the background in a set interval.

Current methods of scanning:

  • mDNS (includes Chromecast, Homekit)
  • uPnP
  • Plex Media Server using Good Day Mate protocol
  • Logitech Media Server discovery protocol
  • Daikin discovery protocol
  • Web OS discovery protocol

It is the library that powers the device discovery within Home Assistant.

We are no longer accepting PRs that implement custom discovery protocols. Only PRs that use mDNS or uPnP are supported. See this issue

Installation

Netdisco is available on PyPi. Install using pip3 install netdisco.

Example

From command-line:

python3 -m netdisco
# To see all raw data:
python3 -m netdisco dump

In your script:

from netdisco.discovery import NetworkDiscovery

netdis = NetworkDiscovery()

netdis.scan()

for dev in netdis.discover():
    print(dev, netdis.get_info(dev))

netdis.stop()

Will result in a list of discovered devices and their most important information:

DLNA ['http://192.168.1.1:8200/rootDesc.xml', 'http://192.168.1.150:32469/DeviceDescription.xml']
google_cast [('Living Room.local.', 8009)]
philips_hue ['http://192.168.1.2:80/description.xml']
belkin_wemo ['http://192.168.1.10:49153/setup.xml']

More Repositories

1

pychromecast

Library for Python 3 to communicate with the Google Chromecast.
Python
2,518
star
2

pytradfri

IKEA TrΓ₯dfri/Tradfri API. Control and observe your lights from Python. Examples available. On pypi. Sans-io.
Python
942
star
3

python-matter-server

Python server to interact with Matter
TypeScript
478
star
4

aiohue

Python3 asyncio package to talk to Philips Hue
Python
57
star
5

zwave-js-server-python

Python library to interact with a Z-Wave JS server.
Python
56
star
6

aioshelly

Python library to control Shelly
Python
45
star
7

pydroid-ipcam

Python api for android IP Webcam
Python
32
star
8

aiowebostv

Python library to control LG webOS based TV devices
Python
26
star
9

forecast_solar

β˜€οΈ Asynchronous Python client for getting solarpanels forecast information
Python
19
star
10

python-nmap

Fork of https://bitbucket.org/xael/python-nmap
Python
17
star
11

ha-ffmpeg

A python library that handling with ffmpeg for home-assistant
Python
16
star
12

chip-wheels

Python Matter Device Controller
C
16
star
13

aioecowitt

Simple python library for the EcoWitt Protocol
Python
13
star
14

voluptuous-serialize

Convert voluptuous schemas to JSON (internal use of HA only)
Python
11
star
15

home-assistant-bluetooth

Basic bluetooth models used by Home Assistant.
Python
8
star
16

pyprusalink

Python library to communicate with PrusaLink
Python
7
star
17

aioslimproto

SLIMProto implementation in async python allows you to control squeezebox players (and compatibles)
Python
6
star
18

python-otbr-api

Python API for the Open Thread Border Router
Python
6
star
19

aioeagle

Python library to control the EAGLE-200
Python
5
star
20

matter-linux-ota-provider

C
3
star
21

tellcore-net

Allow to run Telldus Core over TCP/IP
Python
2
star
22

python-supervisor-client

Python
2
star
23

py-improv-ble-client

Python
1
star
24

voip-utils

Python
1
star