The way to use ip address based on mac
Hi @merdok, i tried to inject the module, which scan the local network and check the ip address of the tv at current moment by the mac address. This approach more flexible to check ip and the start connection. But i really don't understand where i should to past this code.
I used module 'local-devices'. and the following code:
`function findDevice(mac, completion) {
	localDevices().then(devices => { devices 
        devices.forEach(function(item) {
            if (item.mac == mac) {
                console.log('tv ip ' + item.ip)
                completion(item.ip)
            }
        })
    })
}
`
Hope you will can to do this :)