I used this link to install samsungctl https://www.domoticz.com/wiki/Plugins/SamsungTV.html
Basically I needed to
- sudo pip3 install samsungctl
- sudo pip3 install websocket-client
After the installation, I had some error messages, i.e. "AttributeError: 'numpy.ndarray' object has no attribute 'tobytes'", which was solved by;
- sudo pip3 install numpy --upgrade
The new TV can be turned on with WakeOnLAN now. This makes my Broadlink RM3 fairly redundant as the older Samsung wasn't able to turn on hence, I needed the IR blaster before.