Smart home on Java