A lightweight radio protocol for home automation applications