How to control AndroidTV (Philips) with Vera?

I have a Philips Android TV and Vera Ege. How to control Android AV with Vera?

Now I control lights: lights turn on after turn on TV (ping app checking IP).

Now I control lights: lights turn on after turn on TV (ping app checking IP).
How did you do this?