If you used the code shown in your link then yes, that never would have worked. For wake on LAN in openHAB 3 you need the network binding, and follow the example at the bottom of the documentation page.
thanks for the answer is really hard to me since im really noob on this, and maybe no videos about it, you know any example for the second part of the code, the turn off part