- Get instant notifications when turning UPnP-enabled devices on and off.
- Works by listening for SSDP "ssdp:alive" and "ssdp:goodbye" notifications, for this the device has to be in the same network.
- May or may not work for you, different devices seem to behave differently regarding to their notifications.
- This sensor requires upnpclient to be installed.
pip install upnpclient
-
Copy custom_components/binary_sensor/upnp.py to its correct place.
-
Find out the UUIDs of the devices you want to track somehow, there is a small script in this repository to do that.
python list_devices.py
- Configure home assistant.
- platform: upnp
uuid:
- uuid: uuid:78a0716b-3f00-XXXXXXXXXXXXXXXXXXXXXX
name: xbox
- uuid: uuid:00000000-0000-XXXXXXXXXXXXXXXXXXXXXX
name: xxxx