Skip to content

Discover Devices with Docker

Tomer Figenblat edited this page Jul 12, 2021 · 1 revision

Discover Devices with Docker

You can use aioswitcher's discover_devices script. You just need Python and the aioswitcher module installed.

If you want to skip these steps, you can run the script using docker.

  • Clone or download the zip archive of aioswitcher.
  • Step into the aioswitcher folder and execute:
    docker run --rm -it -p 20002:20002/udp -v ${PWD}/scripts:/usr/src/scripts -w /usr/src/scripts  python  /bin/bash -c "pip install aioswitcher && python discover_devices.py 20"

** Modify the 20 value to the total number of seconds you need the discovery to listen for devices.

Please Note: The device and the station executing the script should be on the same network with no firewall restriction between them.