Adapt smarthome to new LuaFAR API.