You might want to check this out as well: UPnP based discovery does not work on host networked docker container
The problem with detecting if Samsung TV’s are On/Off/Standby etc is very complex, for example the TV’s “wake up” from time to time to send messages to Samsung, even though they are off, and every model year/OS version does it differently.
The UPnP multicast messages are the only consistent thing, and are also very fast - so that’s why they are at the core of the binding.